命名调整

This commit is contained in:
GG Z
2025-07-12 23:31:32 +08:00
parent 4d35cadb56
commit 6d96da6f90
88 changed files with 3975 additions and 2763 deletions

View File

@@ -32,11 +32,19 @@ public class ExplodeDwgCmd : ExternalCommand
{
foreach (var obj in instance.GetInstanceGeometry())
{
if (obj is Solid solid)
try
{
var directShape = DirectShape.CreateElement(Document, f.FamilyCategory.Id);
directShape.SetShape(new GeometryObject[] { solid });
if (obj is Solid solid)
{
var directShape = DirectShape.CreateElement(Document, f.FamilyCategory.Id);
directShape.SetShape(new GeometryObject[] { solid });
}
}
catch (Exception)
{
continue;
}
}
}
}