GeometryImportPreferences#

class ansys.mechanical.stubs.v261.Ansys.ACT.Mechanical.Utilities.GeometryImportPreferences#

Bases: object

This is used to provide import and reload (refresh) preferences for geometry file import. These preferences are identical to those exposed in the WB2 project schematic and Mechanical Geometry preferences. More information can be found in the “Geometry Preferences” section of the “CAD Integration” documentation. Both general and advanced preferences are provided.

Default values will be taken from the Mechanical preferences. This allows user-specified default values to propagate to these preferences.

Overview#

GetScriptedPropertySetter

Get a string containing script-executable commands to set the properties on a

Equals

Equals method.

GetHashCode

GetHashCode method.

GetType

GetType method.

ToString

ToString method.

AnalysisType

Specify the analysis type to target during import.

AttributeKey

If ProcessAttributes is true, import only those attributes with this prefix.

CADAssociativity

Allow associativity.

Clean

Clean unwanted features when importing geometry.

ComparePartsOnUpdate

Enable mesh preservation on refresh for unmodified entities.

ComparePartsTolerance

Specifies the tolerance to use when comparing parts.

CoordinateSystemKey

If ProcessCoordinateSystems is true, import only those coordinate systems with this

DecomposeDisjointGeometry

Enable the decomposition of disjoint geometries for the following associative geometry

DoSmartUpdate

Speed up refreshes for models with unmodified components. Causes changes to other import

EnclosureSymmetryProcessing

Enable the processing of enclosure and symmetry named selections.

FacetQuality

Specifies what facet quality should be used for the import.

MixedImportResolution

Allows mixed-dimension parts to be imported as assembly components with parts of

NamedSelectionKey

If ProcessNamedSelections is true, import only those named selections with this

ParameterKey

If ProcessParameters is not None, this specifies the prefix or postfix filtering

ProcessAttributes

Import CAD system attributes.

ProcessCoordinateSystems

Import coordinate systems defined in the CAD source.

ProcessInstances

Honor part instance specifications.

ProcessLines

Import lines bodies.

ProcessMaterialProperties

Import primary material data defined in the CAD source.

ProcessNamedSelections

Import/create named selections.

ProcessParameters

Enum to specify how parameters should be processed.

ProcessSolids

Import solid bodies.

ProcessSurfaces

Import surface bodies.

ProcessWorkPoints

Import work points.

ReaderSaveFile

Save the part file of a model after the import.

StitchTolerance

If StitchType is User, specifies the tolerance to use for stitching detection.

StitchType

Specifies how surfaces should be stitched together.

Property detail#

property GeometryImportPreferences.AnalysisType: Ansys.Mechanical.DataModel.Enums.GeometryImportPreference.AnalysisType | None#

Specify the analysis type to target during import.

property GeometryImportPreferences.AttributeKey: str | None#

If ProcessAttributes is true, import only those attributes with this prefix. Multiple semicolon-delimited filters may be specified. An empty string matches everything.

property GeometryImportPreferences.CADAssociativity: bool | None#

Allow associativity.

property GeometryImportPreferences.Clean: bool | None#

Clean unwanted features when importing geometry.

property GeometryImportPreferences.ComparePartsOnUpdate: Ansys.Mechanical.DataModel.Enums.GeometryImportPreference.ComparePartsOnUpdate | None#

Enable mesh preservation on refresh for unmodified entities.

property GeometryImportPreferences.ComparePartsTolerance: Ansys.Mechanical.DataModel.Enums.GeometryImportPreference.ComparePartsTolerance | None#

Specifies the tolerance to use when comparing parts.

property GeometryImportPreferences.CoordinateSystemKey: str | None#

If ProcessCoordinateSystems is true, import only those coordinate systems with this prefix. Multiple semicolon-delimited filters may be specified. An empty string matches everything.

property GeometryImportPreferences.DecomposeDisjointGeometry: bool | None#

Enable the decomposition of disjoint geometries for the following associative geometry interfaces:

Creo Parametric (faces only)

Autodesk Inventor (bodies only)

property GeometryImportPreferences.DoSmartUpdate: bool | None#

Speed up refreshes for models with unmodified components. Causes changes to other import preferences to be ignored during refresh.

property GeometryImportPreferences.EnclosureSymmetryProcessing: bool | None#

Enable the processing of enclosure and symmetry named selections.

property GeometryImportPreferences.FacetQuality: Ansys.Mechanical.DataModel.Enums.GeometryImportPreference.FacetQuality | None#

Specifies what facet quality should be used for the import. The default value is Source meaning that the facets as represented in the CAD system or use a Normal option for those that do not have display. The others are relative settings compared to “normal” facet quality. Typically, better facet quality requires more memory and may take additional time to import/update.

property GeometryImportPreferences.MixedImportResolution: Ansys.Mechanical.DataModel.Enums.GeometryImportPreference.MixedImportResolution | None#

Allows mixed-dimension parts to be imported as assembly components with parts of different dimensions.

property GeometryImportPreferences.NamedSelectionKey: str | None#

If ProcessNamedSelections is true, import only those named selections with this prefix. Multiple semicolon-delimited filters may be specified.

property GeometryImportPreferences.ParameterKey: str | None#

If ProcessParameters is not None, this specifies the prefix or postfix filtering that will be used to identify enabled Workbench parameters. Multiple semicolon-delimited filters may be specified.

property GeometryImportPreferences.ProcessAttributes: bool | None#

Import CAD system attributes.

property GeometryImportPreferences.ProcessCoordinateSystems: bool | None#

Import coordinate systems defined in the CAD source.

property GeometryImportPreferences.ProcessInstances: bool | None#

Honor part instance specifications.

property GeometryImportPreferences.ProcessLines: bool | None#

Import lines bodies.

property GeometryImportPreferences.ProcessMaterialProperties: bool | None#

Import primary material data defined in the CAD source.

property GeometryImportPreferences.ProcessNamedSelections: bool | None#

Import/create named selections.

property GeometryImportPreferences.ProcessParameters: Ansys.Mechanical.DataModel.Enums.GeometryImportPreference.Parameters | None#

Enum to specify how parameters should be processed.

property GeometryImportPreferences.ProcessSolids: bool | None#

Import solid bodies.

property GeometryImportPreferences.ProcessSurfaces: bool | None#

Import surface bodies.

property GeometryImportPreferences.ProcessWorkPoints: bool | None#

Import work points.

property GeometryImportPreferences.ReaderSaveFile: bool | None#

Save the part file of a model after the import.

property GeometryImportPreferences.StitchTolerance: float | None#

If StitchType is User, specifies the tolerance to use for stitching detection.

property GeometryImportPreferences.StitchType: Ansys.Mechanical.DataModel.Enums.GeometryImportPreference.StitchSurfacesOnImport | None#

Specifies how surfaces should be stitched together.

Method detail#

GeometryImportPreferences.Equals(obj: Any) bool#

Equals method.

GeometryImportPreferences.GetHashCode() int#

GetHashCode method.

classmethod GeometryImportPreferences.GetScriptedPropertySetter(variableName: str, preferencesToChange: Ansys.ACT.Mechanical.Utilities.GeometryImportPreferences, preferencesToMirror: Ansys.ACT.Mechanical.Utilities.GeometryImportPreferences) str#
Get a string containing script-executable commands to set the properties on a
preferences instance preferencesToChange, with the scripted name
variableName, to match the properties on another preferences instance
preferencesToMirror. Only the properties that are different will be used.
GeometryImportPreferences.GetType() type#

GetType method.

GeometryImportPreferences.ToString() str#

ToString method.