Visual LISP, AutoLISP and General Customization

Visual LISP, AutoLISP and General Customization

Reply
Distinguished Contributor
Marcel Goulet
Posts: 180
Registered: ‎05-28-2004
Message 1 of 2 (80 Views)

Objects properties - Dimstyle

80 Views, 1 Replies
05-02-2006 07:02 AM
Hi, how can I change, using Lisp or VLisp, the DIMLFAC variable of an entity in a drawing?

Thanks
*Jeff Mishler
Message 2 of 2 (80 Views)

Re: Objects properties - Dimstyle

05-02-2006 09:02 AM 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 ":smileyfrustrated:" '((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
Post to the Community

Have questions about Autodesk products? Ask the community.

New Post
Announcements
Are You Going To Be @ AU 2014? Feel free to drop by our AU topic post and share your plans, plug a class that you're teaching, or simply check out who else from the community might be in attendance. Ohh and don't forgot to stop by the Autodesk Help | Learn | Collaborate booths in the Exhibit Hall and meet our community team if you get a chance!