DrawingSheetBuilder Class¶
-
class
NXOpen.Drawings.DrawingSheetBuilder¶ Bases:
NXOpen.BuilderRepresents a
NXOpen.Drawings.DrawingSheetBuilderThis class was made abstract in NX12 and the creator (JA_DRAWING_SHEET_COLLECTION_drawing_sheet_builder) was deprecated
New in version NX5.0.0.
Properties¶
| Property | Description |
|---|---|
| AutoStartBaseView | Returns or sets the setting that controls whether or not the Add Base View command is automatically started after inserting a sheet that has no views on it. |
| AutoStartViewCreation | Returns or sets the setting that controls whether or not the Add View creation is automatically started after inserting a sheet that has no views on it. |
| BaseordrawingView | Returns or sets the option of base view or drawing view |
| EnglishSheetTemplateLocation | Returns or sets the location of the english drawing sheet template to be added to the part file |
| Height | Returns or sets the custom or standard height for the drawing sheet |
| Length | Returns or sets the custom or standard length to be used for the drawing to be created or edited. |
| MetricSheetTemplateLocation | Returns or sets the location of the metric drawing sheet template to be added to the part file |
| Name | Returns or sets the name of the drawing sheet to be created or edited |
| Number | Returns or sets the number of the drawing sheet to be created or edited |
| Option | Returns or sets the option to be used to create the drawing sheet |
| ProjectionAngle | Returns or sets the projection_angle option |
| Revision | Returns or sets the revision of the drawing sheet to be created or edited |
| ScaleDenominator | Returns or sets the denominator of a custom scale |
| ScaleNumerator | Returns or sets the numerator of a custom scale |
| SecondaryNumber | Returns or sets the secondary number of the drawing sheet to be created or edited |
| StandardEnglishScale | Returns or sets the standard English drawing scale |
| StandardMetricScale | Returns or sets the standard Metric drawing scale |
| Tag | Returns the Tag for this object. |
| Units | Returns or sets the units for the drawing sheet |
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. |
| 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. |
Enumerations¶
| DrawingSheetBuilderSheetBaseordrawingView Enumeration | the base view or drawing view option |
| DrawingSheetBuilderSheetMode Enumeration | the drawing sheet dialog mode |
| DrawingSheetBuilderSheetOption Enumeration | the options for specifying the attributes of the new drawing sheet to be created. |
| DrawingSheetBuilderSheetProjectionAngle Enumeration | the drawing sheet projection angle |
| DrawingSheetBuilderSheetStandardEnglishScale Enumeration | the standard English drawing sheet scales |
| DrawingSheetBuilderSheetStandardMetricScale Enumeration | the standard Metric drawing sheet scales |
| DrawingSheetBuilderSheetUnits Enumeration | the drawing sheet units |
Property Detail¶
AutoStartBaseView¶
-
DrawingSheetBuilder.AutoStartBaseView¶ Returns or sets the setting that controls whether or not the Add Base View command is automatically started after inserting a sheet that has no views on it.
This option does not appear for Edit Sheet. the toggle is changed to be auto start view creation in Nx7.0, obsolete.
-------------------------------------Getter Method
Signature
AutoStartBaseViewReturns: the add base view automatic start toggle Return type: bool New in version NX5.0.0.
Deprecated since version NX7.5.0: Use
NXOpen.Drawings.DrawingSheetBuilder.AutoStartViewCreation()instead.License requirements: None.
-------------------------------------Setter Method
Signature
AutoStartBaseViewParameters: autoStartBaseView (bool) – the add base view automatic start toggle New in version NX5.0.0.
Deprecated since version NX7.5.0: Use
NXOpen.Drawings.DrawingSheetBuilder.AutoStartViewCreation()instead.License requirements: None.
AutoStartViewCreation¶
-
DrawingSheetBuilder.AutoStartViewCreation¶ Returns or sets the setting that controls whether or not the Add View creation is automatically started after inserting a sheet that has no views on it.
This option does not appear for Edit Sheet.
-------------------------------------Getter Method
Signature
AutoStartViewCreationReturns: the automatically start view creation Return type: bool New in version NX7.5.0.
License requirements: None.
-------------------------------------Setter Method
Signature
AutoStartViewCreationParameters: autoStartViewCreation (bool) – the automatically start view creation New in version NX7.5.0.
License requirements: None.
BaseordrawingView¶
-
DrawingSheetBuilder.BaseordrawingView¶ Returns or sets the option of base view or drawing view
-------------------------------------Getter Method
Signature
BaseordrawingViewReturns: the type of view to automatically start creating Return type: NXOpen.Drawings.DrawingSheetBuilderSheetBaseordrawingViewNew in version NX7.5.0.
License requirements: None.
-------------------------------------Setter Method
Signature
BaseordrawingViewParameters: option ( NXOpen.Drawings.DrawingSheetBuilderSheetBaseordrawingView) – the type of view to automatically start creatingNew in version NX7.5.0.
License requirements: drafting (“DRAFTING”)
EnglishSheetTemplateLocation¶
-
DrawingSheetBuilder.EnglishSheetTemplateLocation¶ Returns or sets the location of the english drawing sheet template to be added to the part file
-------------------------------------Getter Method
Signature
EnglishSheetTemplateLocationReturns: the drawing sheet template location Return type: str New in version NX5.0.0.
License requirements: None.
-------------------------------------Setter Method
Signature
EnglishSheetTemplateLocationParameters: englishSheetTemplateLocation (str) – english drawing sheet template location New in version NX5.0.0.
License requirements: drafting (“DRAFTING”)
Height¶
-
DrawingSheetBuilder.Height¶ Returns or sets the custom or standard height for the drawing sheet
-------------------------------------Getter Method
Signature
HeightReturns: the custom or standard height for the drawing sheet Return type: float New in version NX5.0.0.
License requirements: None.
-------------------------------------Setter Method
Signature
HeightParameters: height (float) – the custom or standard height for the drawing sheet New in version NX5.0.0.
License requirements: drafting (“DRAFTING”)
Length¶
-
DrawingSheetBuilder.Length¶ Returns or sets the custom or standard length to be used for the drawing to be created or edited.
-------------------------------------Getter Method
Signature
LengthReturns: custom or standard length for the drawing sheet Return type: float New in version NX5.0.0.
License requirements: None.
-------------------------------------Setter Method
Signature
LengthParameters: length (float) – the custom or standard length for the drawing sheet New in version NX5.0.0.
License requirements: drafting (“DRAFTING”)
MetricSheetTemplateLocation¶
-
DrawingSheetBuilder.MetricSheetTemplateLocation¶ Returns or sets the location of the metric drawing sheet template to be added to the part file
-------------------------------------Getter Method
Signature
MetricSheetTemplateLocationReturns: the drawing sheet template location Return type: str New in version NX5.0.0.
License requirements: None.
-------------------------------------Setter Method
Signature
MetricSheetTemplateLocationParameters: metricSheetTemplateLocation (str) – metric drawing sheet template location New in version NX5.0.0.
License requirements: drafting (“DRAFTING”)
Name¶
-
DrawingSheetBuilder.Name¶ Returns or sets the name of the drawing sheet to be created or edited
-------------------------------------Getter Method
Signature
NameReturns: the drawing sheet name Return type: str New in version NX5.0.0.
License requirements: None.
-------------------------------------Setter Method
Signature
NameParameters: name (str) – drawing sheet name New in version NX5.0.0.
License requirements: drafting (“DRAFTING”)
Number¶
-
DrawingSheetBuilder.Number¶ Returns or sets the number of the drawing sheet to be created or edited
-------------------------------------Getter Method
Signature
NumberReturns: the drawing sheet number Return type: str New in version NX8.0.0.
License requirements: None.
-------------------------------------Setter Method
Signature
NumberParameters: number (str) – the drawing sheet number New in version NX8.0.0.
License requirements: drafting (“DRAFTING”)
Option¶
-
DrawingSheetBuilder.Option¶ Returns or sets the option to be used to create the drawing sheet
-------------------------------------Getter Method
Signature
OptionReturns: the option to be used to create the drawing sheet Return type: NXOpen.Drawings.DrawingSheetBuilderSheetOptionNew in version NX5.0.0.
License requirements: None.
-------------------------------------Setter Method
Signature
OptionParameters: option ( NXOpen.Drawings.DrawingSheetBuilderSheetOption) – the option to be used to create the drawing sheetNew in version NX5.0.0.
License requirements: drafting (“DRAFTING”)
ProjectionAngle¶
-
DrawingSheetBuilder.ProjectionAngle¶ Returns or sets the projection_angle option
-------------------------------------Getter Method
Signature
ProjectionAngleReturns: the projection_angle option Return type: NXOpen.Drawings.DrawingSheetBuilderSheetProjectionAngleNew in version NX5.0.0.
License requirements: None.
-------------------------------------Setter Method
Signature
ProjectionAngleParameters: projectionAngle ( NXOpen.Drawings.DrawingSheetBuilderSheetProjectionAngle) – the projection_angle optionNew in version NX5.0.0.
License requirements: drafting (“DRAFTING”)
Revision¶
-
DrawingSheetBuilder.Revision¶ Returns or sets the revision of the drawing sheet to be created or edited
-------------------------------------Getter Method
Signature
RevisionReturns: the drawing sheet revision Return type: str New in version NX8.0.0.
License requirements: None.
-------------------------------------Setter Method
Signature
RevisionParameters: revision (str) – the drawing sheet revision New in version NX8.0.0.
License requirements: drafting (“DRAFTING”)
ScaleDenominator¶
-
DrawingSheetBuilder.ScaleDenominator¶ Returns or sets the denominator of a custom scale
-------------------------------------Getter Method
Signature
ScaleDenominatorReturns: the denominator of a custom scale Return type: float New in version NX5.0.0.
License requirements: None.
-------------------------------------Setter Method
Signature
ScaleDenominatorParameters: scaleDenominator (float) – the denominator of a custom scale New in version NX5.0.0.
License requirements: drafting (“DRAFTING”)
ScaleNumerator¶
-
DrawingSheetBuilder.ScaleNumerator¶ Returns or sets the numerator of a custom scale
-------------------------------------Getter Method
Signature
ScaleNumeratorReturns: the numerator of a custom scale Return type: float New in version NX5.0.0.
License requirements: None.
-------------------------------------Setter Method
Signature
ScaleNumeratorParameters: scaleNumerator (float) – New in version NX5.0.0.
License requirements: drafting (“DRAFTING”)
SecondaryNumber¶
-
DrawingSheetBuilder.SecondaryNumber¶ Returns or sets the secondary number of the drawing sheet to be created or edited
-------------------------------------Getter Method
Signature
SecondaryNumberReturns: the drawing sheet secondary number Return type: str New in version NX8.0.0.
License requirements: None.
-------------------------------------Setter Method
Signature
SecondaryNumberParameters: secondaryNumber (str) – the drawing sheet secondary number New in version NX8.0.0.
License requirements: drafting (“DRAFTING”)
StandardEnglishScale¶
-
DrawingSheetBuilder.StandardEnglishScale¶ Returns or sets the standard English drawing scale
-------------------------------------Getter Method
Signature
StandardEnglishScaleReturns: the standard English drawing scale Return type: NXOpen.Drawings.DrawingSheetBuilderSheetStandardEnglishScaleNew in version NX5.0.0.
License requirements: None.
-------------------------------------Setter Method
Signature
StandardEnglishScaleParameters: englishScale ( NXOpen.Drawings.DrawingSheetBuilderSheetStandardEnglishScale) – the standard English drawing scaleNew in version NX5.0.0.
License requirements: drafting (“DRAFTING”)
StandardMetricScale¶
-
DrawingSheetBuilder.StandardMetricScale¶ Returns or sets the standard Metric drawing scale
-------------------------------------Getter Method
Signature
StandardMetricScaleReturns: the standard Metric drawing scale Return type: NXOpen.Drawings.DrawingSheetBuilderSheetStandardMetricScaleNew in version NX5.0.0.
License requirements: None.
-------------------------------------Setter Method
Signature
StandardMetricScaleParameters: metricScale ( NXOpen.Drawings.DrawingSheetBuilderSheetStandardMetricScale) – the standard Metric drawing scaleNew in version NX5.0.0.
License requirements: drafting (“DRAFTING”)
Units¶
-
DrawingSheetBuilder.Units¶ Returns or sets the units for the drawing sheet
-------------------------------------Getter Method
Signature
UnitsReturns: the units for the drawing sheet Return type: NXOpen.Drawings.DrawingSheetBuilderSheetUnitsNew in version NX5.0.0.
License requirements: None.
-------------------------------------Setter Method
Signature
UnitsParameters: units ( NXOpen.Drawings.DrawingSheetBuilderSheetUnits) – the units for the drawing sheetNew in version NX5.0.0.
License requirements: drafting (“DRAFTING”)
Method Detail¶
Validate¶
-
DrawingSheetBuilder.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.