I created a line using vla-Addline and then used vla-addDimaligned to add a dimension but I cannot figure out how to select which dimensions I want to use.
I want to make 2 dimension above and below the line. I have the 2 dimension style to do so but i can only use the current selected dimstyle.
(defun c:UGP (/ start end line1 dim1 a)
(setq Start (getpoint "\nStart point of path: "))
(setq end (getpoint start "\nEndpoint of path: "))
(setq *ModelSpace*
(vla-get-ModelSpace
(vla-get-ActiveDocument (vlax-get-acad-object))
)
(setq line1
(vla-Addline
*ModelSpace*
start end
)
)
(vla-AddDimAligned *ModelSpace* start end end))
)