How to access wire?

RS 5.12.02

The API Help states that CreateParametricCurveU creates a new wire body on the surface of a face.

So I create a wire body with: Dim MyFace As Face Dim bdyWire As Body bdyWire = Body.CreateParametricCurveU(MyFace, 0)

I now wish to make use of the wire so I try: Dim WireStart As Vertex WireStart = bdyWire.EndVertex

… but this does not work because bdyWire is a body, not a wire, so EndVertex is not a valid property.

I have searched Help but cannot see how to access the wire.

Thanks,

Kevin

Hi Kevin,

You can access the wire like this:

bdyWire.Shells[0].Wires[0]

Thanks Johannes,

For clarity, the syntax required is:

WireStart = bdyWire.Shells.Item(0).Wires.Item(0).StartVertex

Regards,

Kevin