ConstructionLine
#
- class ansys.mechanical.stubs.v241.Ansys.ACT.Automation.Mechanical.ConstructionLines.ConstructionLine#
Bases:
object
Overview#
Activate the current object. |
|
Creates a new child Comment. |
|
Creates a new child Figure. |
|
Creates a new child Image. |
|
Add a part to Geometry with line bodies as contained in this ConstructionLine instance. |
|
Copies all visible properties from this object to another. |
|
Creates a new parameter for a Property. |
|
CreatePlanarPoints method. |
|
Create a plane. |
|
CreatePoints method. |
|
CreateStraightLines method. |
|
DeleteEdges method. |
|
Delete a plane associated with this construction line. |
|
Creates a copy of the current DataModelObject. |
|
FlipEdges method. |
|
Gets the parameter corresponding to the given property. |
|
Get the corresponding part for a ConstructionLine instance. |
|
Run the GroupAllSimilarChildren action. |
|
Run the GroupSimilarObjects action. |
|
Get a property by its API name. |
|
Get a property by its unique name. |
|
Redo and undone operation in this Construction Line instance. |
|
Remove the corresponding part from the geometry. |
|
Removes the parameter from the parameter set corresponding to the given property. |
|
Undo the last operation in this Construction Line instance. |
|
Update the corresponding part with any changes made in this ConstructionLine instance. |
Gets the list of associated comments. |
|
Gets the current DataModelObject's category. |
|
Creates for the user an IEdge representation of each edge in this Construction Line. |
|
Gets the list of associated figures. |
|
Gets the list of associated images. |
|
Gets the internal object. For advanced usage only. |
|
Creates for the user an Plane representation of each plane in this Construction Line. |
|
Returns all points in this Construction Line, both those that have been created |
|
Gets the list of properties for this object. |
|
Gets or sets the ReadOnly. |
|
Gets the list of properties that are visible for this object. |
Property detail#
- property ConstructionLine.Comments: Iterable[Ansys.ACT.Automation.Mechanical.Comment] | None#
Gets the list of associated comments.
- property ConstructionLine.DataModelObjectCategory: Ansys.Mechanical.DataModel.Enums.DataModelObjectCategory | None#
Gets the current DataModelObject's category.
- property ConstructionLine.Edges: List[Any] | None#
Creates for the user an IEdge representation of each edge in this Construction Line.
- property ConstructionLine.Figures: Iterable[Ansys.ACT.Automation.Mechanical.Figure] | None#
Gets the list of associated figures.
- property ConstructionLine.Images: Iterable[Ansys.ACT.Automation.Mechanical.Image] | None#
Gets the list of associated images.
- property ConstructionLine.InternalObject: Ansys.Common.Interop.DSLines.IDSLinesPythonInteraction | None#
Gets the internal object. For advanced usage only.
- property ConstructionLine.Planes: List[Any] | None#
Creates for the user an Plane representation of each plane in this Construction Line.
- property ConstructionLine.Points: List[Any] | None#
Returns all points in this Construction Line, both those that have been created as well as virtual representations.
Method detail#
- 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: str) 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.AddToGeometry() Ansys.ACT.Interfaces.Geometry.IGeoPart #
Add a part to Geometry with line bodies as contained in this ConstructionLine instance.
- ConstructionLine.CopyTo(other: Ansys.ACT.Automation.Mechanical.DataModelObject) None #
Copies all visible properties from this object to another.
- ConstructionLine.CreateParameter(propName: str) Ansys.ACT.Interfaces.Mechanical.IParameter #
Creates a new parameter for a Property.
- ConstructionLine.CreatePlanarPoints(plane: Ansys.Mechanical.DataModel.ConstructionLines.Plane, pointDefinitionCollection: Iterable[Any]) List[Any] #
CreatePlanarPoints method.
- ConstructionLine.CreatePlane(sketchPlaneDefinition: Any) Ansys.Mechanical.DataModel.ConstructionLines.Plane #
Create a plane.
- ConstructionLine.CreatePoints(pointDefinitionCollection: Iterable[Any]) List[Any] #
CreatePoints method.
- ConstructionLine.CreateStraightLines(pointCollection: Iterable[Ansys.Mechanical.DataModel.ConstructionLines.Point]) List[Any] #
CreateStraightLines method.
- ConstructionLine.DeleteEdges(edgeCollection: Iterable[Ansys.Mechanical.DataModel.ConstructionLines.Edges.IEdge]) None #
DeleteEdges method.
- ConstructionLine.DeletePlane(plane: Ansys.Mechanical.DataModel.ConstructionLines.Plane, forceDelete: bool) None #
Delete a plane associated with this construction line.
- ConstructionLine.Duplicate() Ansys.Mechanical.DataModel.Interfaces.IDataModelObject #
Creates a copy of the current DataModelObject.
- ConstructionLine.FlipEdges(edgesToFlip: Iterable[Ansys.Mechanical.DataModel.ConstructionLines.Edges.IEdge]) None #
FlipEdges method.
- ConstructionLine.GetParameter(propName: str) Ansys.ACT.Interfaces.Mechanical.IParameter #
Gets the parameter corresponding to the given property.
- ConstructionLine.GetPartFromGeometry() Ansys.ACT.Interfaces.Geometry.IGeoPart #
Get the corresponding part for a ConstructionLine instance.
- ConstructionLine.GroupSimilarObjects() Ansys.ACT.Automation.Mechanical.TreeGroupingFolder #
Run the GroupSimilarObjects action.
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.PropertyByName(name: str) Ansys.ACT.Automation.Mechanical.Property #
Get a property by its unique name.