Trim Surfaces

Hello,
I’m having a problem trimming curves or even solids with some surfaces I import from Alias.

I always get the inner trim of a circle, instead of the main surface with a hole.

Can Anyone explain the exact method to trim a curve or solid into a surface?

When I’m home I’ll be able to post a screenshot of the code, as at work I can’t do it.

Thanks

Two methods:

https://dictionary.dynamobim.com/#/Geometry/Geometry/Action/Trim

https://dictionary.dynamobim.com/#/Geometry/Surface/Action/TrimWithEdgeLoops

Actually there is one more, which we used for our sample files:
Surface.SubtractFrom
It takes a surface, and a solid (which can be several, not intersecting bodies) which is then removed (=trimming) form that surface. This is especially useful, if the entities you want to trim out of your surfaces vary in amount and shape, due to changing script parameters.
Hope that helps,
GG