Autocad 2005 Creating SheetSet on the fly...

Discussion in 'AutoCAD' started by Rudy Tovar, Jan 20, 2005.

  1. Rudy Tovar

    Rudy Tovar Guest

    I'd like to see if anyone has anything to contribute to creating and setting
    up Sheet Sets on the fly using VLA functions and DBX...

    Up until now I've only found bits and pieces on this and that..

    Just the same I'll be continuing on doing the same, and post anything I come
    up with...

    I've got a must better understanding on DBX, and just starting on the Sheet
    Sets...

    --
    MASi
    Copyright 2004 by Cadentity
    www.Cadentity.com
    Autodesk
    Authorized Developer
     
    Rudy Tovar, Jan 20, 2005
    #1
  2. Rudy Tovar

    Rudy Tovar Guest

    Up until now, I've found this on fields, but can't remember where I got it
    ....

    (defun c:eek:field (/)


    ;LinkTemplate.KeyDescriptions.Item
    (setq pDoc (vla-get-ActiveDocument (vlax-get-acad-object)))
    (setq pDBObj (vla-GetInterfaceObject (vlax-get-acad-object)
    "CAO.DbConnect.16")))

    (if (null pDBObj)
    (progn
    (alert "Cannot create CAO Automation server.")
    (exit)))
    (setq pLTs(vlax-invoke-method pDBObj "GetLinkTemplates" pDoc))
    (setq pKeyDescs (vla-GetInterfaceObject (vlax-get-acad-object)
    "CAO.KeyDescriptions"))

    (princ)
    )

    (defun c:CreateLT()
    (vl-load-com)



    ;get the DBConnect
    (setq pDBObj (vla-GetInterfaceObject (vlax-get-acad-object)
    "CAO.dbConnect"))
    (setq pKeyDescs (vla-GetInterfaceObject (vlax-get-acad-object)
    "CAO.KeyDescriptions"))

    (if (null pDBObj)
    (progn
    (alert "Cannot create CAO Automation server.")
    (exit)))


    ;get the linktemplates
    (setq pLTs(vlax-invoke-method pDBObj "GetLinkTemplates" pDoc))


    ;prepare the keydescriptions
    (setq pKeyDescs (vla-GetInterfaceObject (vlax-get-acad-object)
    "CAO.KeyDescriptions"))
    (vlax-invoke-method pKeyDescs "ADD" "TAG_NUMBER" 3 nil nil)
    (vlax-invoke-method pKeyDescs "ADD" "Manufacturer" 1 nil nil)
    ;create two link templates
    (vlax-invoke-method pLTs "ADD" "jet_dbsamples" nil nil "COMPUTER"
    "LTCreatedByVLispCAO" pKeyDescs)
    (vlax-invoke-method pLTs "ADD" "jet_dbsamples" nil nil "COMPUTER"
    "LTtobeDeleted" pKeyDescs)


    ;sample code to show how to delete the link template
    (vlax-invoke-method pLTs "delete" "LTtobeDeleted")
    )
     
    Rudy Tovar, Jan 20, 2005
    #2
  3. Rudy Tovar

    David Allen Guest

    humm, maybe a must better understanding of spelling?

    "Rudy Tovar" <>
    |>I've got a must better understanding


    David
     
    David Allen, Jan 22, 2005
    #3
  4. Rudy Tovar

    Rudy Tovar Guest

    You've honestly, have got to grow up...
     
    Rudy Tovar, Jan 24, 2005
    #4
  5. Rudy Tovar

    Paul Turvill Guest

    Even though growing old is inevitable, growing up is still optional.
    ___
     
    Paul Turvill, Jan 24, 2005
    #5
  6. Rudy Tovar

    Rudy Tovar Guest

    Yeah...haahaa...

    For some of us....


     
    Rudy Tovar, Jan 24, 2005
    #6
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.