Geometry#
- class ansys.mechanical.stubs.v242.Ansys.ACT.Automation.Mechanical.Geometry#
 Bases:
objectDefines a Geometry.
Overview#
Activate the current object.  | 
|
Creates a new child Comment.  | 
|
Creates a new DistributedMass  | 
|
Creates a new ElementOrientation  | 
|
Creates a new child Figure.  | 
|
Creates a new child Image.  | 
|
Creates a new Imported Element Orientation (External Data).  | 
|
Creates a new Imported Thickness (External Data).  | 
|
Creates a new child LayeredSection.  | 
|
Creates a new PointMass  | 
|
Creates a new SurfaceCoating  | 
|
Creates a new ThermalPointMass  | 
|
Creates a new child Thickness.  | 
|
CenterOfMass method.  | 
|
Copies all visible properties from this object to another.  | 
|
Creates a new parameter for a Property.  | 
|
Creates a copy of the current DataModelObject.  | 
|
Run the FreezeMeshOnAllParts action.  | 
|
Gets the Body associated with the given IGeoBody  | 
|
Gets the list of children, filtered by type.  | 
|
Gets the parameter corresponding to the given property.  | 
|
Gets the Part associated with the given IGeoPart  | 
|
Run the GroupAllSimilarChildren action.  | 
|
Run the GroupSimilarObjects action.  | 
|
Invert all parts Suppressed property.  | 
|
Get a property by its API name.  | 
|
Get a property by its unique name.  | 
|
Removes the parameter from the parameter set corresponding to the given property.  | 
|
Run the ResetBodyColors action.  | 
|
Run the UnfreezeMeshOnAllParts action.  | 
|
Unsuppress all the bodies that were suppressed.  | 
|
Run the UpdateGeometryFromSource action.  | 
Gets the ActiveBodies.  | 
|
Gets the AnalysisType.  | 
|
Gets or sets the AssignMaterialOnUpdate.  | 
|
Gets or sets the AttachFileViaTempFile.  | 
|
Gets the AttributeKey.  | 
|
Gets the Attributes.  | 
|
Gets the Average.  | 
|
Gets the Bodies.  | 
|
Gets the CanChangeCADUnits.  | 
|
Gets the list of children.  | 
|
Gets the list of associated comments.  | 
|
Gets the ComparePartsOnUpdate.  | 
|
Gets the ComparePartsTolerance.  | 
|
Gets the current DataModelObject's category.  | 
|
Gets the DecomposeDisjointGeometry.  | 
|
Gets or sets the DisplayStyle.  | 
|
Gets or sets the ElementControl.  | 
|
Gets the Elements.  | 
|
Gets the EnclosureAndSymmetryProcessing.  | 
|
Gets or sets the EndPlaneRotationAboutX.  | 
|
Gets or sets the EndPlaneRotationAboutY.  | 
|
Gets or sets the FiberLength.  | 
|
Gets the list of associated figures.  | 
|
Gets the GeometryPreferencesReadOnly.  | 
|
Gets the list of associated images.  | 
|
Gets the ImportCoordinateSystems.  | 
|
Gets the internal object. For advanced usage only.  | 
|
Gets or sets the LengthUnit.  | 
|
Gets the LengthX.  | 
|
Gets the LengthY.  | 
|
Gets the LengthZ.  | 
|
Gets the LineBodies.  | 
|
Gets the Mass.  | 
|
Gets the MaterialProperties.  | 
|
Gets the Maximum.  | 
|
Gets the MeshMetric.  | 
|
Gets the MeshVolume.  | 
|
Gets the Minimum.  | 
|
Gets the MixedImportResolution.  | 
|
Gets or sets the Model2DBehavior.  | 
|
Gets the NamedSelectionKey.  | 
|
Gets the NamedSelections.  | 
|
Gets the Nodes.  | 
|
Gets the ParameterKey.  | 
|
Gets the Parameters.  | 
|
Gets the list of properties for this object.  | 
|
Gets or sets the ReaderModeSavesUpdatedFile.  | 
|
Gets or sets the ScaleFactorValue.  | 
|
Gets the SheetSurfaceArea.  | 
|
Gets the SmartCADUpdate.  | 
|
Gets the SolidBodies.  | 
|
Gets the Source.  | 
|
Gets the StandardDeviation.  | 
|
Gets the SurfaceArea.  | 
|
Gets the SurfaceBodies.  | 
|
Gets or sets the TemporaryDirectory.  | 
|
Gets or sets the Tolerance2D.  | 
|
Gets the Type.  | 
|
Gets the UseAssociativity.  | 
|
Gets the UseInstances.  | 
|
Gets the list of properties that are visible for this object.  | 
|
Gets the Volume.  | 
|
Gets the XCentroid.  | 
|
Gets the YCentroid.  | 
|
Gets the ZCentroid.  | 
Property detail#
- property Geometry.AnalysisType: Ansys.Mechanical.DataModel.Enums.GeometryDimensionType | None#
 Gets the AnalysisType.
- property Geometry.Children: List[Ansys.Mechanical.DataModel.Interfaces.IDataModelObject] | None#
 Gets the list of children.
- 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.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.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.Images: Iterable[Ansys.ACT.Automation.Mechanical.Image] | None#
 Gets the list of associated images.
- 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.Mass: Ansys.Core.Units.Quantity | None#
 Gets the Mass.
- 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.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.Parameters: Ansys.Mechanical.DataModel.Enums.ImportParameterType | None#
 Gets the Parameters.
- 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.SheetSurfaceArea: Ansys.Core.Units.Quantity | None#
 Gets the SheetSurfaceArea.
- property Geometry.SurfaceArea: Ansys.Core.Units.Quantity | None#
 Gets the SurfaceArea.
- 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.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.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.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.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.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.
- Geometry.PropertyByName(name: str) Ansys.ACT.Automation.Mechanical.Property#
 Get a property by its unique name.