Skip to Main Content
Need Support? Let’s guide you to the right answer or agent.
Status Needs review
Categories 3D Modeling
Created by Guest
Created on Mar 15, 2022

[VBA CE/V8i] Enhancement Request - IsSolidSplit Method

We have the TrimSolidWithSurface Method in Microstation VBA, but that is buggy because programmer needs to handle 3 scenarios:

  1. If the solid can be cut by surface

  2. If the closestpoint not vague to find a face

  3. 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.).