How to access wire?
Options

Kevin
✭✭
in RobotStudio
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: [CODE]Dim MyFace As Face
Dim bdyWire As Body
bdyWire = Body.CreateParametricCurveU(MyFace, 0) [/CODE]
I now wish to make use of the wire so I try: [CODE]Dim WireStart As Vertex
WireStart = bdyWire.EndVertex [/CODE]
... 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
The API Help states that CreateParametricCurveU creates a new wire body on the surface of a face.
So I create a wire body with: [CODE]Dim MyFace As Face
Dim bdyWire As Body
bdyWire = Body.CreateParametricCurveU(MyFace, 0) [/CODE]
I now wish to make use of the wire so I try: [CODE]Dim WireStart As Vertex
WireStart = bdyWire.EndVertex [/CODE]
... 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
0
Comments
-
Hi Kevin,
You can access the wire like this:
[code]bdyWire.Shells[0].Wires[0]
[/code]
Johannes Weiman2009-11-30 08:33:29Johannes Weiman
Software Engineer
ABB Robotics0 -
Thanks Johannes,
For clarity, the syntax required is:
[CODE]WireStart = bdyWire.Shells.Item(0).Wires.Item(0).StartVertex[/CODE]
Regards,
Kevin
0
Categories
- All Categories
- 5.6K RobotStudio
- 400 UpFeed
- 20 Tutorials
- 14 RobotApps
- 301 PowerPacs
- 406 RobotStudio S4
- 1.8K Developer Tools
- 250 ScreenMaker
- 2.8K Robot Controller
- 346 IRC5
- 73 OmniCore
- 8 RCS (Realistic Controller Simulation)
- 844 RAPID Programming
- 20 AppStudio
- 4 RobotStudio AR Viewer
- 19 Wizard Easy Programming
- 108 Collaborative Robots
- 5 Job listings