月更
This commit is contained in:
@@ -47,6 +47,18 @@ public class ExplodeDwgCmd : ExternalCommand
|
||||
|
||||
}
|
||||
}
|
||||
try
|
||||
{
|
||||
if (geoObj is Solid solid)
|
||||
{
|
||||
var directShape = DirectShape.CreateElement(Document, f.FamilyCategory.Id);
|
||||
directShape.SetShape(new GeometryObject[] { solid });
|
||||
}
|
||||
}
|
||||
catch (Exception)
|
||||
{
|
||||
continue;
|
||||
}
|
||||
}
|
||||
Document.Delete(element.Id);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user