AddByTearOff Method (Part Environment)

Experimenter
Experimenter

Guys,

 

This is my first post so don't hesitate to pick me up on ill protocol.

 

I'm having trouble executing the AddByTearOff Method in a Part Environment. I have a predefined sketch that I'd like to tear off onto a plane that I create programmatically (AddNormalToCurve). The sketch contains line2d and arc2d objects. I'm assuming my error is associated with defining the ProfileCurveBodyEdges parameter (the sketch I'd like to copy). Any help on this or examples would be very much appreciated!