AssemblyDrawingBuilder Class

class NXOpen.Tooling.AssemblyDrawingBuilder

Bases: NXOpen.Builder

Represents a NXOpen.Tooling.AssemblyDrawingBuilder which is used to create or edit the Assembly Drawing.

To create a new instance of this class, use NXOpen.Tooling.ToolingDrawingCollection.CreateAssemblyDrawingBuilder()

Default values.

Property Value
DoubleViewScale 1
EnumAttributeName MwSide
EnumAttributeValue A
EnumDrawingType MasterModel
EnumSheets CreateNew
ModelViewToUse Top
TgShowA 0
TgShowB 0
ToggleBlankComponentsWithAttribute 0
ToggleListDependents 0
ToggleShowOnly 0
ViewOption DefaultView

New in version NX8.5.0.

Properties

Property Description
DeleteButtonClicked Returns or sets the delete button clicked attribute
DoubleViewScale Returns or sets a double view scale
EnumAttributeName Returns or sets the option for select the attribute name
EnumAttributeValue Returns or sets the option for select the attribute value
EnumDrawingType Returns or sets the option for the assembly drawing operation
EnumSheets Returns or sets the option for select the sheet
ModelViewToUse Returns or sets the option for model view to use
ScaleModified Returns or sets the scale modified attribute
SectionViewButtonClicked Returns or sets the section view button clicked attribute
StringFilterRule Returns or sets the Filter rule
StringNameRule Returns or sets the string name rule
StringSheetName Returns or sets the sheet name
Tag Returns the Tag for this object.
TgShowA Returns or sets the A attribute
TgShowB Returns or sets the B attribute
ToggleBlankComponentsWithAttribute Returns or sets the blank components with attribute
ToggleListDependents Returns or sets the List dependents
ToggleShowOnly Returns or sets the only show components with attribute toggle
Type Returns or sets the option for the Assembly drawing operation
ViewLocation Returns or sets the view location
ViewOption Returns or sets the option for view tools
WizardType Returns or sets the wizard type attribute

Methods

Method Description
AddSectionView The option for add section view
AddView The option for add view
AssignAttr Assign attribute
Commit Commits any edits that have been applied to the builder.
CreateDrawing Create drawing
CreateSectionView Create section view
CreateView Create view
CreateViewToShowComponents Create view to show components
DeleteSheet Delete the sheet
DeleteView Delete view
Destroy Deletes the builder, and cleans up any objects created by the builder.
EditDrawing Edit drawing
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.
NewMasterModelFile Create a new master model file
OpenMasterModelFile Open the master model file
RetrieveSheet Retrieve the sheet
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

AssemblyDrawingBuilderAttributeNames Enumeration Specifies the attribute name
AssemblyDrawingBuilderAttributeValues Enumeration Specifies the attribute value.
AssemblyDrawingBuilderDrawingCreateOrEdit Enumeration Specifies the sheet operation.
AssemblyDrawingBuilderDrawingTypes Enumeration Specifies the drawing type.
AssemblyDrawingBuilderModelViewToUseValue Enumeration Specifies the model view to use.
AssemblyDrawingBuilderTypes Enumeration Specifies the filter of assembly.
AssemblyDrawingBuilderViewOptionValue Enumeration Specifies the view options.

Property Detail

DeleteButtonClicked

AssemblyDrawingBuilder.DeleteButtonClicked

Returns or sets the delete button clicked attribute

-------------------------------------

Getter Method

Signature DeleteButtonClicked

Returns:
Return type:bool

New in version NX8.5.0.

License requirements: None.

-------------------------------------

Setter Method

Signature DeleteButtonClicked

Parameters:deleteButtonClicked (bool) –

New in version NX8.5.0.

License requirements: ug_mold_design (“UG MOLD”) OR prog_die_wizard (“UG/Progressive Die Wizard”)

DoubleViewScale

AssemblyDrawingBuilder.DoubleViewScale

Returns or sets a double view scale

-------------------------------------

Getter Method

Signature DoubleViewScale

Returns:
Return type:float

New in version NX8.5.0.

License requirements: None.

-------------------------------------

Setter Method

Signature DoubleViewScale

Parameters:doubleViewScale (float) –

New in version NX8.5.0.

License requirements: ug_mold_design (“UG MOLD”) OR prog_die_wizard (“UG/Progressive Die Wizard”)

EnumAttributeName

AssemblyDrawingBuilder.EnumAttributeName

Returns or sets the option for select the attribute name

-------------------------------------

Getter Method

Signature EnumAttributeName

Returns:
Return type:NXOpen.Tooling.AssemblyDrawingBuilderAttributeNames

New in version NX8.5.0.

License requirements: None.

-------------------------------------

Setter Method

Signature EnumAttributeName

Parameters:enumAttributeName (NXOpen.Tooling.AssemblyDrawingBuilderAttributeNames) –

New in version NX8.5.0.

License requirements: ug_mold_design (“UG MOLD”) OR prog_die_wizard (“UG/Progressive Die Wizard”)

EnumAttributeValue

AssemblyDrawingBuilder.EnumAttributeValue

Returns or sets the option for select the attribute value

-------------------------------------

Getter Method

Signature EnumAttributeValue

Returns:
Return type:NXOpen.Tooling.AssemblyDrawingBuilderAttributeValues

New in version NX8.5.0.

License requirements: None.

-------------------------------------

Setter Method

Signature EnumAttributeValue

Parameters:enumAttributeValue (NXOpen.Tooling.AssemblyDrawingBuilderAttributeValues) –

New in version NX8.5.0.

License requirements: ug_mold_design (“UG MOLD”) OR prog_die_wizard (“UG/Progressive Die Wizard”)

EnumDrawingType

AssemblyDrawingBuilder.EnumDrawingType

Returns or sets the option for the assembly drawing operation

-------------------------------------

Getter Method

Signature EnumDrawingType

Returns:
Return type:NXOpen.Tooling.AssemblyDrawingBuilderDrawingTypes

New in version NX8.5.0.

License requirements: None.

-------------------------------------

Setter Method

Signature EnumDrawingType

Parameters:enumDrawingType (NXOpen.Tooling.AssemblyDrawingBuilderDrawingTypes) –

New in version NX8.5.0.

License requirements: ug_mold_design (“UG MOLD”) OR prog_die_wizard (“UG/Progressive Die Wizard”)

EnumSheets

AssemblyDrawingBuilder.EnumSheets

Returns or sets the option for select the sheet

-------------------------------------

Getter Method

Signature EnumSheets

Returns:
Return type:NXOpen.Tooling.AssemblyDrawingBuilderDrawingCreateOrEdit

New in version NX8.5.0.

License requirements: None.

-------------------------------------

Setter Method

Signature EnumSheets

Parameters:enumSheets (NXOpen.Tooling.AssemblyDrawingBuilderDrawingCreateOrEdit) –

New in version NX8.5.0.

License requirements: ug_mold_design (“UG MOLD”) OR prog_die_wizard (“UG/Progressive Die Wizard”)

ModelViewToUse

AssemblyDrawingBuilder.ModelViewToUse

Returns or sets the option for model view to use

-------------------------------------

Getter Method

Signature ModelViewToUse

Returns:
Return type:NXOpen.Tooling.AssemblyDrawingBuilderModelViewToUseValue

New in version NX8.5.0.

License requirements: None.

-------------------------------------

Setter Method

Signature ModelViewToUse

Parameters:modelViewToUseValue (NXOpen.Tooling.AssemblyDrawingBuilderModelViewToUseValue) –

New in version NX8.5.0.

License requirements: ug_mold_design (“UG MOLD”) OR prog_die_wizard (“UG/Progressive Die Wizard”)

ScaleModified

AssemblyDrawingBuilder.ScaleModified

Returns or sets the scale modified attribute

-------------------------------------

Getter Method

Signature ScaleModified

Returns:
Return type:bool

New in version NX8.5.0.

License requirements: None.

-------------------------------------

Setter Method

Signature ScaleModified

Parameters:scaleModified (bool) –

New in version NX8.5.0.

License requirements: ug_mold_design (“UG MOLD”) OR prog_die_wizard (“UG/Progressive Die Wizard”)

SectionViewButtonClicked

AssemblyDrawingBuilder.SectionViewButtonClicked

Returns or sets the section view button clicked attribute

-------------------------------------

Getter Method

Signature SectionViewButtonClicked

Returns:
Return type:bool

New in version NX8.5.0.

License requirements: None.

-------------------------------------

Setter Method

Signature SectionViewButtonClicked

Parameters:sectionViewButtonClicked (bool) –

New in version NX8.5.0.

License requirements: ug_mold_design (“UG MOLD”) OR prog_die_wizard (“UG/Progressive Die Wizard”)

StringFilterRule

AssemblyDrawingBuilder.StringFilterRule

Returns or sets the Filter rule

-------------------------------------

Getter Method

Signature StringFilterRule

Returns:
Return type:str

New in version NX8.5.0.

License requirements: None.

-------------------------------------

Setter Method

Signature StringFilterRule

Parameters:stringFilterRule (str) –

New in version NX8.5.0.

License requirements: ug_mold_design (“UG MOLD”) OR prog_die_wizard (“UG/Progressive Die Wizard”)

StringNameRule

AssemblyDrawingBuilder.StringNameRule

Returns or sets the string name rule

-------------------------------------

Getter Method

Signature StringNameRule

Returns:
Return type:str

New in version NX8.5.0.

License requirements: None.

-------------------------------------

Setter Method

Signature StringNameRule

Parameters:stringNameRule (str) –

New in version NX8.5.0.

License requirements: ug_mold_design (“UG MOLD”) OR prog_die_wizard (“UG/Progressive Die Wizard”)

StringSheetName

AssemblyDrawingBuilder.StringSheetName

Returns or sets the sheet name

-------------------------------------

Getter Method

Signature StringSheetName

Returns:
Return type:str

New in version NX8.5.0.

License requirements: None.

-------------------------------------

Setter Method

Signature StringSheetName

Parameters:stringSheetName (str) –

New in version NX8.5.0.

License requirements: ug_mold_design (“UG MOLD”) OR prog_die_wizard (“UG/Progressive Die Wizard”)

TgShowA

AssemblyDrawingBuilder.TgShowA

Returns or sets the A attribute

-------------------------------------

Getter Method

Signature TgShowA

Returns:
Return type:bool

New in version NX8.5.0.

License requirements: None.

-------------------------------------

Setter Method

Signature TgShowA

Parameters:tgShowA (bool) –

New in version NX8.5.0.

License requirements: ug_mold_design (“UG MOLD”) OR prog_die_wizard (“UG/Progressive Die Wizard”)

TgShowB

AssemblyDrawingBuilder.TgShowB

Returns or sets the B attribute

-------------------------------------

Getter Method

Signature TgShowB

Returns:
Return type:bool

New in version NX8.5.0.

License requirements: None.

-------------------------------------

Setter Method

Signature TgShowB

Parameters:tgShowB (bool) –

New in version NX8.5.0.

License requirements: ug_mold_design (“UG MOLD”) OR prog_die_wizard (“UG/Progressive Die Wizard”)

ToggleBlankComponentsWithAttribute

AssemblyDrawingBuilder.ToggleBlankComponentsWithAttribute

Returns or sets the blank components with attribute

-------------------------------------

Getter Method

Signature ToggleBlankComponentsWithAttribute

Returns:
Return type:bool

New in version NX8.5.0.

License requirements: None.

-------------------------------------

Setter Method

Signature ToggleBlankComponentsWithAttribute

Parameters:toggleBlankComponentsWithAttribute (bool) –

New in version NX8.5.0.

License requirements: ug_mold_design (“UG MOLD”) OR prog_die_wizard (“UG/Progressive Die Wizard”)

ToggleListDependents

AssemblyDrawingBuilder.ToggleListDependents

Returns or sets the List dependents

-------------------------------------

Getter Method

Signature ToggleListDependents

Returns:
Return type:bool

New in version NX8.5.0.

License requirements: None.

-------------------------------------

Setter Method

Signature ToggleListDependents

Parameters:toggleListDependents (bool) –

New in version NX8.5.0.

License requirements: ug_mold_design (“UG MOLD”) OR prog_die_wizard (“UG/Progressive Die Wizard”)

ToggleShowOnly

AssemblyDrawingBuilder.ToggleShowOnly

Returns or sets the only show components with attribute toggle

-------------------------------------

Getter Method

Signature ToggleShowOnly

Returns:
Return type:bool

New in version NX8.5.0.

License requirements: None.

-------------------------------------

Setter Method

Signature ToggleShowOnly

Parameters:showOnly (bool) –

New in version NX8.5.0.

License requirements: ug_mold_design (“UG MOLD”) OR prog_die_wizard (“UG/Progressive Die Wizard”)

Type

AssemblyDrawingBuilder.Type

Returns or sets the option for the Assembly drawing operation

-------------------------------------

Getter Method

Signature Type

Returns:
Return type:NXOpen.Tooling.AssemblyDrawingBuilderTypes

New in version NX8.5.0.

License requirements: None.

-------------------------------------

Setter Method

Signature Type

Parameters:type (NXOpen.Tooling.AssemblyDrawingBuilderTypes) –

New in version NX8.5.0.

License requirements: ug_mold_design (“UG MOLD”) OR prog_die_wizard (“UG/Progressive Die Wizard”)

ViewLocation

AssemblyDrawingBuilder.ViewLocation

Returns or sets the view location

-------------------------------------

Getter Method

Signature ViewLocation

Returns:
Return type:NXOpen.Point

New in version NX8.5.0.

License requirements: None.

-------------------------------------

Setter Method

Signature ViewLocation

Parameters:viewLocation (NXOpen.Point) –

New in version NX8.5.0.

License requirements: ug_mold_design (“UG MOLD”) OR prog_die_wizard (“UG/Progressive Die Wizard”)

ViewOption

AssemblyDrawingBuilder.ViewOption

Returns or sets the option for view tools

-------------------------------------

Getter Method

Signature ViewOption

Returns:
Return type:NXOpen.Tooling.AssemblyDrawingBuilderViewOptionValue

New in version NX8.5.0.

License requirements: None.

-------------------------------------

Setter Method

Signature ViewOption

Parameters:viewOptionValue (NXOpen.Tooling.AssemblyDrawingBuilderViewOptionValue) –

New in version NX8.5.0.

License requirements: ug_mold_design (“UG MOLD”) OR prog_die_wizard (“UG/Progressive Die Wizard”)

WizardType

AssemblyDrawingBuilder.WizardType

Returns or sets the wizard type attribute

-------------------------------------

Getter Method

Signature WizardType

Returns:
Return type:int

New in version NX8.5.0.

License requirements: None.

-------------------------------------

Setter Method

Signature WizardType

Parameters:wizardType (int) –

New in version NX8.5.0.

License requirements: ug_mold_design (“UG MOLD”) OR prog_die_wizard (“UG/Progressive Die Wizard”)

Method Detail

AddSectionView

AssemblyDrawingBuilder.AddSectionView

The option for add section view

Signature AddSectionView()

New in version NX8.5.0.

License requirements: ug_mold_design (“UG MOLD”) OR prog_die_wizard (“UG/Progressive Die Wizard”)

AddView

AssemblyDrawingBuilder.AddView

The option for add view

Signature AddView(viewTag, attrName, componentType)

Parameters:
  • viewTag (NXOpen.NXObject) –
  • attrName (str) –
  • componentType (list of str) –

New in version NX8.5.0.

License requirements: ug_mold_design (“UG MOLD”) OR prog_die_wizard (“UG/Progressive Die Wizard”)

AssignAttr

AssemblyDrawingBuilder.AssignAttr

Assign attribute

Signature AssignAttr(selectdObjs, attrName, attrValue)

Parameters:
  • selectdObjs (list of NXOpen.NXObject) –
  • attrName (str) –
  • attrValue (str) –

New in version NX8.5.0.

License requirements: ug_mold_design (“UG MOLD”) OR prog_die_wizard (“UG/Progressive Die Wizard”)

CreateDrawing

AssemblyDrawingBuilder.CreateDrawing

Create drawing

Signature CreateDrawing(sheetName, templateName)

Parameters:
  • sheetName (str) –
  • templateName (str) –

New in version NX8.5.0.

License requirements: ug_mold_design (“UG MOLD”) OR prog_die_wizard (“UG/Progressive Die Wizard”)

CreateSectionView

AssemblyDrawingBuilder.CreateSectionView

Create section view

Signature CreateSectionView(viewName, parentView, stepDirection, arrowdirection, pointX, pointY, pointZ, segmentType, attrName, attrValueList)

Parameters:
  • viewName (str) –
  • parentView (NXOpen.NXObject) –
  • stepDirection (list of float) –
  • arrowdirection (list of float) –
  • pointX (list of float) –
  • pointY (list of float) –
  • pointZ (list of float) –
  • segmentType (list of int) –
  • attrName (str) –
  • attrValueList (list of str) –

New in version NX8.5.0.

License requirements: ug_mold_design (“UG MOLD”) OR prog_die_wizard (“UG/Progressive Die Wizard”)

CreateView

AssemblyDrawingBuilder.CreateView

Create view

Signature CreateView(viewName, viewScale)

Parameters:
  • viewName (str) –
  • viewScale (float) –

New in version NX8.5.0.

License requirements: ug_mold_design (“UG MOLD”) OR prog_die_wizard (“UG/Progressive Die Wizard”)

CreateViewToShowComponents

AssemblyDrawingBuilder.CreateViewToShowComponents

Create view to show components

Signature CreateViewToShowComponents(viewName)

Parameters:viewName (str) –
Returns:
Return type:NXOpen.NXObject

New in version NX8.5.0.

License requirements: ug_mold_design (“UG MOLD”) OR prog_die_wizard (“UG/Progressive Die Wizard”)

DeleteSheet

AssemblyDrawingBuilder.DeleteSheet

Delete the sheet

Signature DeleteSheet(selectedSheetName)

Parameters:selectedSheetName (str) –

New in version NX8.5.0.

License requirements: ug_mold_design (“UG MOLD”) OR prog_die_wizard (“UG/Progressive Die Wizard”)

DeleteView

AssemblyDrawingBuilder.DeleteView

Delete view

Signature DeleteView(viewName)

Parameters:viewName (str) –

New in version NX8.5.0.

License requirements: ug_mold_design (“UG MOLD”) OR prog_die_wizard (“UG/Progressive Die Wizard”)

EditDrawing

AssemblyDrawingBuilder.EditDrawing

Edit drawing

Signature EditDrawing(sheetName, templateName)

Parameters:
  • sheetName (str) –
  • templateName (str) –

New in version NX8.5.0.

License requirements: ug_mold_design (“UG MOLD”) OR prog_die_wizard (“UG/Progressive Die Wizard”)

NewMasterModelFile

AssemblyDrawingBuilder.NewMasterModelFile

Create a new master model file

Signature NewMasterModelFile(masterModelFileName)

Parameters:masterModelFileName (str) –

New in version NX8.5.0.

License requirements: ug_mold_design (“UG MOLD”) OR prog_die_wizard (“UG/Progressive Die Wizard”)

OpenMasterModelFile

AssemblyDrawingBuilder.OpenMasterModelFile

Open the master model file

Signature OpenMasterModelFile(masterModelFileName)

Parameters:masterModelFileName (str) –

New in version NX8.5.0.

License requirements: ug_mold_design (“UG MOLD”) OR prog_die_wizard (“UG/Progressive Die Wizard”)

RetrieveSheet

AssemblyDrawingBuilder.RetrieveSheet

Retrieve the sheet

Signature RetrieveSheet(selectedSheetName)

Parameters:selectedSheetName (str) –

New in version NX8.5.0.

License requirements: ug_mold_design (“UG MOLD”) OR prog_die_wizard (“UG/Progressive Die Wizard”)

Validate

AssemblyDrawingBuilder.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.