Geometry#

class ansys.mechanical.stubs.v261.Ansys.ACT.Automation.Mechanical.Geometry(internalObject: Any)#

Bases: object

Defines a Geometry.

Overview#

Activate

Activate the current object.

AddComment

Creates a new child Comment.

AddDistributedMass

Creates a new DistributedMass

AddElementOrientation

Creates a new ElementOrientation

AddFigure

Creates a new child Figure.

AddImage

Creates a new child Image.

AddImportedElementOrientationExternalData

Creates a new Imported Element Orientation (External Data).

AddImportedThicknessExternalData

Creates a new Imported Thickness (External Data).

AddLayeredSection

Creates a new child LayeredSection.

AddPointMass

Creates a new PointMass

AddSurfaceCoating

Creates a new SurfaceCoating

AddThermalPointMass

Creates a new ThermalPointMass

AddThickness

Creates a new child Thickness.

CenterOfMass

CenterOfMass method.

CopyTo

Copies all visible properties from this object to another.

CreateObjRef

CreateObjRef method.

CreateParameter

Creates a new parameter for a Property.

Duplicate

Creates a copy of the current DataModelObject.

Equals

Equals method.

Export

Export method.

ExportParts

ExportParts method.

ExportToSTL

ExportToSTL method.

FreezeMeshOnAllParts

Run the FreezeMeshOnAllParts action.

GetAPIName

Property name bound to dispId.

GetAllProperties

GetAllProperties method.

GetBodies

GetBodies method.

GetBody

Gets the Body associated with the given IGeoBody

GetChildren

Gets the list of children, filtered by type.

GetDetailsView

GetDetailsView method.

GetEnumName

Enum name bound to value

GetHashCode

GetHashCode method.

GetIconFile

GetIconFile method.

GetLifetimeService

GetLifetimeService method.

GetObjectData

GetObjectData method.

GetParameter

Gets the parameter corresponding to the given property.

GetPart

Gets the Part associated with the given IGeoPart

GetPath

GetPath method.

GetPropertyName

GetPropertyName method.

GetPropertyValue

GetPropertyValue method.

GetSelectedPrototypes

GetSelectedPrototypes method.

GetType

GetType method.

GetVisibleProperties

GetVisibleProperties method.

GetVisiblePropertyNames

GetVisiblePropertyNames method.

GroupAllSimilarChildren

Run the GroupAllSimilarChildren action.

GroupSimilarObjects

Run the GroupSimilarObjects action.

InitializeLifetimeService

InitializeLifetimeService method.

InvertSuppressedBodySet

Invert all parts Suppressed property.

IsPropertyEditable

IsPropertyEditable method.

IsPropertyVisible

IsPropertyVisible method.

PropertyByAPIName

Get a property by its API name.

PropertyById

PropertyById method.

PropertyByName

Get a property by its unique name.

RemoveParameter

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

ResetBodyColors

Run the ResetBodyColors action.

ToString

ToString method.

UnfreezeMeshOnAllParts

Run the UnfreezeMeshOnAllParts action.

UnsuppressAllBodies

Unsuppress all the bodies that were suppressed.

UpdateGeometryFromSource

Run the UpdateGeometryFromSource action.

ActiveBodies

Gets the ActiveBodies.

AnalysisType

Gets the AnalysisType.

AssignMaterialOnUpdate

Gets or sets the AssignMaterialOnUpdate.

AttachFileViaTempFile

Gets or sets the AttachFileViaTempFile.

AttachedRefs

AttachedRefs property.

AttributeKey

Gets the AttributeKey.

Attributes

Gets the Attributes.

Average

Gets the Average.

Bodies

Gets the Bodies.

CanChangeCADUnits

Gets the CanChangeCADUnits.

Children

Gets the list of children.

ClsId

ClsId property.

Comments

Gets the list of associated comments.

ComparePartsOnUpdate

Gets the ComparePartsOnUpdate.

ComparePartsTolerance

Gets the ComparePartsTolerance.

DataModelObjectCategory

Gets the current DataModelObject's category.

DecomposeDisjointGeometry

Gets the DecomposeDisjointGeometry.

DisplayStyle

Gets or sets the DisplayStyle.

ElementControl

Gets or sets the ElementControl.

Elements

Gets the Elements.

EnclosureAndSymmetryProcessing

Gets the EnclosureAndSymmetryProcessing.

EndPlaneRotationAboutX

Gets or sets the EndPlaneRotationAboutX.

EndPlaneRotationAboutY

Gets or sets the EndPlaneRotationAboutY.

FiberLength

Gets or sets the FiberLength.

Figures

Gets the list of associated figures.

GeometryPreferencesReadOnly

Gets the GeometryPreferencesReadOnly.

GroupingFolder

GroupingFolder property.

IconName

IconName property.

Images

Gets the list of associated images.

ImportCoordinateSystems

Gets the ImportCoordinateSystems.

InternalObject

Gets the internal object. For advanced usage only.

LengthUnit

Gets or sets the LengthUnit.

LengthX

Gets the LengthX.

LengthY

Gets the LengthY.

LengthZ

Gets the LengthZ.

LineBodies

Gets the LineBodies.

Mass

Gets the Mass.

MaterialProperties

Gets the MaterialProperties.

Maximum

Gets the Maximum.

MeshMetric

Gets the MeshMetric.

MeshVolume

Gets the MeshVolume.

Minimum

Gets the Minimum.

MixedImportResolution

Gets the MixedImportResolution.

Model2DBehavior

Gets or sets the Model2DBehavior.

Name

Name property.

NamedSelectionKey

Gets the NamedSelectionKey.

NamedSelections

Gets the NamedSelections.

Nodes

Gets the Nodes.

ObjectId

ObjectId property.

ObjectState

ObjectState property.

ObjectTags

ObjectTags property.

ParameterKey

Gets the ParameterKey.

Parameters

Gets the Parameters.

Parent

Parent property.

Properties

Gets the list of properties for this object.

ReaderModeSavesUpdatedFile

Gets or sets the ReaderModeSavesUpdatedFile.

ScaleFactorValue

Gets or sets the ScaleFactorValue.

SheetSurfaceArea

Gets the SheetSurfaceArea.

SmartCADUpdate

Gets the SmartCADUpdate.

SolidBodies

Gets the SolidBodies.

Source

Gets the Source.

StandardDeviation

Gets the StandardDeviation.

State

State property.

SurfaceArea

Gets the SurfaceArea.

SurfaceBodies

Gets the SurfaceBodies.

TemporaryDirectory

Gets or sets the TemporaryDirectory.

TessellationData

TessellationData property.

Tolerance2D

Gets or sets the Tolerance2D.

Type

Gets the Type.

UseAssociativity

Gets the UseAssociativity.

UseInstances

Gets the UseInstances.

VisibleProperties

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

Volume

Gets the Volume.

XCentroid

Gets the XCentroid.

YCentroid

Gets the YCentroid.

ZCentroid

Gets the ZCentroid.

Property detail#

property Geometry.ActiveBodies: int | None#

Gets the ActiveBodies.

property Geometry.AnalysisType: Ansys.Mechanical.DataModel.Enums.GeometryDimensionType | None#

Gets the AnalysisType.

property Geometry.AssignMaterialOnUpdate: bool | None#

Gets or sets the AssignMaterialOnUpdate.

property Geometry.AttachFileViaTempFile: bool | None#

Gets or sets the AttachFileViaTempFile.

property Geometry.AttachedRefs: List[int] | None#

AttachedRefs property.

property Geometry.AttributeKey: str | None#

Gets the AttributeKey.

property Geometry.Attributes: bool | None#

Gets the Attributes.

property Geometry.Average: float | None#

Gets the Average.

property Geometry.Bodies: int | None#

Gets the Bodies.

property Geometry.CanChangeCADUnits: bool | None#

Gets the CanChangeCADUnits.

property Geometry.Children: List[Ansys.Mechanical.DataModel.Interfaces.IDataModelObject] | None#

Gets the list of children.

property Geometry.ClsId: int | None#

ClsId property.

property Geometry.Comments: Iterable[Ansys.ACT.Automation.Mechanical.Comment] | None#

Gets the list of associated comments.

property Geometry.ComparePartsOnUpdate: Ansys.Mechanical.DataModel.Enums.ComparePartsOnUpdateType | None#

Gets the ComparePartsOnUpdate.

property Geometry.ComparePartsTolerance: Ansys.Mechanical.DataModel.Enums.ComparePartsToleranceType | None#

Gets the ComparePartsTolerance.

property Geometry.DataModelObjectCategory: Ansys.Mechanical.DataModel.Enums.DataModelObjectCategory | None#

Gets the current DataModelObject's category.

property Geometry.DecomposeDisjointGeometry: bool | None#

Gets the DecomposeDisjointGeometry.

property Geometry.DisplayStyle: Ansys.Mechanical.DataModel.Enums.PrototypeDisplayStyleType | None#

Gets or sets the DisplayStyle.

property Geometry.ElementControl: Ansys.Mechanical.DataModel.Enums.ElementControl | None#

Gets or sets the ElementControl.

property Geometry.Elements: int | None#

Gets the Elements.

property Geometry.EnclosureAndSymmetryProcessing: bool | None#

Gets the EnclosureAndSymmetryProcessing.

property Geometry.EndPlaneRotationAboutX: Ansys.Core.Units.Quantity | None#

Gets or sets the EndPlaneRotationAboutX.

property Geometry.EndPlaneRotationAboutY: Ansys.Core.Units.Quantity | None#

Gets or sets the EndPlaneRotationAboutY.

property Geometry.FiberLength: Ansys.Core.Units.Quantity | None#

Gets or sets the FiberLength.

property Geometry.Figures: Iterable[Ansys.ACT.Automation.Mechanical.Figure] | None#

Gets the list of associated figures.

property Geometry.GeometryPreferencesReadOnly: bool | None#

Gets the GeometryPreferencesReadOnly.

property Geometry.GroupingFolder: Ansys.Mechanical.DataModel.Interfaces.IDataModelObject | None#

GroupingFolder property.

property Geometry.IconName: str | None#

IconName property.

property Geometry.Images: Iterable[Ansys.ACT.Automation.Mechanical.Image] | None#

Gets the list of associated images.

property Geometry.ImportCoordinateSystems: bool | None#

Gets the ImportCoordinateSystems.

property Geometry.InternalObject: Ansys.Common.Interop.DSObjectsAuto.IDSPrototypeGroupAuto | None#

Gets the internal object. For advanced usage only.

property Geometry.LengthUnit: Ansys.Mechanical.DataModel.Enums.WBUnitSystemType | None#

Gets or sets the LengthUnit.

property Geometry.LengthX: Ansys.Core.Units.Quantity | None#

Gets the LengthX.

property Geometry.LengthY: Ansys.Core.Units.Quantity | None#

Gets the LengthY.

property Geometry.LengthZ: Ansys.Core.Units.Quantity | None#

Gets the LengthZ.

property Geometry.LineBodies: bool | None#

Gets the LineBodies.

property Geometry.Mass: Ansys.Core.Units.Quantity | None#

Gets the Mass.

property Geometry.MaterialProperties: bool | None#

Gets the MaterialProperties.

property Geometry.Maximum: float | None#

Gets the Maximum.

property Geometry.MeshMetric: Ansys.Mechanical.DataModel.Enums.MeshMetricType | None#

Gets the MeshMetric.

property Geometry.MeshVolume: Ansys.Core.Units.Quantity | None#

Gets the MeshVolume.

property Geometry.Minimum: float | None#

Gets the Minimum.

property Geometry.MixedImportResolution: Ansys.Mechanical.DataModel.Enums.SecondaryImportPrefType | None#

Gets the MixedImportResolution.

property Geometry.Model2DBehavior: Ansys.Mechanical.DataModel.Enums.Model2DBehavior | None#

Gets or sets the Model2DBehavior.

property Geometry.Name: str | None#

Name property.

property Geometry.NamedSelectionKey: str | None#

Gets the NamedSelectionKey.

property Geometry.NamedSelections: bool | None#

Gets the NamedSelections.

property Geometry.Nodes: int | None#

Gets the Nodes.

property Geometry.ObjectId: int | None#

ObjectId property.

property Geometry.ObjectState: Ansys.Mechanical.DataModel.Enums.ObjectState | None#

ObjectState property.

property Geometry.ObjectTags: Iterable[Ansys.Mechanical.DataModel.Interfaces.IObjectTag] | None#

ObjectTags property.

property Geometry.ParameterKey: str | None#

Gets the ParameterKey.

property Geometry.Parameters: Ansys.Mechanical.DataModel.Enums.ImportParameterType | None#

Gets the Parameters.

property Geometry.Parent: Ansys.Mechanical.DataModel.Interfaces.IDataModelObject | None#

Parent property.

property Geometry.Properties: tuple[Ansys.ACT.Automation.Mechanical.Property] | None#

Gets the list of properties for this object.

property Geometry.ReaderModeSavesUpdatedFile: bool | None#

Gets or sets the ReaderModeSavesUpdatedFile.

property Geometry.ScaleFactorValue: float | None#

Gets or sets the ScaleFactorValue.

property Geometry.SheetSurfaceArea: Ansys.Core.Units.Quantity | None#

Gets the SheetSurfaceArea.

property Geometry.SmartCADUpdate: bool | None#

Gets the SmartCADUpdate.

property Geometry.SolidBodies: bool | None#

Gets the SolidBodies.

property Geometry.Source: str | None#

Gets the Source.

property Geometry.StandardDeviation: float | None#

Gets the StandardDeviation.

property Geometry.State: Ansys.Mechanical.DataModel.Enums.Legacy.State | None#

State property.

property Geometry.SurfaceArea: Ansys.Core.Units.Quantity | None#

Gets the SurfaceArea.

property Geometry.SurfaceBodies: bool | None#

Gets the SurfaceBodies.

property Geometry.TemporaryDirectory: str | None#

Gets or sets the TemporaryDirectory.

property Geometry.TessellationData: Ansys.ACT.Automation.Mechanical.Tessellation | None#

TessellationData property.

property Geometry.Tolerance2D: float | None#

Gets or sets the Tolerance2D.

property Geometry.Type: str | None#

Gets the Type.

property Geometry.UseAssociativity: bool | None#

Gets the UseAssociativity.

property Geometry.UseInstances: bool | None#

Gets the UseInstances.

property Geometry.VisibleProperties: tuple[Ansys.ACT.Automation.Mechanical.Property] | None#

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

property Geometry.Volume: Ansys.Core.Units.Quantity | None#

Gets the Volume.

property Geometry.XCentroid: Ansys.Core.Units.Quantity | None#

Gets the XCentroid.

property Geometry.YCentroid: Ansys.Core.Units.Quantity | None#

Gets the YCentroid.

property Geometry.ZCentroid: Ansys.Core.Units.Quantity | None#

Gets the ZCentroid.

Method detail#

Geometry.Activate() None#

Activate the current object.

Geometry.AddComment() Ansys.ACT.Automation.Mechanical.Comment#

Creates a new child Comment.

Geometry.AddDistributedMass() Ansys.ACT.Automation.Mechanical.DistributedMass#

Creates a new DistributedMass

Geometry.AddElementOrientation() Ansys.ACT.Automation.Mechanical.ElementOrientation#

Creates a new ElementOrientation

Geometry.AddFigure() Ansys.ACT.Automation.Mechanical.Figure#

Creates a new child Figure.

Geometry.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.
Geometry.AddImportedElementOrientationExternalData() Ansys.ACT.Automation.Mechanical.ImportedLoads.ImportedElementOrientationGroup#

Creates a new Imported Element Orientation (External Data).

Geometry.AddImportedThicknessExternalData() Ansys.ACT.Automation.Mechanical.ImportedLoads.ImportedThicknessGroup#

Creates a new Imported Thickness (External Data).

Geometry.AddLayeredSection() Ansys.ACT.Automation.Mechanical.LayeredSection#

Creates a new child LayeredSection.

Geometry.AddPointMass() Ansys.ACT.Automation.Mechanical.PointMass#

Creates a new PointMass

Geometry.AddSurfaceCoating() Ansys.ACT.Automation.Mechanical.SurfaceCoating#

Creates a new SurfaceCoating

Geometry.AddThermalPointMass() Ansys.ACT.Automation.Mechanical.ThermalPointMass#

Creates a new ThermalPointMass

Geometry.AddThickness() Ansys.ACT.Automation.Mechanical.Thickness#

Creates a new child Thickness.

Geometry.CenterOfMass(geoBodies: List[Ansys.ACT.Interfaces.Geometry.IBaseGeoBody], pointMasses: List[Ansys.ACT.Automation.Mechanical.PointMass], distributedMasses: List[Ansys.ACT.Automation.Mechanical.DistributedMass]) Ansys.Core.Units.Quantity#

CenterOfMass method.

Geometry.CopyTo(other: Ansys.ACT.Automation.Mechanical.DataModelObject) None#

Copies all visible properties from this object to another.

Geometry.CreateObjRef(requestedType: type) System.Runtime.Remoting.ObjRef#

CreateObjRef method.

Geometry.CreateParameter(paramPath: str) Ansys.ACT.Interfaces.Mechanical.IParameter#

Creates a new parameter for a Property.

Geometry.Duplicate() Ansys.Mechanical.DataModel.Interfaces.IDataModelObject#

Creates a copy of the current DataModelObject.

Geometry.Equals(other: Ansys.Mechanical.DataModel.Interfaces.IDataModelObject) bool#

Equals method.

Geometry.Export(filePath: str) None#

Export method.

Geometry.ExportParts(filePath: str, partIds: List[int]) None#

ExportParts method.

Geometry.ExportToSTL(filePath: str) None#

ExportToSTL method.

Geometry.FreezeMeshOnAllParts() None#

Run the FreezeMeshOnAllParts action.

Geometry.GetAPIName(dispId: int) str#

Property name bound to dispId.

Geometry.GetAllProperties() List[Ansys.ACT.Automation.Mechanical.AutomationPropertyWrapper]#

GetAllProperties method.

Geometry.GetBodies() List[Ansys.ACT.Automation.Mechanical.Body]#

GetBodies method.

Geometry.GetBody(geoBody: Ansys.ACT.Interfaces.Geometry.IBaseGeoBody) Ansys.ACT.Automation.Mechanical.Body#

Gets the Body associated with the given IGeoBody

Geometry.GetChildren(recurses: bool, children: List[ChildrenType]) List[ChildrenType]#

Gets the list of children, filtered by type.

Geometry.GetDetailsView() Ansys.ACT.Automation.Mechanical.DetailsViewData#

GetDetailsView method.

Geometry.GetEnumName(enumType: type, value: int, dispId: int) str#

Enum name bound to value

Geometry.GetHashCode() int#

GetHashCode method.

Geometry.GetIconFile() System.Byte#

GetIconFile method.

Geometry.GetLifetimeService() Any#

GetLifetimeService method.

Geometry.GetObjectData(info: System.Runtime.Serialization.SerializationInfo, context: System.Runtime.Serialization.StreamingContext) None#

GetObjectData method.

Geometry.GetParameter(propName: str) Ansys.ACT.Interfaces.Mechanical.IParameter#

Gets the parameter corresponding to the given property.

Geometry.GetPart(geoPart: Ansys.ACT.Interfaces.Geometry.IBaseGeoPart) Ansys.ACT.Automation.Mechanical.Part#

Gets the Part associated with the given IGeoPart

Geometry.GetPath() str#

GetPath method.

Geometry.GetPropertyName(dispId: int) str#

GetPropertyName method.

Geometry.GetPropertyValue(name: str) Any#

GetPropertyValue method.

Geometry.GetSelectedPrototypes() List[Ansys.ACT.Automation.Mechanical.Body]#

GetSelectedPrototypes method.

Geometry.GetType() type#

GetType method.

Geometry.GetVisibleProperties() List[System.Reflection.PropertyInfo]#

GetVisibleProperties method.

Geometry.GetVisiblePropertyNames() List[str]#

GetVisiblePropertyNames method.

Geometry.GroupAllSimilarChildren() None#

Run the GroupAllSimilarChildren action.

Geometry.GroupSimilarObjects() Ansys.ACT.Automation.Mechanical.TreeGroupingFolder#

Run the GroupSimilarObjects action.

Geometry.InitializeLifetimeService() Any#

InitializeLifetimeService method.

Geometry.InvertSuppressedBodySet() None#

Invert all parts Suppressed property.

Geometry.IsPropertyEditable(dispId: int) bool#

IsPropertyEditable method.

Geometry.IsPropertyVisible(dispId: int) bool#

IsPropertyVisible method.

Geometry.PropertyByAPIName(name: str) 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.
Geometry.PropertyById(dispId: int) Ansys.ACT.Automation.Mechanical.Property#

PropertyById method.

Geometry.PropertyByName(name: str) Ansys.ACT.Automation.Mechanical.Property#

Get a property by its unique name.

Geometry.RemoveParameter(paramPath: str) None#

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

Geometry.ResetBodyColors() None#

Run the ResetBodyColors action.

Geometry.ToString() str#

ToString method.

Geometry.UnfreezeMeshOnAllParts() None#

Run the UnfreezeMeshOnAllParts action.

Geometry.UnsuppressAllBodies() None#

Unsuppress all the bodies that were suppressed.

Geometry.UpdateGeometryFromSource() None#

Run the UpdateGeometryFromSource action.