Visual LISP, AutoLISP and General Customization

Reply
Distinguished Mentor
Moshe-A
Posts: 735
Registered: ‎09-14-2003
Message 1 of 9 (132 Views)

R2006 and DIMFXL + DIMDXLON dimvars

132 Views, 8 Replies
03-24-2012 08:27 AM

Hi Guys

 

AutoCAD R2006

 

Anybody found the way to set DIMFXL + DIMFXLON dimvars programmaticly?

it seen like the only way to set them is from dimstyle dialog box

(even if there is a difference between them and the global dimvars the dialog box doesn't  reflact that) even in the extended data it's not there

 

thanks in advance

moshe

 

*Expert Elite*
pbejse
Posts: 2,406
Registered: ‎11-24-2009
Message 2 of 9 (122 Views)

Re: R2006 and DIMFXL + DIMDXLON dimvars

03-24-2012 09:48 AM in reply to: Moshe-A

Doesnt setvar/getvar works on 2006 ?

 

(setvar 'DIMFXL 144.00)

(setvar "DIMFXLON" 1)

 

 

 

 

Distinguished Mentor
Moshe-A
Posts: 735
Registered: ‎09-14-2003
Message 3 of 9 (119 Views)

Re: R2006 and DIMFXL + DIMDXLON dimvars

03-24-2012 10:20 AM in reply to: Moshe-A

No

*Expert Elite*
pbejse
Posts: 2,406
Registered: ‎11-24-2009
Message 4 of 9 (117 Views)

Re: R2006 and DIMFXL + DIMDXLON dimvars

03-24-2012 10:27 AM in reply to: Moshe-A

Moshe-A wrote:

No


What about ActiveX"

 

(vlax-invoke (vla-get-activedocument (vlax-get-acad-object)) 'GetVariable "DIMFXLON" )

(vlax-invoke (vla-get-activedocument (vlax-get-acad-object)) 'SetVariable "DIMFXLON" 0)

 

(vlax-invoke (vla-get-activedocument (vlax-get-acad-object)) 'GetVariable "DIMFXL" )

(vlax-invoke (vla-get-activedocument (vlax-get-acad-object)) 'SetVariable "DIMFXL" 12)

 

Distinguished Mentor
Moshe-A
Posts: 735
Registered: ‎09-14-2003
Message 5 of 9 (110 Views)

Re: R2006 and DIMFXL + DIMDXLON dimvars

03-24-2012 11:58 AM in reply to: pbejse

$ (vlax-invoke (vla-get-activedocument (vlax-get-acad-object)) 'GetVariable "DIMFXLON" )

; error: AutoCAD: Error getting system variable
_$ (vlax-invoke (vla-get-activedocument (vlax-get-acad-object)) 'GetVariable "DIMFXL" )

; error: AutoCAD: Error getting system variable
_$

*Expert Elite*
pbejse
Posts: 2,406
Registered: ‎11-24-2009
Message 6 of 9 (100 Views)

Re: R2006 and DIMFXL + DIMDXLON dimvars

03-24-2012 09:21 PM in reply to: Moshe-A

I see.

To be on the clear, tell me exactly what you're trying to do?

 

 

Distinguished Mentor
Moshe-A
Posts: 735
Registered: ‎09-14-2003
Message 7 of 9 (98 Views)

Re: R2006 and DIMFXL + DIMDXLON dimvars

03-24-2012 10:54 PM in reply to: Moshe-A

Hi,

 

i'm writting a small setup program that create Layers, Text Style and Dimension Styles

thank you very much for trying to help.

 

Moshe

 

*Expert Elite*
pbejse
Posts: 2,406
Registered: ‎11-24-2009
Message 8 of 9 (87 Views)

Re: R2006 and DIMFXL + DIMDXLON dimvars

03-25-2012 01:03 AM in reply to: Moshe-A

Moshe-A wrote:

Hi,

 

i'm writting a small setup program that create Layers, Text Style and Dimension Styles

thank you very much for trying to help.

 

Moshe

 


I tried it on 2007 , its seems to work there, cant find any version lower than that here though. I guess i cant be of any more help Moshe-A.

 

BTW: what about thru command prompt:?

 

(command "_setvar" "DIMFXLON" 1)
(command "_setvar" "DIMFXL" 12)


 

Distinguished Mentor
Moshe-A
Posts: 735
Registered: ‎09-14-2003
Message 9 of 9 (80 Views)

Re: R2006 and DIMFXL + DIMDXLON dimvars

03-25-2012 10:25 AM in reply to: Moshe-A

Ok Thanks

You are not logged in.

Log into access your profile, ask and answer questions, share ideas and more. Haven't signed up yet? Register

Announcements
Are you familiar with the Autodesk Expert Elites? The Expert Elite program is made up of customers that help other customers by sharing knowledge and exemplifying an engaging style of collaboration. To learn more, please visit our Expert Elite website.

Need installation help?

Start with some of our most frequented solutions to get help installing your software.

Ask the Community