Visual LISP, AutoLISP and General Customization
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Objects properties - Dimstyle

1 REPLY 1
Reply
Message 1 of 2
Marcel Goulet
184 Views, 1 Reply

Objects properties - Dimstyle

Hi, how can I change, using Lisp or VLisp, the DIMLFAC variable of an entity in a drawing?

Thanks
1 REPLY 1
Message 2 of 2
Anonymous
in reply to: Marcel Goulet

;;example to changet the DIMLFAC of an individual Dimension
(defun c:dimtest (/ ss fac obj)
(if (and (setq ss (ssget ":S" '((0 . "DIMENSION"))))
(setq obj (vlax-ename->vla-object (ssname ss 0)))
(setq oldfac (vla-get-linearscalefactor obj ))
(setq fac (getreal (strcat "\nNew DIMLFAC for dimension(" (rtos oldfac)
"): ")))
)
(progn

(vla-put-linearscalefactor obj fac)
)
)
(princ)
)


wrote in message news:5160822@discussion.autodesk.com...
Hi, how can I change, using Lisp or VLisp, the DIMLFAC variable of an entity
in a drawing?

Thanks

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report

”Boost