• Industries
  • Products
  • Buy
  • Services & Support
  • Communities
  • Visual LISP, AutoLISP and General Customization

    Reply
    Distinguished Mentor
    Moshe-A
    Posts: 679
    Registered: ‎09-14-2003

    R2006 and DIMFXL + DIMDXLON dimvars

    90 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

     

    Please use plain text.
    *Expert Elite*
    Posts: 2,070
    Registered: ‎11-24-2009

    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)

     

     

     

     

    Please use plain text.
    Distinguished Mentor
    Moshe-A
    Posts: 679
    Registered: ‎09-14-2003

    Re: R2006 and DIMFXL + DIMDXLON dimvars

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

    No

    Please use plain text.
    *Expert Elite*
    Posts: 2,070
    Registered: ‎11-24-2009

    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)

     

    Please use plain text.
    Distinguished Mentor
    Moshe-A
    Posts: 679
    Registered: ‎09-14-2003

    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
    _$

    Please use plain text.
    *Expert Elite*
    Posts: 2,070
    Registered: ‎11-24-2009

    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?

     

     

    Please use plain text.
    Distinguished Mentor
    Moshe-A
    Posts: 679
    Registered: ‎09-14-2003

    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

     

    Please use plain text.
    *Expert Elite*
    Posts: 2,070
    Registered: ‎11-24-2009

    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)


     

    Please use plain text.
    Distinguished Mentor
    Moshe-A
    Posts: 679
    Registered: ‎09-14-2003

    Re: R2006 and DIMFXL + DIMDXLON dimvars

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

    Ok Thanks

    Please use plain text.