Entmake a ACAD_TABLE style...

Discussion in 'AutoCAD' started by Sage Cowsert, Apr 6, 2004.

  1. Sage Cowsert

    Sage Cowsert Guest

    I'm just starting up with Autocad 2005. I'd like to have ACAD_TABLE styles
    on hand and ready to go. Is there a way I could entmake a table style? I
    don't see it.

    Thanks
    Sage
     
    Sage Cowsert, Apr 6, 2004
    #1
  2. Sage Cowsert

    siarnne Guest

    I haven't actually tried this in 2005, but you should be able to. Tablestyles are part of the objects collection of the dxf structure (instead of tables interestingly enough).
    To find a table style, you use the named object dictionary (namedobjdict function i think) object to retrieve the database pointer and then dictsearch, dictadd and dictnext to iterate through the collection. THere' a collection in there for table styles (similiar to pagesetups in 2002, I expect) which should return an entity name for your table that you can pass to entget or entmake. Of course, at this point, it might be simpler to use vba.
    I would guess it'd be something like this:
    thisdrawing.tablestyles.add(bunch of params,bunch more params,bunch of crap)
    Tables reference a subobject called a cell.
    Anyway, the full details are in the DXF reference.
    CAD Naked
    John
     
    siarnne, Apr 6, 2004
    #2
  3. Sage Cowsert

    Sage Cowsert Guest

    I ended up just creating the styles I'm interest in a drawing. I'll just
    insert that block into the current drawing. Seems easier that way. ;)
     
    Sage Cowsert, Apr 7, 2004
    #3
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.