SheetBuilder Class

class NXOpen.Diagramming.SheetBuilder

Bases: NXOpen.Diagramming.BaseObjectBuilder

Represents a SheetBuilder.

To create a new instance of this class, use NXOpen.Diagramming.SheetCollection.CreateSheetBuilder()

New in version NX10.0.0.

Properties

Property Description
AllowJumpers Returns or sets the flag if jumpers are allowed to use where connections cross.
JumperType Returns or sets the jumper type of the sheet.
Opacity Returns or sets the opacity of sheet.
Tag Returns the Tag for this object.
Units Returns or sets the units of the 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.
GetFeatures Gets all features.
GetObject Returns the object currently being edited by this builder.
GetSheetElements Gets all sheet elements.
GetSize Gets the height and width of this sheet.
SetSize Sets the height and width of this 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.

Property Detail

AllowJumpers

SheetBuilder.AllowJumpers

Returns or sets the flag if jumpers are allowed to use where connections cross.

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

Getter Method

Signature AllowJumpers()

Returns:
Return type:bool

New in version NX10.0.0.

License requirements: None.

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

Setter Method

Signature AllowJumpers(allowJumper)

Parameters:allowJumper (bool) –

New in version NX10.0.0.

License requirements: None.

JumperType

SheetBuilder.JumperType

Returns or sets the jumper type of the sheet.

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

Getter Method

Signature JumperType()

Returns:
Return type:NXOpen.Diagramming.DiagrammingJumpertype

New in version NX11.0.0.

License requirements: None.

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

Setter Method

Signature JumperType(jumperType)

Parameters:jumperType (NXOpen.Diagramming.DiagrammingJumpertype) –

New in version NX11.0.0.

License requirements: None.

Opacity

SheetBuilder.Opacity

Returns or sets the opacity of sheet.

0.0 is completely transparent and 1.0 is completely opaque

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

Getter Method

Signature Opacity()

Returns:
Return type:float

New in version NX10.0.0.

License requirements: None.

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

Setter Method

Signature Opacity(opacity)

Parameters:opacity (float) –

New in version NX10.0.0.

License requirements: None.

Units

SheetBuilder.Units

Returns or sets the units of the sheet.

It could be either “meters” or “inches”.

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

Getter Method

Signature Units()

Returns:
Return type:NXOpen.Unit

New in version NX10.0.0.

License requirements: None.

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

Setter Method

Signature Units(unit)

Parameters:unit (NXOpen.Unit) –

New in version NX10.0.0.

License requirements: None.

Method Detail

GetFeatures

SheetBuilder.GetFeatures

Gets all features.

Signature GetFeatures()

Returns:
Return type:list of NXOpen.Diagramming.SheetElement

New in version NX10.0.0.

License requirements: None.

GetSheetElements

SheetBuilder.GetSheetElements

Gets all sheet elements.

Signature GetSheetElements()

Returns:
Return type:list of NXOpen.Diagramming.SheetElement

New in version NX10.0.0.

License requirements: None.

GetSize

SheetBuilder.GetSize

Gets the height and width of this sheet.

Signature GetSize()

Returns:a tuple
Return type:A tuple consisting of (height, width). height is a float. width is a float.

New in version NX10.0.0.

License requirements: None.

SetSize

SheetBuilder.SetSize

Sets the height and width of this sheet.

Signature SetSize(height, width)

Parameters:
  • height (float) –
  • width (float) –

New in version NX10.0.0.

License requirements: None.

Validate

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