ConstructionLine
#
- class ansys.mechanical.stubs.v242.Ansys.ACT.Automation.Mechanical.ConstructionLines.ConstructionLine#
Bases:
object
Overview#
|
CreatePoints method. |
|
CreatePlanarPoints method. |
|
Create a plane. |
|
CreateStraightLines method. |
|
CreateStraightLines method. |
|
FlipEdges method. |
|
DeleteEdges method. |
|
Delete a plane associated with this construction line. |
|
Add a part to Geometry with line bodies as contained in this ConstructionLine instance. |
|
Update the corresponding part with any changes made in this ConstructionLine instance. |
|
Remove the corresponding part from the geometry. |
|
Get the corresponding part for a ConstructionLine instance. |
|
Undo the last operation in this Construction Line instance. |
|
Redo and undone operation in this Construction Line instance. |
|
Creates a new child Comment. |
|
Creates a new child Figure. |
|
Creates a new child Image. |
|
Activate the current object. |
|
Copies all visible properties from this object to another. |
|
Creates a copy of the current DataModelObject. |
|
Run the GroupAllSimilarChildren action. |
|
Run the GroupSimilarObjects action. |
|
Get a property by its unique name. |
|
Get a property by its API name. |
|
Creates a new parameter for a Property. |
|
Gets the parameter corresponding to the given property. |
|
Removes the parameter from the parameter set corresponding to the given property. |
|
Creates for the user an IEdge representation of each edge in this Construction Line. |
|
Returns all points in this Construction Line, both those that have been created |
|
Creates for the user an Plane representation of each plane in this Construction Line. |
|
Gets the internal object. For advanced usage only. |
|
Gets the current DataModelObject’s category. |
|
Gets the list of associated comments. |
|
Gets the list of associated figures. |
|
Gets the list of associated images. |
|
Gets or sets the ReadOnly. |
|
Gets the internal object. For advanced usage only. |
|
Gets the list of properties for this object. |
|
Gets the list of properties that are visible for this object. |
Property detail#
- property ConstructionLine.Edges: System.Collections.Generic.IList[System.Object] | None
Creates for the user an IEdge representation of each edge in this Construction Line.
- property ConstructionLine.Points: System.Collections.Generic.IList[System.Object] | None
Returns all points in this Construction Line, both those that have been created as well as virtual representations.
- property ConstructionLine.Planes: System.Collections.Generic.IList[System.Object] | None
Creates for the user an Plane representation of each plane in this Construction Line.
- property ConstructionLine.InternalObject: Ansys.Common.Interop.DSLines.IDSLinesPythonInteraction | None
Gets the internal object. For advanced usage only.
- property ConstructionLine.DataModelObjectCategory: Ansys.Mechanical.DataModel.Enums.DataModelObjectCategory | None
Gets the current DataModelObject’s category.
- property ConstructionLine.Comments: System.Collections.Generic.IEnumerable[Ansys.ACT.Automation.Mechanical.Comment] | None
Gets the list of associated comments.
- property ConstructionLine.Figures: System.Collections.Generic.IEnumerable[Ansys.ACT.Automation.Mechanical.Figure] | None
Gets the list of associated figures.
- property ConstructionLine.Images: System.Collections.Generic.IEnumerable[Ansys.ACT.Automation.Mechanical.Image] | None
Gets the list of associated images.
- property ConstructionLine.ReadOnly: System.Boolean | None
Gets or sets the ReadOnly.
- property ConstructionLine.InternalObject: System.Object | None
Gets the internal object. For advanced usage only.
- property ConstructionLine.Properties: System.Collections.Generic.IReadOnlyList[Ansys.ACT.Automation.Mechanical.Property] | None
Gets the list of properties for this object.
- property ConstructionLine.VisibleProperties: System.Collections.Generic.IReadOnlyList[Ansys.ACT.Automation.Mechanical.Property] | None
Gets the list of properties that are visible for this object.
Method detail#
- ConstructionLine.CreatePoints(pointDefinitionCollection: System.Collections.Generic.IEnumerable[System.Object]) System.Collections.Generic.IList[System.Object]
CreatePoints method.
- ConstructionLine.CreatePlanarPoints(plane: Ansys.Mechanical.DataModel.ConstructionLines.Plane, pointDefinitionCollection: System.Collections.Generic.IEnumerable[System.Object]) System.Collections.Generic.IList[System.Object]
CreatePlanarPoints method.
- ConstructionLine.CreatePlane(sketchPlaneDefinition: System.Object) Ansys.Mechanical.DataModel.ConstructionLines.Plane
Create a plane.
- ConstructionLine.CreateStraightLines(pointCollection: System.Collections.Generic.IEnumerable[Ansys.Mechanical.DataModel.ConstructionLines.Point]) System.Collections.Generic.IList[System.Object]
CreateStraightLines method.
- ConstructionLine.CreateStraightLines(pointCollection: System.Collections.Generic.IEnumerable[Ansys.Mechanical.DataModel.ConstructionLines.Point], connectionCollection: System.Collections.Generic.IEnumerable[System.Collections.Generic.IEnumerable[System.Object]]) System.Collections.Generic.IList[System.Object]
CreateStraightLines method.
- ConstructionLine.FlipEdges(edgesToFlip: System.Collections.Generic.IEnumerable[Ansys.Mechanical.DataModel.ConstructionLines.Edges.IEdge]) System.Void
FlipEdges method.
- ConstructionLine.DeleteEdges(edgeCollection: System.Collections.Generic.IEnumerable[Ansys.Mechanical.DataModel.ConstructionLines.Edges.IEdge]) System.Void
DeleteEdges method.
- ConstructionLine.DeletePlane(plane: Ansys.Mechanical.DataModel.ConstructionLines.Plane, forceDelete: System.Boolean) System.Void
Delete a plane associated with this construction line.
- ConstructionLine.AddToGeometry() Ansys.ACT.Interfaces.Geometry.IGeoPart
Add a part to Geometry with line bodies as contained in this ConstructionLine instance.
- ConstructionLine.UpdateGeometry() System.Void
Update the corresponding part with any changes made in this ConstructionLine instance.
- ConstructionLine.RemoveFromGeometry() System.Void
Remove the corresponding part from the geometry.
- ConstructionLine.GetPartFromGeometry() Ansys.ACT.Interfaces.Geometry.IGeoPart
Get the corresponding part for a ConstructionLine instance.
- ConstructionLine.Undo() System.Void
Undo the last operation in this Construction Line instance.
- ConstructionLine.Redo() System.Void
Redo and undone operation in this Construction Line instance.
- ConstructionLine.AddComment() Ansys.ACT.Automation.Mechanical.Comment
Creates a new child Comment.
- ConstructionLine.AddFigure() Ansys.ACT.Automation.Mechanical.Figure
Creates a new child Figure.
- ConstructionLine.AddImage(filePath: System.String) Ansys.ACT.Automation.Mechanical.Image
Creates a new child Image.
If a filePath is provided, the image will be loaded from that file,
if not, the image will be a screen capture of the Geometry window.
- ConstructionLine.Activate() System.Void
Activate the current object.
- ConstructionLine.CopyTo(other: Ansys.ACT.Automation.Mechanical.DataModelObject) System.Void
Copies all visible properties from this object to another.
- ConstructionLine.Duplicate() Ansys.Mechanical.DataModel.Interfaces.IDataModelObject
Creates a copy of the current DataModelObject.
- ConstructionLine.GroupAllSimilarChildren() System.Void
Run the GroupAllSimilarChildren action.
- ConstructionLine.GroupSimilarObjects() Ansys.ACT.Automation.Mechanical.TreeGroupingFolder
Run the GroupSimilarObjects action.
- ConstructionLine.PropertyByName(name: System.String) Ansys.ACT.Automation.Mechanical.Property
Get a property by its unique name.
- ConstructionLine.PropertyByAPIName(name: System.String) Ansys.ACT.Automation.Mechanical.Property
Get a property by its API name.
If multiple properties have the same API Name, only the first property with that name will be returned.
- ConstructionLine.CreateParameter(propName: System.String) Ansys.ACT.Interfaces.Mechanical.IParameter
Creates a new parameter for a Property.
- ConstructionLine.GetParameter(propName: System.String) Ansys.ACT.Interfaces.Mechanical.IParameter
Gets the parameter corresponding to the given property.
- ConstructionLine.RemoveParameter(propName: System.String) System.Void
Removes the parameter from the parameter set corresponding to the given property.