Create a descrition with entmake

Discussion in 'AutoCAD' started by Timothy Spangler, Apr 14, 2004.

  1. I am creating layers using entmake and I want to add the description to
    them. What is the code for that?

    Thanks

    --
    _________________________________
    Timothy Spangler

    "You cannot escape the responsibility of tomorrow by evading it today"
    Abraham Lincoln
    _________________________________

    AutoCAD 2002
    WinXP
    Compaq Evo W6000
    Intel Xeon / 1G RAM
     
    Timothy Spangler, Apr 14, 2004
    #1
  2. Timothy Spangler

    Rudy Tovar Guest

    Is this for 2004? I haven't tried....

    Attach Xdata? (-3 (etc.))
    --

    AUTODESK
    Authorized Developer
    www.Cadentity.com
    MASi
     
    Rudy Tovar, Apr 14, 2004
    #2
  3. Yes this is for 2004

    --
    _________________________________
    Timothy Spangler

    "You cannot escape the responsibility of tomorrow by evading it today"
    Abraham Lincoln
    _________________________________

    AutoCAD 2002
    WinXP
    Compaq Evo W6000
    Intel Xeon / 1G RAM
     
    Timothy Spangler, Apr 14, 2004
    #3
  4. Timothy Spangler

    Mike Weaver Guest

    2005 exposes layer descriptions through an active-x Description property
    (including vla-put/get functions). When a drawing is saved from 2005 with
    layer desctriptions 2004 sees these descriptions as extended entity data
    attached to the layer object thus:
    ((-1 . <Entity name: 7ef94c80>)
    (0 . "LAYER")
    (330 . <Entity name: 7ef94c10>)
    (5 . "10")
    (100 . "AcDbSymbolTableRecord")
    (100 . "AcDbLayerTableRecord")
    (2 . "0")
    (70 . 0)
    (62 . 7)
    (6 . "Continuous")
    (290 . 1)
    (370 . -3)
    (390 . <Entity name: 7ef94c78>)
    (-3
    ("AcAecLayerStandard" (1000 . "") (1000 . "This is a test"))
    )
    )


    Hope that helps,
    Mike Weaver
     
    Mike Weaver, Apr 14, 2004
    #4
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.