Found this problem this morning: if you set IsFrozen
to false
on the current layer, you'll get an Autodesk.AutoCAD.Runtime.Exception
with the ErrorStatus
at eInvalidLayer
. The setter is certainly checking if the layer is current to avoid freezing it, but it should test the value to ignore when it is false
.
So you have to check the layer state before changing the property to false
:
if (layer.IsFrozen) layer.IsFrozen = false;
Need a specific development for AutoCAD?
Development of add ins for AutoCAD and the other Autodesk softwares (AutoCAD Electrical, AutoCAD Mechanical, Inventor, Revit, Vault, Navisworks...). C#/VB/.NET, C++/ObjectARX, AutoLISP, VBA.
Maxence DELANNOY - maxence.delannoy@wiip.fr
|
Ajouter un commentaire