How to Extrapolate Only Outer Edges of Door Panel Surfaces Using CAD VBA Macro

Hi all,

I'm working on a CAD VBA macro to extrapolate the outer edges of door panel surface parts. Here's my current approach:

  • I use the Boundary option to extract the edges of each surface.
  • Then I decompose the boundary into individual curves.
  • I extrapolate these curves to extend the surface.

However, the issue is that each surface typically has four edges, and not all of them are outer edges. Some are shared or connected with adjacent surfaces. I want to exclude these internal/shared edges and extrapolate only the outer edges.

My challenge:

How can I programmatically identify and filter out the edges that are connected to other surfaces, so that only the free/outer edges are extrapolated?

Any suggestions on how to achieve this in VBA or best practices for handling such surface edge filtering would be greatly appreciated.

Thanks in advancecatiacatvbaCADScriptCatia VBACatia Automation