We have the TrimSolidWithSurface Method in Microstation VBA, but that is buggy because programmer needs to handle 3 scenarios:
If the solid can be cut by surface
If the closestpoint not vague to find a face
If the output of solid is what programmer desired
Therefore, I would like to request an alternative VBA COM. VBA Document would be similar like this:
IsSolidSplit Method
Returns True if the given solid is split successfully, and if so, also returns a array of SmartSolidElements.
Syntax
Boolean = object.IsSolidSplit(ElementEnumerator, solid, toolSurface)
The IsSolidSplit method syntax has these parts:
Part Description
ElementEnumerator Output of a array of SmartSolidElements
Solid A SmartSolidElement expression. the solid which will be split.
toolSurface An Element expression. input surface to split the solid.
The new method will not require Programmer a closestpoint and normal of surface, and will allow Programmers to handle error when the solid cannot be split by the surface. Programmers can choose the desired solid from ElementEnumerator by their own ways (e.g. closest distance, normal of surface etc.).