Troubleshooting: Smart Variable with Wrong Selection
Known Issue
In case of a selection (Smart Variable), sometimes SpaceClaim cannot find which geometry to select, and may select the wrong one.
Solution
In the script editor, add a custom block that defines the correct selection by using a filter function provided in the SpaceClaim API scripting.
Example
The green part needs to be kept, and the orange part needs to be removed.
The code to write would be:
Selection = B1.CreatedBodies.ConvertToBodies().FilterMaxSurfaceArea()
Delete.Execute(Selection)