A couple of DXF code questions

Discussion in 'AutoCAD' started by Cliff Davis, Jun 23, 2003.

  1. Cliff Davis

    Cliff Davis Guest

    Is there a DXF code that controls the color of mtext, if not how is this
    actually controlled. Also what controls the frozen/thawed state of a layer
    in individual viewports.
    Thanks
    Cliff
     
    Cliff Davis, Jun 23, 2003
    #1
  2. Is there a DXF code that controls the color of mtext, if not how is this
    If it's not specified in the DXF list, it's BYLAYER otherwise it's
    specified with the same color code as any other entity in AutoCAD - code
    62. If it's zero, it's color is set to BYBLOCK. 256 also might show up
    which represents bylayer. Negative numbers indicate the layer is turned
    off.
    Layers frozen in specific modelspace viewports are controlled via
    attached extended entity data attached to the viewport object which
    resides in paperspace for r14 and earlier versions of AutoCAD.

    In AutoCAD 2000, 2000i, and 2002, this is stored in group code 341 of
    the viewport entity (in the main DXF list not in Xdata) and also is
    duplicated in the Xdata for compatibility reasons.

    And if that isn't bad enough, in AutoCAD 2004, it's now stored in 331
    instead of 341. 2004 also duplicates this data in xdata for
    compatibility reasons.

    Due to the compatibility issues, unless your programming code is going
    to be running in multiple version of AutoCAD, it would be recommended to
    use the main DXF group codes instead of Xdata as the duplicate info in
    the Xdata may go away at some point.


    --

    Darren J. Young


    Autodesk Developer Network
    AUGI Inventor Product Chair

    Minnesota CADWorks, Inc.
    PO Box 1172
    Monticello, Minnesota 55362-1172
    (763) 295-4433
    http://www.mcwi.com
    ftp://ftp.mcwi.com
     
    Darren J. Young, Jun 25, 2003
    #2
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.