VLisp Access to AcSmSheetSetMgr object

Discussion in 'AutoCAD' started by RJWilson, Sep 24, 2004.

  1. RJWilson

    RJWilson Guest

    I think I am close to accessing Sheet Set objects with the following code. Why doesn't the last lexpression return a VLA-OBJECT?

    (defun acsmtest ()
    (if (equal nil acsmc-ACSM_DATABASE_OPENED) ; check for a sheet mgr constant
    (vlax-import-type-library
    :tlb-filename
    "C:/Program Files/Common Files/Autodesk Shared/AcSmComponents16.tlb"
    :methods-prefix "acsmm-" :properties-prefix "acsmp-" :constants-prefix
    "acsmc-"
    )
    )
    (setq sheetsetmgr (vlax-get-or-create-object "AcSmComponents.AcSmSheetSetMgr")
    )
    )

    Does anyone have insight into why this ClassID doesn't seem to work?

    Thanks,
    Bob Wilson
     
    RJWilson, Sep 24, 2004
    #1
  2. SSM objects do not support an IDispatch interface and VLISP COM support
    requires IDispatch.


    Why doesn't the last lexpression return a VLA-OBJECT?
     
    Steve Mighetto, Sep 24, 2004
    #2
  3. RJWilson

    RJWilson Guest

    Steve,

    Thanks for the prompt reply.

    Do you know if Autodesk plans on supporting it in the future? It seems like a very significant omission to me.

    I have a lot of code written in VLISP to check for and fix common errors in drawings, apply engineer's stamps, set layer states, etc, before they are plotted. Using VLISP to extract data and proceed to go batchwise through the sheet set would be ideal. It looks like I will have to use 2 languages to get it done. It seems like a shame.

    But thanks for setting me straight so I don't waste any more time. That's very valuable.

    Bob Wilson
     
    RJWilson, Sep 27, 2004
    #3
  4. Adding LISP access to SSM COM API's is on the wishlist.
    Thanks for including a use case.



    like a very significant omission to me.
    in drawings, apply engineer's stamps, set layer states, etc, before they are
    plotted. Using VLISP to extract data and proceed to go batchwise through
    the sheet set would be ideal. It looks like I will have to use 2 languages
    to get it done. It seems like a shame.
     
    Steve Mighetto, Sep 27, 2004
    #4
  5. RJWilson

    elise_moss Guest

    I am in the ADN program & I got an email today stating that the SSM API is available through LISP (also thru VBA). Not available thru VB or VB.net.

    I am in the process of creating a program to automate plotting drawing packages and I want to use sheet set database files (dst).

    Are you telling me I am stuck in VBA?
     
    elise_moss, Mar 3, 2005
    #5
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.