‘Drawing A’ has ‘Drawing B’ Xref’d into it.
The layers for Xref’d ‘Drawing B’ have been manipulated (colours and visibility) in ‘Drawing A’.
‘Drawing B’ is unloaded from ‘Drawing A’, and ‘Drawing A’ is then saved and exited from.
When ‘Drawing A’ is reopened, all of the manipulated layers from ‘Drawing B’ have defaulted to their ‘Drawing B’ layer state.
Note: The layer settings are retained in AutoCAD 2010 for this scenario.
Are there any other settings that may effect this?
Solved! Go to Solution.
VISRETAIN = 1
we are evolved in plant design and can have over 400 xreferences inn a CAD file.
Users like to unload xreferences at times for visual and performance gains but retain the layer settings.
when using AutoCAD 2010 this was not a problem.
It has been determined that this problem is due to our .net code migrated from AutoCAD 2010.
The function deltes empty layers from the symbol table (i.e. purge) and in 2012 is able to do so with xref layers.
Solution was to add the following test
If Not acSymTblRec.IsDependent Then Try acSymTblRec.Erase(True) Catch Ex As Autodesk.AutoCAD.Runtime.Exception MessageBox.Show("Error:" & vbLf & Ex.Message, fcn) End Try End If
Thanks to Autodesk for their assitance in resolving this.