Results 1 to 2 of 2

Thread: Vlisp/ActiveX equivalent of (getvar )

  1. #1
    Member
    Join Date
    2003-12
    Posts
    47
    Login to Give a bone
    0

    Default Vlisp/ActiveX equivalent of (getvar )

    Hi all;
    Other than the (getvar "osmode") or other system variables, is there an equivalent function in Vlisp/ActiveX environment in order to get the system variable? Thanks

    csgoh

  2. #2
    All AUGI, all the time
    Join Date
    2015-12
    Location
    Central Oregon
    Posts
    591
    Login to Give a bone
    0

    Default Re: Vlisp/ActiveX equivalent of (getvar )

    ;;You can use:
    (setq old-osmode1 (getvar "osmode"))
    ;;or you can use:
    (setq old-osmode2 (vlax-variant-value
    (vla-getvariable
    (vla-get-activedocument
    (vlax-get-acad-object))
    "osmode")
    ))

    ;;You be the judge of which is easier

Similar Threads

  1. getvar equivalent
    By clintonc in forum Dot Net API
    Replies: 1
    Last Post: 2010-04-23, 05:24 PM
  2. ActiveX для IE
    By sapr.220168 in forum VBA/COM Interop
    Replies: 0
    Last Post: 2010-02-16, 12:17 PM
  3. (getvar "snapang") not yielding correct value...
    By kmayhew936033 in forum AutoLISP
    Replies: 4
    Last Post: 2009-12-10, 02:20 PM
  4. Is there an AU equivalent out there??
    By mikesal in forum CAD Management - General
    Replies: 2
    Last Post: 2005-08-05, 02:27 PM
  5. Fix the VLISP/ActiveX object-management bug
    By sinc in forum API Wish List
    Replies: 2
    Last Post: 2004-09-21, 08:10 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •