Solid#

class ansys.mechanical.stubs.v242.Ansys.ACT.Automation.Mechanical.Solid#

Bases: object

Defines a Solid.

Overview#

AddGeometry

Add solid to the geometry.

UpdateGeometry

Update the solid on the geometry.

RemoveGeometry

Remove the solid from the geometry.

Delete

Run the Delete action.

GetChildren

Gets the list of children, filtered by type.

GetChildren

Gets the list of children, filtered by type.

AddComment

Creates a new child Comment.

Activate

Activate the current object.

CopyTo

Copies all visible properties from this object to another.

Duplicate

Creates a copy of the current DataModelObject.

GroupAllSimilarChildren

Run the GroupAllSimilarChildren action.

GroupSimilarObjects

Run the GroupSimilarObjects action.

PropertyByName

Get a property by its unique name.

PropertyByAPIName

Get a property by its API name.

CreateParameter

Creates a new parameter for a Property.

GetParameter

Gets the parameter corresponding to the given property.

RemoveParameter

Removes the parameter from the parameter set corresponding to the given property.

InternalObject

Gets the internal object. For advanced usage only.

PartName

Gets the PartName.

X1

Gets or sets the X1.

X2

Gets or sets the X2.

Y1

Gets or sets the Y1.

Y2

Gets or sets the Y2.

Z1

Gets or sets the Z1.

Z2

Gets or sets the Z2.

CoordinateSystem

Gets or sets the CoordinateSystem.

DataModelObjectCategory

Gets the current DataModelObject’s category.

Children

Gets the list of children.

Comments

Gets the list of associated comments.

ReadOnly

Gets or sets the ReadOnly.

InternalObject

Gets the internal object. For advanced usage only.

Properties

Gets the list of properties for this object.

VisibleProperties

Gets the list of properties that are visible for this object.

Property detail#

property Solid.InternalObject: Ansys.Common.Interop.DSObjectsAuto.IDSSolidAuto | None

Gets the internal object. For advanced usage only.

property Solid.PartName: System.String | None

Gets the PartName.

property Solid.X1: Ansys.Core.Units.Quantity | None

Gets or sets the X1.

property Solid.X2: Ansys.Core.Units.Quantity | None

Gets or sets the X2.

property Solid.Y1: Ansys.Core.Units.Quantity | None

Gets or sets the Y1.

property Solid.Y2: Ansys.Core.Units.Quantity | None

Gets or sets the Y2.

property Solid.Z1: Ansys.Core.Units.Quantity | None

Gets or sets the Z1.

property Solid.Z2: Ansys.Core.Units.Quantity | None

Gets or sets the Z2.

property Solid.CoordinateSystem: Ansys.ACT.Automation.Mechanical.CoordinateSystem | None

Gets or sets the CoordinateSystem.

property Solid.DataModelObjectCategory: Ansys.Mechanical.DataModel.Enums.DataModelObjectCategory | None

Gets the current DataModelObject’s category.

property Solid.Children: System.Collections.Generic.IList[Ansys.Mechanical.DataModel.Interfaces.IDataModelObject] | None

Gets the list of children.

property Solid.Comments: System.Collections.Generic.IEnumerable[Ansys.ACT.Automation.Mechanical.Comment] | None

Gets the list of associated comments.

property Solid.ReadOnly: System.Boolean | None

Gets or sets the ReadOnly.

property Solid.InternalObject: System.Object | None

Gets the internal object. For advanced usage only.

property Solid.Properties: System.Collections.Generic.IReadOnlyList[Ansys.ACT.Automation.Mechanical.Property] | None

Gets the list of properties for this object.

property Solid.VisibleProperties: System.Collections.Generic.IReadOnlyList[Ansys.ACT.Automation.Mechanical.Property] | None

Gets the list of properties that are visible for this object.

Method detail#

Solid.AddGeometry() System.Void

Add solid to the geometry.

Solid.UpdateGeometry() System.Void

Update the solid on the geometry.

Solid.RemoveGeometry() System.Void

Remove the solid from the geometry.

Solid.Delete() System.Void

Run the Delete action.

Solid.GetChildren(recurses: System.Boolean, children: System.Collections.Generic.IList[ChildrenType]) System.Collections.Generic.IList[ChildrenType]

Gets the list of children, filtered by type.

Solid.GetChildren(category: Ansys.Mechanical.DataModel.Enums.DataModelObjectCategory, recurses: System.Boolean, children: System.Collections.Generic.IList[Ansys.Mechanical.DataModel.Interfaces.IDataModelObject]) System.Collections.Generic.IList[Ansys.Mechanical.DataModel.Interfaces.IDataModelObject]

Gets the list of children, filtered by type.

Solid.AddComment() Ansys.ACT.Automation.Mechanical.Comment

Creates a new child Comment.

Solid.Activate() System.Void

Activate the current object.

Solid.CopyTo(other: Ansys.ACT.Automation.Mechanical.DataModelObject) System.Void

Copies all visible properties from this object to another.

Solid.Duplicate() Ansys.Mechanical.DataModel.Interfaces.IDataModelObject

Creates a copy of the current DataModelObject.

Solid.GroupAllSimilarChildren() System.Void

Run the GroupAllSimilarChildren action.

Solid.GroupSimilarObjects() Ansys.ACT.Automation.Mechanical.TreeGroupingFolder

Run the GroupSimilarObjects action.

Solid.PropertyByName(name: System.String) Ansys.ACT.Automation.Mechanical.Property

Get a property by its unique name.

Solid.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.
Solid.CreateParameter(propName: System.String) Ansys.ACT.Interfaces.Mechanical.IParameter

Creates a new parameter for a Property.

Solid.GetParameter(propName: System.String) Ansys.ACT.Interfaces.Mechanical.IParameter

Gets the parameter corresponding to the given property.

Solid.RemoveParameter(propName: System.String) System.Void

Removes the parameter from the parameter set corresponding to the given property.