CablePathCollection
A collection of cable paths.
Example
app = cf.GetApplication() project = app:NewProject() -- Add a cable path to the cable path collection corners = {cf.Point(0,0,0), cf.Point(0,1,0), cf.Point(1,1,0), cf.Point(1,0,0)} path = project.Cables.Paths:Add(corners) -- Get the number of paths in the collection count = project.Cables.Paths.Count
Usage locations (collections)
The following objects contain the CablePathCollection collection:
Property List
Method List
- Add (cornerslist List of Coordinate)
- Create a cable path from a list of points. (Returns a CablePointsPath object.)
- Add (properties table)
- Create a cable path using table of properties. (Returns a CablePointsPath object.)
- Contains (label string)
- Checks if the collection contains an item with the given label. (Returns a boolean object.)
- Item (index number)
- Returns the CablePath at the given index. (Returns a CablePath object.)
- Item (label string)
- Returns the CablePath with the given label. (Returns a CablePath object.)
- Items ()
- Returns a table of CablePath. (Returns a List of CablePath object.)
- UniqueName (label string)
- Generates a unique name base of of the provided base name.If the base name already exists in the collection, a digit will be appended until a valid name is generated. (Returns a boolean object.)
Index List
Property Details
Method Details
- Add (cornerslist List of Coordinate)
- Create a cable path from a list of points.
- Input Parameters
- cornerslist(List of Coordinate)
- The list of points defining the cable path.
- Return
- CablePointsPath
- The cable path.
- Add (properties table)
- Create a cable path using table of properties.
- Input Parameters
- properties(table)
- The table of properties defining the cable path.
- Return
- CablePointsPath
- The cable path.
- Contains (label string)
- Checks if the collection contains an item with the given label.
- Item (index number)
- Returns the CablePath at the given index.
- Item (label string)
- Returns the CablePath with the given label.
- Items ()
- Returns a table of CablePath.
- UniqueName (label string)
- Generates a unique name base of of the provided base name.If the base name already exists in the collection, a digit will be appended until a valid name is generated.