A solid which was cut by a shape, and we didn't know what went wrong and became a Smartsurface.
In Microstation, SmartSolid can be converted by:
However, VBA failed to cap that. Any idea?
DemoTrimSolidWithSurface2.dgn
clever_anthony said:A solid which was cut by a shape, and we didn't know what went wrong and became a Smartsurface.
What tool with what setting was used to cut the solid?
General it is the problem with SmartSolids / SmartSurfaces: They represent old concept and are maintained only in CE generation. Moreover, because not existing object history, there is no way how to go back when anything goes wrong.
clever_anthony said:In Microstation, SmartSolid can be converted by:
Yes, but the result is not equal to properly cut solid, because internal hole is capped, so instead of pipe, solid bar is created.
clever_anthony said:However, VBA failed to cap that. Any idea?
What method was used? To cap the element is something different than to convert the element. And in what version?
Regards,
Jan
Bentley Accredited Developer: iTwin Platform - AssociateLabyrinth Technology | dev.notes() | cad.point
Jan Šlegr said:What tool with what setting was used to cut the solid?
I used TrimSolidWithSurface method to cut the solid, because SmartSolid.SolidSubtract allowed you to subtract a solikd with a smartsurface, meanwhile it didn't allow you to subtract with a shape element. The closest point is on the bottom of circle, say (-0.7094775, 0.249787, -0.5).
Jan Šlegr said:What method was used? To cap the element is something different than to convert the element. And in what version?
.AsSmartSolidElement.CapSurface in MSCE U16. Do you have alternative way to cut the SmartSolid with a shape element? (such as convert the shape to smartsurface, so as to bypass the .CapSurface method)
If you try to use VBA SmartSolid.ConvertToSmartSolidElement(shpaeElement), it will only shows: