Sheet Sets in VB

Discussion in 'AutoCAD' started by elise_moss, Feb 24, 2005.

  1. Thanks! That makes sense since I could use the SSM API in VB.NET and the DLL
    is loaded from within AutoCAD with Netload.

    --
    Best Regards, Jimmy Bergmark
    CAD and Database Developer Manager at www.pharmadule-emtunga.com
    Blog: http://jtbworld.blogspot.com
    JTB FlexReport (FLEXnet / FLEXlm report tool) -
    www.jtbworld.com/jtbflexreport
    SmartPurger (Purges automatically) - www.jtbworld.com/?/smartpurger.htm
    or download some freeware at www.jtbworld.com
    More on AutoCAD 2005;
    www.jtbworld.com/autocad2005.htm
     
    Jimmy Bergmark, Feb 26, 2005
    #21
  2. No, you are mistaken.

    Application context means the execution context
    of code, not the scope of variables. AFAIK, LISP
    code cannot execute in the application context.
     
    Tony Tanzillo, Feb 27, 2005
    #22
  3. No, I'm NOT mistaken

    Just like I said, an application context VB ActiveX DLL
    CAN be launched using Visual Lisp and the blackboard.

    The DLL will be loaded JUST ONCE and will stay loaded
    and running even in cero document state, and will respond
    to all application events at any time they happen
    and is terminated when the acad app is terminated.
     
    Jorge Jimenez, Feb 27, 2005
    #23
  4. Excuse me, but yes you are mistaken.

    We're not talking about 'launching', and we're
    not talking about the scope of the variable
    that holds the object, we're talking about the
    execution context of the code that calls the
    methods of the object.

    Any method of an object that is invoked from
    Visual LISP _ALWAYS_ executes in the same
    context as the calling Visual LISP code, which
    is always the document context.
     
    Tony Tanzillo, Feb 27, 2005
    #24
  5. So, are you affirming that I cannot load a DLL
    using Visual Lisp and be able to fully use the SSM API
    with that DLL ?
     
    Jorge Jimenez, Feb 27, 2005
    #25
  6. So, are you affirming that I cannot load a DLL
    You would not be able to fully use the SSM API, because
    it has methods that can open and/or activate documents,
    and if that happens, your LISP code stops dead in its
    tracks.

    I never said you can't use the SSM API from document
    context code, what I said was that if you do, and the
    SSM method you call changes the active document,
    then your controlling LISP application is suspended.

    And, if you call an SSM method that opens and activates
    a document, or closes a document (not sure if there are
    any that do the latter), the chances you'll crash AutoCAD
    are fairly good.
     
    Tony Tanzillo, Feb 27, 2005
    #26
  7. You would not be able to fully use the SSM API, because
    So again, are affirming that an ActiveX DLL
    that was loaded using Visual Lisp
    will not be able to use the open and/or active document
    methods of the SSM API, and if it does it will crash Acad ??
     
    Jorge Jimenez, Feb 27, 2005
    #27
Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.