LayerStates
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I'm updating the layers for a LayerState after swapping an XREF of one with another. I'm noticing I'm making the list quite large since the old XREF layerStates remain in the ResultBuffer. AutoCAD seems to keep around the clear out the ObjectId Layer values to null.
(93,0)
(331,(0))
(1,Color_2)(440,0)
(330,(0))
(90,8)
(62,30)
(370,35)Does anyone know if Autodesk stores the XREF Layer information. So if the user reattaches the XREF they come back? Or is it just Autodesk not cleaning the list up? This would explain why some people say you should recreate templates each year, since recreating the template would get rid of all of these orphaned layerstates.
I think I want to swap wout the ObjectId.Null with the new value instead of adding new ones. But I'm afraid I might break something that isn't exposed in the API.
https://help.autodesk.com/view/OARX/2026/ENU/?guid=GUID-80B3DAD6-B1F6-4BCC-86C7-7FA2444EEDFB
http://blog.civil3dreminders.com/
http://www.CivilReminders.com/
Alumni