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
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.
PolyTech Forum website is not affiliated with any of the manufacturers or service providers discussed here.
All logos and trade names are the property of their respective owners.