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

R2006 and DIMFXL + DIMDXLON dimvars

8 REPLIES 8
Reply
Message 1 of 9
Moshe-A
672 Views, 8 Replies

R2006 and DIMFXL + DIMDXLON dimvars

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

 

8 REPLIES 8
Message 2 of 9
pbejse
in reply to: Moshe-A

Doesnt setvar/getvar works on 2006 ?

 

(setvar 'DIMFXL 144.00)

(setvar "DIMFXLON" 1)

 

 

 

 

Message 3 of 9
Moshe-A
in reply to: Moshe-A

No

Message 4 of 9
pbejse
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)

 

Message 5 of 9
Moshe-A
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
_$

Message 6 of 9
pbejse
in reply to: Moshe-A

I see.

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

 

 

Message 7 of 9
Moshe-A
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

 

Message 8 of 9
pbejse
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)


 

Message 9 of 9
Moshe-A
in reply to: Moshe-A

Ok Thanks

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

Post to forums  

Autodesk Design & Make Report

”Boost