Creating the Wire Port
Define a wire port at the end of Feedline with label Port1.
myPort = myProject.Contents.Ports:AddWirePort(myUnion.Wires[1]) myPort.Label = "Port1"
- A port is a object and since there may be multiple objects in the model, it is part of the PortCollection.
- Search for PortCollection in the Help1.
-
In the Help, under
, search for methods that are applicable to geometry wire
ports:
- AddWirePort (table table)
- AddWirePort (wire Edge)
To create a wire port, we will use the method:AddWirePort(wire Edge)
-
Add the wire where wire port will be placed.
AddWirePort(myUnion.Wires[1])
Note: Use indexing to access a face, wire, edge or region in the details tree. -
Determine the syntax to prepend to AddWirePort:
-
Add a reference to the newly created wire port:
myPort = myProject.Contents.Ports:AddWirePort(myUnion.Wires[1])
-
Set the wire port label to Port1:
myPort.Label = "Port1"
Tip: View the WirePort (object) in the Help for a short example.