AutomationPreferencesBuilder Class¶
-
class
NXOpen.Drafting.AutomationPreferencesBuilder¶ Bases:
NXOpen.Builderthe builder for Drafting Automation Preferences
To create a new instance of this class, use
NXOpen.Drafting.AutomationManager.CreatePreferencesBuilder()New in version NX8.0.0.
Properties¶
| Property | Description |
|---|---|
| AllowFeetInchFractionForDimensionGreaterThan | Returns or sets the determination of the feet inch fraction display for dimension greater than |
| AllowInchFractionToNearest | Returns or sets the determination of the display for inch fraction to nearest |
| AnnotationInsideGeometry | Returns or sets the annotation inside geometry |
| DisplayRegion | Returns or sets the display in non template |
| DisplayRegionLabel | Returns or sets the display region label |
| DistanceBetweenAnnotations | Returns or sets the distance between annotations |
| EqualDimensionCompareTolerance | Returns or sets the equal dimension compare tolerance |
| FeetInchFractionForDimensionGreaterThan | Returns or sets the feet inch fraction for dimension greater than |
| HideFeetInchMark | Returns or sets the hide feet inch mark |
| InchFractionToNearest | Returns or sets the inch fraction to nearest |
| MaximumDistanceToGeometry | Returns or sets the maximum distance to geometry |
| MinimumDistanceToGeometry | Returns or sets the minimum distance to geometry |
| ReferenceGeometrySearchDistance | Returns or sets the reference geometry search distance |
| RegionColor | Returns or sets the region color |
| RegionFont | Returns or sets the region font |
| RegionWidth | Returns or sets the region width |
| SecondaryContentHiddenLineColor | Returns or sets the secondary content hidden line color |
| SecondaryContentHiddenLineFont | Returns or sets the secondary content hidden line font |
| SecondaryContentHiddenLineWidth | Returns or sets the secondary content hidden line width |
| SecondaryContentVisibleLineColor | Returns or sets the secondary content visible line color |
| SecondaryContentVisibleLineFont | Returns or sets the secondary content visible line font |
| SecondaryContentVisibleLineWidth | Returns or sets the secondary content visible line width |
| Tag | Returns the Tag for this object. |
Methods¶
| Method | Description |
|---|---|
| Commit | Commits any edits that have been applied to the builder. |
| Destroy | Deletes the builder, and cleans up any objects created by the builder. |
| GetCommittedObjects | For builders that create more than one object, this method returns the objects that are created by commit. |
| GetObject | Returns the object currently being edited by this builder. |
| GetRulesList | Get the ordered rules list |
| SetRulesList | Set the ordered rules list |
| ShowResults | Updates the model to reflect the result of an edit to the model for all builders that support showing results. |
| Validate | Validate whether the inputs to the component are sufficient for commit to be called. |
Property Detail¶
AllowFeetInchFractionForDimensionGreaterThan¶
-
AutomationPreferencesBuilder.AllowFeetInchFractionForDimensionGreaterThan¶ Returns or sets the determination of the feet inch fraction display for dimension greater than
-------------------------------------Getter Method
Signature
AllowFeetInchFractionForDimensionGreaterThanReturns: Return type: bool New in version NX8.0.0.
License requirements: None.
-------------------------------------Setter Method
Signature
AllowFeetInchFractionForDimensionGreaterThanParameters: allowFeetInchFractionForDimensionGreaterThan (bool) – New in version NX8.0.0.
License requirements: nx_drawing_auto (“NX Drawing Automation”)
AllowInchFractionToNearest¶
-
AutomationPreferencesBuilder.AllowInchFractionToNearest¶ Returns or sets the determination of the display for inch fraction to nearest
-------------------------------------Getter Method
Signature
AllowInchFractionToNearestReturns: Return type: bool New in version NX8.0.0.
License requirements: None.
-------------------------------------Setter Method
Signature
AllowInchFractionToNearestParameters: allowInchFractionToNearest (bool) – New in version NX8.0.0.
License requirements: nx_drawing_auto (“NX Drawing Automation”)
AnnotationInsideGeometry¶
-
AutomationPreferencesBuilder.AnnotationInsideGeometry¶ Returns or sets the annotation inside geometry
-------------------------------------Getter Method
Signature
AnnotationInsideGeometryReturns: Return type: bool New in version NX8.0.0.
License requirements: None.
-------------------------------------Setter Method
Signature
AnnotationInsideGeometryParameters: annotationInsideGeometry (bool) – New in version NX8.0.0.
License requirements: nx_drawing_auto (“NX Drawing Automation”)
DisplayRegion¶
-
AutomationPreferencesBuilder.DisplayRegion¶ Returns or sets the display in non template
-------------------------------------Getter Method
Signature
DisplayRegionReturns: Return type: bool New in version NX8.0.0.
License requirements: None.
-------------------------------------Setter Method
Signature
DisplayRegionParameters: displayRegion (bool) – New in version NX8.0.0.
License requirements: nx_drawing_auto (“NX Drawing Automation”)
DisplayRegionLabel¶
-
AutomationPreferencesBuilder.DisplayRegionLabel¶ Returns or sets the display region label
-------------------------------------Getter Method
Signature
DisplayRegionLabelReturns: Return type: bool New in version NX8.0.0.
License requirements: None.
-------------------------------------Setter Method
Signature
DisplayRegionLabelParameters: displayRegionLabel (bool) – New in version NX8.0.0.
License requirements: nx_drawing_auto (“NX Drawing Automation”)
DistanceBetweenAnnotations¶
-
AutomationPreferencesBuilder.DistanceBetweenAnnotations¶ Returns or sets the distance between annotations
-------------------------------------Getter Method
Signature
DistanceBetweenAnnotationsReturns: Return type: float New in version NX8.0.0.
License requirements: None.
-------------------------------------Setter Method
Signature
DistanceBetweenAnnotationsParameters: distanceBetweenAnnotations (float) – New in version NX8.0.0.
License requirements: nx_drawing_auto (“NX Drawing Automation”)
EqualDimensionCompareTolerance¶
-
AutomationPreferencesBuilder.EqualDimensionCompareTolerance¶ Returns or sets the equal dimension compare tolerance
-------------------------------------Getter Method
Signature
EqualDimensionCompareToleranceReturns: Return type: float New in version NX8.0.0.
License requirements: None.
-------------------------------------Setter Method
Signature
EqualDimensionCompareToleranceParameters: equalDimensionCompareTolerance (float) – New in version NX8.0.0.
License requirements: nx_drawing_auto (“NX Drawing Automation”)
FeetInchFractionForDimensionGreaterThan¶
-
AutomationPreferencesBuilder.FeetInchFractionForDimensionGreaterThan¶ Returns or sets the feet inch fraction for dimension greater than
-------------------------------------Getter Method
Signature
FeetInchFractionForDimensionGreaterThanReturns: Return type: float New in version NX8.0.0.
License requirements: None.
-------------------------------------Setter Method
Signature
FeetInchFractionForDimensionGreaterThanParameters: feetInchFractionForDimensionGreaterThan (float) – New in version NX8.0.0.
License requirements: nx_drawing_auto (“NX Drawing Automation”)
HideFeetInchMark¶
-
AutomationPreferencesBuilder.HideFeetInchMark¶ Returns or sets the hide feet inch mark
-------------------------------------Getter Method
Signature
HideFeetInchMarkReturns: Return type: bool New in version NX8.0.0.
License requirements: None.
-------------------------------------Setter Method
Signature
HideFeetInchMarkParameters: hideFeetInchMark (bool) – New in version NX8.0.0.
License requirements: nx_drawing_auto (“NX Drawing Automation”)
InchFractionToNearest¶
-
AutomationPreferencesBuilder.InchFractionToNearest¶ Returns or sets the inch fraction to nearest
-------------------------------------Getter Method
Signature
InchFractionToNearestReturns: Return type: float New in version NX8.0.0.
License requirements: None.
-------------------------------------Setter Method
Signature
InchFractionToNearestParameters: inchFractionToNearest (float) – New in version NX8.0.0.
License requirements: nx_drawing_auto (“NX Drawing Automation”)
MaximumDistanceToGeometry¶
-
AutomationPreferencesBuilder.MaximumDistanceToGeometry¶ Returns or sets the maximum distance to geometry
-------------------------------------Getter Method
Signature
MaximumDistanceToGeometryReturns: Return type: float New in version NX8.0.0.
License requirements: None.
-------------------------------------Setter Method
Signature
MaximumDistanceToGeometryParameters: maximumDistanceToGeometry (float) – New in version NX8.0.0.
License requirements: nx_drawing_auto (“NX Drawing Automation”)
MinimumDistanceToGeometry¶
-
AutomationPreferencesBuilder.MinimumDistanceToGeometry¶ Returns or sets the minimum distance to geometry
-------------------------------------Getter Method
Signature
MinimumDistanceToGeometryReturns: Return type: float New in version NX8.0.0.
License requirements: None.
-------------------------------------Setter Method
Signature
MinimumDistanceToGeometryParameters: minimumDistanceToGeometry (float) – New in version NX8.0.0.
License requirements: nx_drawing_auto (“NX Drawing Automation”)
ReferenceGeometrySearchDistance¶
-
AutomationPreferencesBuilder.ReferenceGeometrySearchDistance¶ Returns or sets the reference geometry search distance
-------------------------------------Getter Method
Signature
ReferenceGeometrySearchDistanceReturns: Return type: float New in version NX8.0.0.
License requirements: None.
-------------------------------------Setter Method
Signature
ReferenceGeometrySearchDistanceParameters: referenceGeometrySearchDistance (float) – New in version NX8.0.0.
License requirements: nx_drawing_auto (“NX Drawing Automation”)
RegionColor¶
-
AutomationPreferencesBuilder.RegionColor¶ Returns or sets the region color
-------------------------------------Getter Method
Signature
RegionColorReturns: Return type: Id New in version NX8.0.0.
License requirements: None.
-------------------------------------Setter Method
Signature
RegionColorParameters: regionColor (Id) – New in version NX8.0.0.
License requirements: nx_drawing_auto (“NX Drawing Automation”)
RegionFont¶
-
AutomationPreferencesBuilder.RegionFont¶ Returns or sets the region font
-------------------------------------Getter Method
Signature
RegionFontReturns: Return type: NXOpen.Preferences.PartDraftingFontTypeNew in version NX8.0.0.
License requirements: None.
-------------------------------------Setter Method
Signature
RegionFontParameters: regionFont ( NXOpen.Preferences.PartDraftingFontType) –New in version NX8.0.0.
License requirements: nx_drawing_auto (“NX Drawing Automation”)
RegionWidth¶
-
AutomationPreferencesBuilder.RegionWidth¶ Returns or sets the region width
-------------------------------------Getter Method
Signature
RegionWidthReturns: Return type: NXOpen.Preferences.PartDraftingWidthTypeNew in version NX8.0.0.
License requirements: None.
-------------------------------------Setter Method
Signature
RegionWidthParameters: regionWidth ( NXOpen.Preferences.PartDraftingWidthType) –New in version NX8.0.0.
License requirements: nx_drawing_auto (“NX Drawing Automation”)
SecondaryContentVisibleLineColor¶
-
AutomationPreferencesBuilder.SecondaryContentVisibleLineColor¶ Returns or sets the secondary content visible line color
-------------------------------------Getter Method
Signature
SecondaryContentVisibleLineColorReturns: Return type: Id New in version NX8.0.0.
License requirements: None.
-------------------------------------Setter Method
Signature
SecondaryContentVisibleLineColorParameters: secondaryContentVisibleLineColor (Id) – New in version NX8.0.0.
License requirements: nx_drawing_auto (“NX Drawing Automation”)
SecondaryContentVisibleLineFont¶
-
AutomationPreferencesBuilder.SecondaryContentVisibleLineFont¶ Returns or sets the secondary content visible line font
-------------------------------------Getter Method
Signature
SecondaryContentVisibleLineFontReturns: Return type: NXOpen.Preferences.PartDraftingFontTypeNew in version NX8.0.0.
License requirements: None.
-------------------------------------Setter Method
Signature
SecondaryContentVisibleLineFontParameters: secondaryContentVisibleLineFont ( NXOpen.Preferences.PartDraftingFontType) –New in version NX8.0.0.
License requirements: nx_drawing_auto (“NX Drawing Automation”)
SecondaryContentVisibleLineWidth¶
-
AutomationPreferencesBuilder.SecondaryContentVisibleLineWidth¶ Returns or sets the secondary content visible line width
-------------------------------------Getter Method
Signature
SecondaryContentVisibleLineWidthReturns: Return type: NXOpen.Preferences.PartDraftingWidthTypeNew in version NX8.0.0.
License requirements: None.
-------------------------------------Setter Method
Signature
SecondaryContentVisibleLineWidthParameters: secondaryContentVisibleLineWidth ( NXOpen.Preferences.PartDraftingWidthType) –New in version NX8.0.0.
License requirements: nx_drawing_auto (“NX Drawing Automation”)
Method Detail¶
GetRulesList¶
-
AutomationPreferencesBuilder.GetRulesList¶ Get the ordered rules list
Signature
GetRulesList()Returns: Rules list Return type: list of str New in version NX8.0.0.
License requirements: None.
SetRulesList¶
-
AutomationPreferencesBuilder.SetRulesList¶ Set the ordered rules list
Signature
SetRulesList(rules)Parameters: rules (list of str) – Rules list New in version NX8.0.0.
License requirements: nx_drawing_auto (“NX Drawing Automation”)
Validate¶
-
AutomationPreferencesBuilder.Validate¶ Validate whether the inputs to the component are sufficient for commit to be called.
If the component is not in a state to commit then an exception is thrown. For example, if the component requires you to set some property, this method will throw an exception if you haven’t set it. This method throws a not-yet-implemented NXException for some components.
Signature
Validate()Returns: Was self validation successful Return type: bool New in version NX3.0.1.
License requirements: None.