PartDrafting Class¶
-
class
NXOpen.Preferences.PartDrafting¶ Bases:
objectRepresents the set of drafting preferences applicable to part
To obtain an instance of this class, refer to
NXOpen.Preferences.PartPreferencesNew in version NX3.0.0.
Properties¶
| Property | Description |
|---|---|
| ActiveViewColor | Returns or sets the drafting active view color. |
| AssociativeAlignment | Returns or sets the flag indicating whether to associatively align the view when placing it |
| BorderColor | Returns or sets the drafting view border color. |
| BreakLineAmplitude | Returns or sets the break line amplitude. |
| BreakLineColor | Returns or sets the break line color. |
| BreakLineExtension | Returns or sets |
| BreakLineGap | Returns or sets the break line gap. |
| BreakLineType | Returns or sets the break line type. |
| BreakLineWidth | Returns or sets the break line width. |
| BreakLinesVisibility | Returns or sets the break lines visibility. |
| Color | Returns or sets the color of the retained NXOpen.Annotations.Annotation objects. |
| CustomSymbolSmashToSketch | Returns or sets the custom symbol smash behavior. |
| DelayUpdateOnCreation | Returns or sets the flag indicating whether the newly created views should update immediately even when the view update is delayed. |
| DelayViewUpdate | Returns or sets the flag indicating whether to delay update of the drafting views during system initiated drawing updates |
| Delimiter | Returns or sets the delimiter |
| DisplayBorders | Returns or sets the flag indicating whether to display borders around drafting views, when selected |
| EnableSmoothEdgesForLWView | Returns or sets the flat indicating whether the smart lightweight views should show the smooth edges or render them as normal curves |
| Font | Returns or sets the line font of the retained NXOpen.Annotations.Annotation objects |
| FrameBarPrecision | Returns or sets the frame bar precision. |
| FrameBarTicDirection | Returns or sets the frame bar tic direction. |
| InitialSecondaryNumber | Returns or sets the initial secondary number |
| InitialSheetNumber | Returns or sets the initial sheet number |
| LineAntialiasing | Returns or sets the flag indicating whether to display drawing using line antialiasing. |
| MinimumComponentsForLargeAssemblyOption | Returns or sets the minimum number of components for large assembly option to get enabled |
| PropagateBreakLines | Returns or sets the propagation of view break. |
| RetainAnnotations | Returns or sets the flag indicating whether to retain NXOpen.Annotations.Annotation objects when the geometry they are attached to is deleted. |
| ShowFacetEdges | Returns or sets the flag indicating whether to display facet edges in shaded member views. |
| Translucency | Returns or sets the flag indicating whether to display solids in shaded member views with translucency. |
| UpdateViewWithoutLwData | Returns or sets the option specifying the action when missing, incomplete or invalid lightweight bodies are found during view create or update |
| VersionObjects | Returns or sets the drafting version objects setting when updating drafting objects and member views |
| ViewStyle | Returns or sets the drafting view style type for preview when placing the view |
| ViewTracking | Returns or sets the flag indicating whether to track a drafting view during preview when placing the view. |
| Width | Returns or sets the line width of the retained NXOpen.Annotations.Annotation objects |
Methods¶
Enumerations¶
| PartDraftingBreakLineStyle Enumeration | Describes the available break line style |
| PartDraftingFontType Enumeration | Describes the available font types |
| PartDraftingUpdateViewWithoutLwDataOption Enumeration | Describes the update view without light weight data options |
| PartDraftingViewStyleType Enumeration | Describes the available view style types for preview |
| PartDraftingWidthType Enumeration | Describes the available width types |
Property Detail¶
ActiveViewColor¶
-
PartDrafting.ActiveViewColor¶ Returns or sets the drafting active view color.
-------------------------------------Getter Method
Signature
ActiveViewColorReturns: Return type: Id New in version NX6.0.0.
License requirements: None.
-------------------------------------Setter Method
Signature
ActiveViewColorParameters: borderColor (Id) – New in version NX6.0.0.
License requirements: None.
AssociativeAlignment¶
-
PartDrafting.AssociativeAlignment¶ Returns or sets the flag indicating whether to associatively align the view when placing it
-------------------------------------Getter Method
Signature
AssociativeAlignmentReturns: Return type: bool New in version NX8.5.0.
License requirements: None.
-------------------------------------Setter Method
Signature
AssociativeAlignmentParameters: associativeAlignment (bool) – New in version NX8.5.0.
License requirements: None.
BorderColor¶
-
PartDrafting.BorderColor¶ Returns or sets the drafting view border color.
The value should be between 1 and 216.
-------------------------------------Getter Method
Signature
BorderColorReturns: Return type: int New in version NX3.0.0.
License requirements: None.
-------------------------------------Setter Method
Signature
BorderColorParameters: borderColor (int) – New in version NX3.0.0.
License requirements: None.
BreakLineAmplitude¶
-
PartDrafting.BreakLineAmplitude¶ Returns or sets the break line amplitude.
-------------------------------------Getter Method
Signature
BreakLineAmplitudeReturns: Return type: float New in version NX7.5.0.
License requirements: None.
-------------------------------------Setter Method
Signature
BreakLineAmplitudeParameters: amplitude (float) – New in version NX7.5.0.
License requirements: None.
BreakLineColor¶
-
PartDrafting.BreakLineColor¶ Returns or sets the break line color.
-------------------------------------Getter Method
Signature
BreakLineColorReturns: Return type: Id New in version NX7.5.0.
License requirements: None.
-------------------------------------Setter Method
Signature
BreakLineColorParameters: color (Id) – New in version NX7.5.0.
License requirements: None.
BreakLineExtension¶
-
PartDrafting.BreakLineExtension¶ Returns or sets
-------------------------------------Getter Method
Signature
BreakLineExtensionReturns: Return type: float New in version NX7.5.0.
License requirements: None.
-------------------------------------Setter Method
Signature
BreakLineExtensionParameters: extension (float) – New in version NX7.5.0.
License requirements: None.
BreakLineGap¶
-
PartDrafting.BreakLineGap¶ Returns or sets the break line gap.
-------------------------------------Getter Method
Signature
BreakLineGapReturns: Return type: float New in version NX7.5.0.
License requirements: None.
-------------------------------------Setter Method
Signature
BreakLineGapParameters: gap (float) – New in version NX7.5.0.
License requirements: None.
BreakLineType¶
-
PartDrafting.BreakLineType¶ Returns or sets the break line type.
-------------------------------------Getter Method
Signature
BreakLineTypeReturns: Return type: NXOpen.Preferences.PartDraftingBreakLineStyleNew in version NX7.5.0.
License requirements: None.
-------------------------------------Setter Method
Signature
BreakLineTypeParameters: lineType ( NXOpen.Preferences.PartDraftingBreakLineStyle) –New in version NX7.5.0.
License requirements: None.
BreakLineWidth¶
-
PartDrafting.BreakLineWidth¶ Returns or sets the break line width.
-------------------------------------Getter Method
Signature
BreakLineWidthReturns: Return type: int New in version NX7.5.0.
License requirements: None.
-------------------------------------Setter Method
Signature
BreakLineWidthParameters: width (int) – New in version NX7.5.0.
License requirements: None.
BreakLinesVisibility¶
-
PartDrafting.BreakLinesVisibility¶ Returns or sets the break lines visibility.
-------------------------------------Getter Method
Signature
BreakLinesVisibilityReturns: Return type: bool New in version NX8.0.0.
License requirements: None.
-------------------------------------Setter Method
Signature
BreakLinesVisibilityParameters: isVisible (bool) – New in version NX8.0.0.
License requirements: None.
Color¶
-
PartDrafting.Color¶ Returns or sets the color of the retained
NXOpen.Annotations.Annotationobjects.The value should be between 1 and 216.
-------------------------------------Getter Method
Signature
ColorReturns: Return type: int New in version NX3.0.0.
License requirements: None.
-------------------------------------Setter Method
Signature
ColorParameters: color (int) – New in version NX3.0.0.
License requirements: None.
CustomSymbolSmashToSketch¶
-
PartDrafting.CustomSymbolSmashToSketch¶ Returns or sets the custom symbol smash behavior.
-------------------------------------Getter Method
Signature
CustomSymbolSmashToSketchReturns: Return type: bool New in version NX8.5.0.
License requirements: None.
-------------------------------------Setter Method
Signature
CustomSymbolSmashToSketchParameters: isSmashToSketch (bool) – New in version NX8.5.0.
License requirements: nx_layout (“NX Layout”)
DelayUpdateOnCreation¶
-
PartDrafting.DelayUpdateOnCreation¶ Returns or sets the flag indicating whether the newly created views should update immediately even when the view update is delayed.
-------------------------------------Getter Method
Signature
DelayUpdateOnCreationReturns: Return type: bool New in version NX3.0.0.
License requirements: None.
-------------------------------------Setter Method
Signature
DelayUpdateOnCreationParameters: isDelayUpdateOnCreationOn (bool) – New in version NX3.0.0.
License requirements: None.
DelayViewUpdate¶
-
PartDrafting.DelayViewUpdate¶ Returns or sets the flag indicating whether to delay update of the drafting views during system initiated drawing updates
-------------------------------------Getter Method
Signature
DelayViewUpdateReturns: Return type: bool New in version NX3.0.0.
License requirements: None.
-------------------------------------Setter Method
Signature
DelayViewUpdateParameters: isDelayViewUpdateOn (bool) – New in version NX3.0.0.
License requirements: None.
Delimiter¶
-
PartDrafting.Delimiter¶ Returns or sets the delimiter
-------------------------------------Getter Method
Signature
DelimiterReturns: Return type: str New in version NX8.0.0.
License requirements: None.
-------------------------------------Setter Method
Signature
DelimiterParameters: delimiter (str) – New in version NX8.0.0.
License requirements: None.
DisplayBorders¶
-
PartDrafting.DisplayBorders¶ Returns or sets the flag indicating whether to display borders around drafting views, when selected
-------------------------------------Getter Method
Signature
DisplayBordersReturns: Return type: bool New in version NX3.0.0.
License requirements: None.
-------------------------------------Setter Method
Signature
DisplayBordersParameters: displayBorders (bool) – New in version NX3.0.0.
License requirements: None.
EnableSmoothEdgesForLWView¶
-
PartDrafting.EnableSmoothEdgesForLWView¶ Returns or sets the flat indicating whether the smart lightweight views should show the smooth edges or render them as normal curves
-------------------------------------Getter Method
Signature
EnableSmoothEdgesForLWViewReturns: Return type: bool New in version NX8.5.0.
License requirements: None.
-------------------------------------Setter Method
Signature
EnableSmoothEdgesForLWViewParameters: enableSmoothEdges (bool) – New in version NX8.5.0.
License requirements: None.
Font¶
-
PartDrafting.Font¶ Returns or sets the line font of the retained
NXOpen.Annotations.Annotationobjects-------------------------------------Getter Method
Signature
FontReturns: Return type: NXOpen.Preferences.PartDraftingFontTypeNew in version NX3.0.0.
License requirements: None.
-------------------------------------Setter Method
Signature
FontParameters: font ( NXOpen.Preferences.PartDraftingFontType) –New in version NX3.0.0.
License requirements: None.
FrameBarPrecision¶
-
PartDrafting.FrameBarPrecision¶ Returns or sets the frame bar precision.
-------------------------------------Getter Method
Signature
FrameBarPrecisionReturns: Return type: int New in version NX8.0.0.
License requirements: None.
-------------------------------------Setter Method
Signature
FrameBarPrecisionParameters: precision (int) – New in version NX8.0.0.
License requirements: None.
FrameBarTicDirection¶
-
PartDrafting.FrameBarTicDirection¶ Returns or sets the frame bar tic direction.
-------------------------------------Getter Method
Signature
FrameBarTicDirectionReturns: Return type: int New in version NX8.0.0.
License requirements: None.
-------------------------------------Setter Method
Signature
FrameBarTicDirectionParameters: ticDirection (int) – New in version NX8.0.0.
License requirements: None.
InitialSecondaryNumber¶
-
PartDrafting.InitialSecondaryNumber¶ Returns or sets the initial secondary number
-------------------------------------Getter Method
Signature
InitialSecondaryNumberReturns: Return type: str New in version NX8.0.0.
License requirements: None.
-------------------------------------Setter Method
Signature
InitialSecondaryNumberParameters: initialSecondaryNumber (str) – New in version NX8.0.0.
License requirements: None.
InitialSheetNumber¶
-
PartDrafting.InitialSheetNumber¶ Returns or sets the initial sheet number
-------------------------------------Getter Method
Signature
InitialSheetNumberReturns: Return type: str New in version NX8.0.0.
License requirements: None.
-------------------------------------Setter Method
Signature
InitialSheetNumberParameters: initialSheetNumber (str) – New in version NX8.0.0.
License requirements: None.
LineAntialiasing¶
-
PartDrafting.LineAntialiasing¶ Returns or sets the flag indicating whether to display drawing using line antialiasing.
-------------------------------------Getter Method
Signature
LineAntialiasingReturns: Return type: bool New in version NX5.0.1.
License requirements: None.
-------------------------------------Setter Method
Signature
LineAntialiasingParameters: lineAntialiasing (bool) – New in version NX5.0.1.
License requirements: None.
MinimumComponentsForLargeAssemblyOption¶
-
PartDrafting.MinimumComponentsForLargeAssemblyOption¶ Returns or sets the minimum number of components for large assembly option to get enabled
-------------------------------------Getter Method
Signature
MinimumComponentsForLargeAssemblyOptionReturns: Minimum number of components for large assembly option Return type: int New in version NX8.5.0.
License requirements: None.
-------------------------------------Setter Method
Signature
MinimumComponentsForLargeAssemblyOptionParameters: minComponents (int) – Minimum number of components for large assembly option New in version NX8.5.0.
License requirements: None.
PropagateBreakLines¶
-
PartDrafting.PropagateBreakLines¶ Returns or sets the propagation of view break.
-------------------------------------Getter Method
Signature
PropagateBreakLinesReturns: Return type: bool New in version NX7.5.0.
License requirements: None.
-------------------------------------Setter Method
Signature
PropagateBreakLinesParameters: doesPropagate (bool) – New in version NX7.5.0.
License requirements: None.
RetainAnnotations¶
-
PartDrafting.RetainAnnotations¶ Returns or sets the flag indicating whether to retain
NXOpen.Annotations.Annotationobjects when the geometry they are attached to is deleted.When false, the
NXOpen.Annotations.Annotationobjects get deleted with the geometry.-------------------------------------Getter Method
Signature
RetainAnnotationsReturns: Return type: bool New in version NX3.0.0.
License requirements: None.
-------------------------------------Setter Method
Signature
RetainAnnotationsParameters: retainAnnotations (bool) – New in version NX3.0.0.
License requirements: None.
ShowFacetEdges¶
-
PartDrafting.ShowFacetEdges¶ Returns or sets the flag indicating whether to display facet edges in shaded member views.
-------------------------------------Getter Method
Signature
ShowFacetEdgesReturns: Return type: bool New in version NX5.0.1.
License requirements: None.
-------------------------------------Setter Method
Signature
ShowFacetEdgesParameters: showFacetEdges (bool) – New in version NX5.0.1.
License requirements: None.
Translucency¶
-
PartDrafting.Translucency¶ Returns or sets the flag indicating whether to display solids in shaded member views with translucency.
-------------------------------------Getter Method
Signature
TranslucencyReturns: Return type: bool New in version NX5.0.1.
License requirements: None.
-------------------------------------Setter Method
Signature
TranslucencyParameters: translucency (bool) – New in version NX5.0.1.
License requirements: None.
UpdateViewWithoutLwData¶
-
PartDrafting.UpdateViewWithoutLwData¶ Returns or sets the option specifying the action when missing, incomplete or invalid lightweight bodies are found during view create or update
-------------------------------------Getter Method
Signature
UpdateViewWithoutLwDataReturns: Return type: NXOpen.Preferences.PartDraftingUpdateViewWithoutLwDataOptionNew in version NX8.5.0.
License requirements: None.
-------------------------------------Setter Method
Signature
UpdateViewWithoutLwDataParameters: updateViewWithoutLWDataOption ( NXOpen.Preferences.PartDraftingUpdateViewWithoutLwDataOption) –New in version NX8.5.0.
License requirements: None.
VersionObjects¶
-
PartDrafting.VersionObjects¶ Returns or sets the drafting version objects setting when updating drafting objects and member views
-------------------------------------Getter Method
Signature
VersionObjectsReturns: Return type: bool New in version NX4.0.0.
License requirements: None.
-------------------------------------Setter Method
Signature
VersionObjectsParameters: versonObjects (bool) – New in version NX4.0.0.
License requirements: None.
ViewStyle¶
-
PartDrafting.ViewStyle¶ Returns or sets the drafting view style type for preview when placing the view
-------------------------------------Getter Method
Signature
ViewStyleReturns: Return type: NXOpen.Preferences.PartDraftingViewStyleTypeNew in version NX3.0.0.
License requirements: None.
-------------------------------------Setter Method
Signature
ViewStyleParameters: viewStyle ( NXOpen.Preferences.PartDraftingViewStyleType) –New in version NX3.0.0.
License requirements: None.
ViewTracking¶
-
PartDrafting.ViewTracking¶ Returns or sets the flag indicating whether to track a drafting view during preview when placing the view.
The cursor is tracked using XC/YC coordinates.
-------------------------------------Getter Method
Signature
ViewTrackingReturns: Return type: bool New in version NX3.0.0.
License requirements: None.
-------------------------------------Setter Method
Signature
ViewTrackingParameters: viewTracking (bool) – New in version NX3.0.0.
License requirements: None.
Width¶
-
PartDrafting.Width¶ Returns or sets the line width of the retained
NXOpen.Annotations.Annotationobjects-------------------------------------Getter Method
Signature
WidthReturns: Return type: NXOpen.Preferences.PartDraftingWidthTypeNew in version NX3.0.0.
License requirements: None.
-------------------------------------Setter Method
Signature
WidthParameters: width ( NXOpen.Preferences.PartDraftingWidthType) –New in version NX3.0.0.
License requirements: None.