Geometry#

class ansys.mechanical.stubs.v241.Ansys.ACT.Automation.Mechanical.Geometry#

Bases: object

Defines a Geometry.

Overview#

AddThickness

Creates a new child Thickness.

AddImportedThicknessExternalData

Creates a new Imported Thickness (External Data).

AddImportedElementOrientationExternalData

Creates a new Imported Element Orientation (External Data).

AddLayeredSection

Creates a new child LayeredSection.

GetBody

Gets the Body associated with the given IGeoBody

GetPart

Gets the Part associated with the given IGeoPart

FreezeMeshOnAllParts

Run the FreezeMeshOnAllParts action.

UnfreezeMeshOnAllParts

Run the UnfreezeMeshOnAllParts action.

UnsuppressAllBodies

Unsuppress all the bodies that were suppressed.

InvertSuppressedBodySet

Invert all parts Suppressed property.

CreateParameter

Creates a new parameter for a Property.

RemoveParameter

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

CenterOfMass

CenterOfMass method.

AddDistributedMass

Creates a new DistributedMass

AddElementOrientation

Creates a new ElementOrientation

AddPointMass

Creates a new PointMass

AddSurfaceCoating

Creates a new SurfaceCoating

AddThermalPointMass

Creates a new ThermalPointMass

ResetBodyColors

Run the ResetBodyColors action.

UpdateGeometryFromSource

Run the UpdateGeometryFromSource 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.

AddFigure

Creates a new child Figure.

AddImage

Creates a new child Image.

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.

GetParameter

Gets the parameter corresponding to the given property.

InternalObject

Gets the internal object. For advanced usage only.

TemporaryDirectory

Gets or sets the TemporaryDirectory.

AttributeKey

Gets the AttributeKey.

Source

Gets the Source.

NamedSelectionKey

Gets the NamedSelectionKey.

Type

Gets the Type.

Elements

Gets the Elements.

Average

Gets the Average.

Maximum

Gets the Maximum.

Minimum

Gets the Minimum.

StandardDeviation

Gets the StandardDeviation.

Nodes

Gets the Nodes.

ActiveBodies

Gets the ActiveBodies.

Bodies

Gets the Bodies.

ParameterKey

Gets the ParameterKey.

ScaleFactorValue

Gets or sets the ScaleFactorValue.

Tolerance2D

Gets or sets the Tolerance2D.

LengthX

Gets the LengthX.

LengthY

Gets the LengthY.

LengthZ

Gets the LengthZ.

FiberLength

Gets or sets the FiberLength.

Mass

Gets the Mass.

MeshVolume

Gets the MeshVolume.

EndPlaneRotationAboutX

Gets or sets the EndPlaneRotationAboutX.

EndPlaneRotationAboutY

Gets or sets the EndPlaneRotationAboutY.

SheetSurfaceArea

Gets the SheetSurfaceArea.

SurfaceArea

Gets the SurfaceArea.

Volume

Gets the Volume.

XCentroid

Gets the XCentroid.

YCentroid

Gets the YCentroid.

ZCentroid

Gets the ZCentroid.

AnalysisType

Gets the AnalysisType.

LengthUnit

Gets or sets the LengthUnit.

ComparePartsOnUpdate

Gets the ComparePartsOnUpdate.

ComparePartsTolerance

Gets the ComparePartsTolerance.

DisplayStyle

Gets or sets the DisplayStyle.

ElementControl

Gets or sets the ElementControl.

MeshMetric

Gets the MeshMetric.

Model2DBehavior

Gets or sets the Model2DBehavior.

MixedImportResolution

Gets the MixedImportResolution.

Parameters

Gets the Parameters.

AssignMaterialOnUpdate

Gets or sets the AssignMaterialOnUpdate.

AttachFileViaTempFile

Gets or sets the AttachFileViaTempFile.

CanChangeCADUnits

Gets the CanChangeCADUnits.

DecomposeDisjointGeometry

Gets the DecomposeDisjointGeometry.

SmartCADUpdate

Gets the SmartCADUpdate.

GeometryPreferencesReadOnly

Gets the GeometryPreferencesReadOnly.

ImportCoordinateSystems

Gets the ImportCoordinateSystems.

EnclosureAndSymmetryProcessing

Gets the EnclosureAndSymmetryProcessing.

SurfaceBodies

Gets the SurfaceBodies.

SolidBodies

Gets the SolidBodies.

LineBodies

Gets the LineBodies.

MaterialProperties

Gets the MaterialProperties.

ReaderModeSavesUpdatedFile

Gets or sets the ReaderModeSavesUpdatedFile.

UseAssociativity

Gets the UseAssociativity.

Attributes

Gets the Attributes.

NamedSelections

Gets the NamedSelections.

UseInstances

Gets the UseInstances.

DataModelObjectCategory

Gets the current DataModelObject’s category.

Children

Gets the list of children.

Comments

Gets the list of associated comments.

Figures

Gets the list of associated figures.

Images

Gets the list of associated images.

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 Geometry.InternalObject: Ansys.Common.Interop.DSObjectsAuto.IDSPrototypeGroupAuto | None

Gets the internal object. For advanced usage only.

property Geometry.TemporaryDirectory: System.String | None

Gets or sets the TemporaryDirectory.

property Geometry.AttributeKey: System.String | None

Gets the AttributeKey.

property Geometry.Source: System.String | None

Gets the Source.

property Geometry.NamedSelectionKey: System.String | None

Gets the NamedSelectionKey.

property Geometry.Type: System.String | None

Gets the Type.

property Geometry.Elements: System.Int32 | None

Gets the Elements.

property Geometry.Average: System.Double | None

Gets the Average.

property Geometry.Maximum: System.Double | None

Gets the Maximum.

property Geometry.Minimum: System.Double | None

Gets the Minimum.

property Geometry.StandardDeviation: System.Double | None

Gets the StandardDeviation.

property Geometry.Nodes: System.Int32 | None

Gets the Nodes.

property Geometry.ActiveBodies: System.Int32 | None

Gets the ActiveBodies.

property Geometry.Bodies: System.Int32 | None

Gets the Bodies.

property Geometry.ParameterKey: System.String | None

Gets the ParameterKey.

property Geometry.ScaleFactorValue: System.Double | None

Gets or sets the ScaleFactorValue.

property Geometry.Tolerance2D: System.Double | None

Gets or sets the Tolerance2D.

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.FiberLength: Ansys.Core.Units.Quantity | None

Gets or sets the FiberLength.

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

Gets the Mass.

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

Gets the MeshVolume.

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.SheetSurfaceArea: Ansys.Core.Units.Quantity | None

Gets the SheetSurfaceArea.

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

Gets the SurfaceArea.

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.

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

Gets the AnalysisType.

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

Gets or sets the LengthUnit.

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.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.MeshMetric: Ansys.Mechanical.DataModel.Enums.MeshMetricType | None

Gets the MeshMetric.

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

Gets or sets the Model2DBehavior.

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

Gets the MixedImportResolution.

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

Gets the Parameters.

property Geometry.AssignMaterialOnUpdate: System.Boolean | None

Gets or sets the AssignMaterialOnUpdate.

property Geometry.AttachFileViaTempFile: System.Boolean | None

Gets or sets the AttachFileViaTempFile.

property Geometry.CanChangeCADUnits: System.Boolean | None

Gets the CanChangeCADUnits.

property Geometry.DecomposeDisjointGeometry: System.Boolean | None

Gets the DecomposeDisjointGeometry.

property Geometry.SmartCADUpdate: System.Boolean | None

Gets the SmartCADUpdate.

property Geometry.GeometryPreferencesReadOnly: System.Boolean | None

Gets the GeometryPreferencesReadOnly.

property Geometry.ImportCoordinateSystems: System.Boolean | None

Gets the ImportCoordinateSystems.

property Geometry.EnclosureAndSymmetryProcessing: System.Boolean | None

Gets the EnclosureAndSymmetryProcessing.

property Geometry.SurfaceBodies: System.Boolean | None

Gets the SurfaceBodies.

property Geometry.SolidBodies: System.Boolean | None

Gets the SolidBodies.

property Geometry.LineBodies: System.Boolean | None

Gets the LineBodies.

property Geometry.MaterialProperties: System.Boolean | None

Gets the MaterialProperties.

property Geometry.ReaderModeSavesUpdatedFile: System.Boolean | None

Gets or sets the ReaderModeSavesUpdatedFile.

property Geometry.UseAssociativity: System.Boolean | None

Gets the UseAssociativity.

property Geometry.Attributes: System.Boolean | None

Gets the Attributes.

property Geometry.NamedSelections: System.Boolean | None

Gets the NamedSelections.

property Geometry.UseInstances: System.Boolean | None

Gets the UseInstances.

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

Gets the current DataModelObject’s category.

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

Gets the list of children.

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

Gets the list of associated comments.

property Geometry.Figures: System.Collections.Generic.IEnumerable[Ansys.ACT.Automation.Mechanical.Figure] | None

Gets the list of associated figures.

property Geometry.Images: System.Collections.Generic.IEnumerable[Ansys.ACT.Automation.Mechanical.Image] | None

Gets the list of associated images.

property Geometry.InternalObject: System.Object | None

Gets the internal object. For advanced usage only.

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

Gets the list of properties for this object.

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

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

Method detail#

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

Creates a new child Thickness.

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

Creates a new Imported Thickness (External Data).

Geometry.AddImportedElementOrientationExternalData() Ansys.ACT.Automation.Mechanical.ImportedLoads.ImportedElementOrientationGroup

Creates a new Imported Element Orientation (External Data).

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

Creates a new child LayeredSection.

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

Gets the Body associated with the given IGeoBody

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

Gets the Part associated with the given IGeoPart

Geometry.FreezeMeshOnAllParts() System.Void

Run the FreezeMeshOnAllParts action.

Geometry.UnfreezeMeshOnAllParts() System.Void

Run the UnfreezeMeshOnAllParts action.

Geometry.UnsuppressAllBodies() System.Void

Unsuppress all the bodies that were suppressed.

Geometry.InvertSuppressedBodySet() System.Void

Invert all parts Suppressed property.

Geometry.CreateParameter(paramPath: System.String) Ansys.ACT.Interfaces.Mechanical.IParameter

Creates a new parameter for a Property.

Geometry.RemoveParameter(paramPath: System.String) System.Void

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

Geometry.CenterOfMass(geoBodies: System.Collections.Generic.IList[Ansys.ACT.Interfaces.Geometry.IBaseGeoBody], pointMasses: System.Collections.Generic.IList[Ansys.ACT.Automation.Mechanical.PointMass], distributedMasses: System.Collections.Generic.IList[Ansys.ACT.Automation.Mechanical.DistributedMass]) Ansys.Core.Units.Quantity

CenterOfMass method.

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

Creates a new DistributedMass

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

Creates a new ElementOrientation

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.ResetBodyColors() System.Void

Run the ResetBodyColors action.

Geometry.UpdateGeometryFromSource() System.Void

Run the UpdateGeometryFromSource action.

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

Gets the list of children, filtered by type.

Geometry.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.

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

Creates a new child Comment.

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

Creates a new child Figure.

Geometry.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.
Geometry.Activate() System.Void

Activate the current object.

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

Copies all visible properties from this object to another.

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

Creates a copy of the current DataModelObject.

Geometry.GroupAllSimilarChildren() System.Void

Run the GroupAllSimilarChildren action.

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

Run the GroupSimilarObjects action.

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

Get a property by its unique name.

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

Gets the parameter corresponding to the given property.