CablePointsCornerCollection
A collection of corner coordinates.
Example
app = cf.GetApplication() project = app:NewProject() -- Add a cable path to the model 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) -- Move the corner points to N = 1 for i = 1, #path.Corners do path.Corners[i].N = 1 end
Usage locations (collections)
The following objects contain the CablePointsCornerCollection collection:
Property List
Method List
- Add (point Coordinate)
- Add a corner coordinate to the cable path.
- Item (index number)
- Returns the LocalCoordinates at the given index. (Returns a LocalCoordinates object.)
- Modify (index number, point Coordinate)
- Modify the corner coordinate at the given index.
- Remove (index number)
- Remove a corner from the cable path at the given index.
- Set (points List of Point)
- Replace the corners with a list of points.
Index List
- [number]
- Returns the LocalCoordinates at the given index in the collection. (Read LocalCoordinates)
Property Details
- Count
- The number of LocalCoordinates items in the collection.
- Type
- number
- Access
- Read only
Method Details
- Add (point Coordinate)
- Add a corner coordinate to the cable path.
- Input Parameters
- point(Coordinate)
- The corner coordinate.
- Item (index number)
- Returns the LocalCoordinates at the given index.
- Input Parameters
- index(number)
- The index of the LocalCoordinates.
- Return
- LocalCoordinates
- The LocalCoordinates at the given index.
- Modify (index number, point Coordinate)
- Modify the corner coordinate at the given index.
- Input Parameters
- index(number)
- The corner index.
- point(Coordinate)
- The new corner coordinate.
- Remove (index number)
- Remove a corner from the cable path at the given index.
- Input Parameters
- index(number)
- The corner index.
- Set (points List of Point)
- Replace the corners with a list of points.