TransformCollection
A collection of transforms applied to the geometry.
Example
application = cf.Application.GetInstance() project = application:NewProject() cuboid = project.Contents.Geometry:AddCuboid(cf.Point(0,0,0),1,1,1) -- Use the TransformCollection to add a geometry transform transformGeometryCollection = cuboid.Transforms transformGeometryCollection:AddTranslate(cf.Point(0,0,0),cf.Point(1,1,1)) -- Retrieve and delete the transform transformGeometryCollection:Item(1):Delete()
Inheritance
The TransformCollection object is derived from the AbstractModifiableCollection object.
Usage locations
The TransformCollection object can be accessed from the following locations:
- Collection lists
- GeometryGroup collection has collection Transforms.
- Transform object has collection Transforms.
- Align object has collection Transforms.
- Mirror object has collection Transforms.
- Rotate object has collection Transforms.
- Scale object has collection Transforms.
- Translate object has collection Transforms.
- NamedPoint object has collection Transforms.
- Workplane object has collection Transforms.
- AbstractAntennaArray object has collection Transforms.
- CylindricalAntennaArray object has collection Transforms.
- LinearPlanarArray object has collection Transforms.
- CustomAntennaArray object has collection Transforms.
- Cutplane object has collection Transforms.
- CablePath object has collection Transforms.
- MeshRefinementRule object has collection Transforms.
- AdaptiveRefinement object has collection Transforms.
- PointRefinement object has collection Transforms.
- PolylineRefinement object has collection Transforms.
- Mesh object has collection Transforms.
- Geometry object has collection Transforms.
- AnalyticalCurve object has collection Transforms.
- BezierCurve object has collection Transforms.
- Cone object has collection Transforms.
- ConstrainedSurface object has collection Transforms.
- Cuboid object has collection Transforms.
- Cylinder object has collection Transforms.
- Ellipse object has collection Transforms.
- EllipticArc object has collection Transforms.
- FittedSpline object has collection Transforms.
- Flare object has collection Transforms.
- Helix object has collection Transforms.
- HyperbolicArc object has collection Transforms.
- ImprintPoints object has collection Transforms.
- Intersect object has collection Transforms.
- Loft object has collection Transforms.
- PathSweep object has collection Transforms.
- ProjectGeometry object has collection Transforms.
- RepairAndSewFaces object has collection Transforms.
- RepairPart object has collection Transforms.
- Spin object has collection Transforms.
- Split object has collection Transforms.
- Stitch object has collection Transforms.
- Subtract object has collection Transforms.
- Sweep object has collection Transforms.
- Union object has collection Transforms.
- Simplify object has collection Transforms.
- Line object has collection Transforms.
- NurbsSurface object has collection Transforms.
- ParabolicArc object has collection Transforms.
- Paraboloid object has collection Transforms.
- Polygon object has collection Transforms.
- Polyline object has collection Transforms.
- Primitive object has collection Transforms.
- Rectangle object has collection Transforms.
- Sphere object has collection Transforms.
- AbstractSurfaceCurve object has collection Transforms.
- SurfaceBezierCurve object has collection Transforms.
- SurfaceLine object has collection Transforms.
- SurfaceRegularLines object has collection Transforms.
- FieldData object has collection Transforms.
- SolutionCoefficientData object has collection Transforms.
- PCBCurrentData object has collection Transforms.
- SphericalModeDataManuallySpecified object has collection Transforms.
- SphericalModeDataFromFile object has collection Transforms.
- NearFieldDataFullImport object has collection Transforms.
- NearFieldDataFileStructure object has collection Transforms.
- FarFieldData object has collection Transforms.
- AbstractFEMLinePort object has collection Transforms.
- FEMLineMeshPort object has collection Transforms.
- FEMLinePort object has collection Transforms.
- FEMModalMeshPort object has collection Transforms.
- FEMModalPort object has collection Transforms.
- AbstractIdealSource object has collection Transforms.
- AbstractPointSource object has collection Transforms.
- ElectricDipole object has collection Transforms.
- MagneticDipole object has collection Transforms.
- ImpressedCurrent object has collection Transforms.
- FarFieldSource object has collection Transforms.
- NearFieldSource object has collection Transforms.
- PCBSource object has collection Transforms.
- SolutionCoefficientSource object has collection Transforms.
- SphericalModeSource object has collection Transforms.
- PlaneWave object has collection Transforms.
- FarField object has collection Transforms.
- BaseFieldReceivingAntenna object has collection Transforms.
- FarFieldReceivingAntenna object has collection Transforms.
- NearFieldReceivingAntenna object has collection Transforms.
- SphericalModeReceivingAntenna object has collection Transforms.
- ModelDecomposition object has collection Transforms.
- NearField object has collection Transforms.
- PeriodicBoundary object has collection Transforms.
- ProtectedModel object has collection Transforms.
Property List
Method List
- AddAlign (properties table)
- Apply a align using a table defining the properties. (Returns a Align object.)
- AddAlign (sourceorigin Point, sourceuvector Vector, sourcevvector Vector, destinationorigin Point, destinationuvector Vector, destinationvvector Vector)
- Returns a Align object. (Returns a Align object.)
- AddRotate (origin Point, rotationaxis Vector, angle Expression)
- Apply a rotation. (Returns a Rotate object.)
- AddRotate (properties table)
- Apply a rotation using a table defining the properties. (Returns a Rotate object.)
- AddScale (origin Point, factor Expression)
- Apply a scale. (Returns a Scale object.)
- AddScale (properties table)
- Apply a scale using a table defining the properties. (Returns a Scale object.)
- AddTranslate (from Point, to Point)
- Apply a translate between the given coordinates. (Returns a Transform object.)
- AddTranslate (properties table)
- Apply a translate using a table defining the properties. (Returns a Translate object.)
- Delete ()
- Deletes the entity.
- Duplicate ()
- Duplicates the entity. (Returns a Object object.)
- GetProperties ()
- Returns a table of properties representing the state of the object. The properties table can be used with the SetProperties method to change multiple properties of the object in one step. (Returns a table object.)
- Item (index number)
- Returns the Transform for the given index in the collection. (Returns a Transform object.)
- Item (label string)
- Returns the Transform for the given label in the collection. (Returns a Transform object.)
- Items ()
- Returns a table of Transform items. (Returns a UnsupportedType(List of Transform) object.)
- SetProperties (properties Object)
- Modifies the state of the object using the provided table of properties. This method is used to modify multiple properties of the object in a single step.
Static Function List
- GetDefaultProperties ()
- Creates a table containing the default settings to create an object. (Returns a table object.)
Property Details
Method Details
- AddAlign (properties table)
- Apply a align using a table defining the properties.
- AddAlign (sourceorigin Point, sourceuvector Vector, sourcevvector Vector, destinationorigin Point, destinationuvector Vector, destinationvvector Vector)
- Returns a Align object.
- Input Parameters
- sourceorigin(Point)
- Source origin coordinate.
- sourceuvector(Vector)
- Source U vector direction.
- sourcevvector(Vector)
- Source V vector direction.
- destinationorigin(Point)
- Destination origin coordinate.
- destinationuvector(Vector)
- Destination U vector direction.
- destinationvvector(Vector)
- Destination V vector direction.
- Return
- Align
- Returns a Align object.
- AddRotate (origin Point, rotationaxis Vector, angle Expression)
- Apply a rotation.
- Input Parameters
- origin(Point)
- The coordinates of the origin of the rotation.
- rotationaxis(Vector)
- The axis of rotation.
- angle(Expression)
- The angle of rotation (degrees).
- Return
- Rotate
- The rotate transform.
- AddRotate (properties table)
- Apply a rotation using a table defining the properties.
- AddScale (origin Point, factor Expression)
- Apply a scale.
- Input Parameters
- origin(Point)
- The coordinates of the origin of the scale transformation.
- factor(Expression)
- The factor to scale by.
- Return
- Scale
- The scale transform.
- AddScale (properties table)
- Apply a scale using a table defining the properties.
- AddTranslate (from Point, to Point)
- Apply a translate between the given coordinates.
- AddTranslate (properties table)
- Apply a translate using a table defining the properties.
- Delete ()
- Deletes the entity.
- Duplicate ()
- Duplicates the entity.
- Return
- Object
- The new (duplicated) entity.
- GetProperties ()
- Returns a table of properties representing the state of the object. The properties table can be used with the SetProperties method to change multiple properties of the object in one step.
- Return
- table
- A table defining the properties.
- Item (index number)
- Returns the Transform for the given index in the collection.
- Item (label string)
- Returns the Transform for the given label in the collection.
- Items ()
- Returns a table of Transform items.
- Return
- UnsupportedType(List of Transform)
- The list of items in the collection
- SetProperties (properties Object)
- Modifies the state of the object using the provided table of properties. This method is used to modify multiple properties of the object in a single step.
- Input Parameters
- properties(Object)
- A table of properties defining the new state of the object.
Static Function Details
- GetDefaultProperties ()
- Creates a table containing the default settings to create an object.
- Return
- table
- A table containing the default properties.