DatumPlaneGridBuilder Class

class NXOpen.Display.DatumPlaneGridBuilder

Bases: NXOpen.Display.BoundedGridBuilder

Represents the builder for adding a datum plane grid NXOpen.Display.DatumPlaneGrid to a datum plane.

To create a new instance of this class, use NXOpen.Display.GridCollection.CreateDatumPlaneGridBuilder()

Default values.

Property Value
Associative 1
GridOrientation Custom
LabelReference Local
MajorLineSpacing 100 (millimeters part), 1 (inches part)
MajorLineStyle Solid
MajorLineWeight Normal
MinorLineStyle Dashed
MinorLineWeight Thin
MinorLinesPerMajor 1
Show 1
ShowLabel Always
ShowMajorLines 1
ShowOnTop 0
SnapPointsPerMinor 1
SnapToGrid 0

New in version NX6.0.0.

Properties

Property Description
Associative Returns or sets the associative
GridOrientation Returns or sets the grid orientation
LabelReference Returns or sets the label reference
LineColor Returns or sets the line color
LocalOrigin Returns or sets the local origin
MajorLineSpacing Returns or sets the major line spacing
MajorLineStyle Returns or sets the major line style
MajorLineWeight Returns or sets the major line weight
MinorLineStyle Returns or sets the minor line style
MinorLineWeight Returns or sets the minor line weight
MinorLinesPerMajor Returns or sets the minor lines per major
SectionCurveSettings Returns the curve settings builder
Show Returns or sets the show
ShowLabel Returns or sets the show labels
ShowMajorLines Returns or sets the show major lines
ShowOnTop Returns or sets the show on top
SnapPointsPerMinor Returns or sets the snap points per minor
SnapToGrid Returns or sets the snap to grid
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.
GetCornerPoints Gets corner points of the grid
GetDatumPlanes Get the list of datum planes.
GetObject Returns the object currently being edited by this builder.
InheritSettings Inherits the settings from the specified grid.
SaveCurves Creates curves by intersecting the bounded grid with all bodies in the part of the grid object.
SetCornerPoints Sets corner points of the grid
SetDatumPlanes Set the list of datum planes.
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

DatumPlaneGridBuilderGridOrientationType Enumeration Specifies grid orientation option to be used for grid display.

Property Detail

GridOrientation

DatumPlaneGridBuilder.GridOrientation

Returns or sets the grid orientation

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

Getter Method

Signature GridOrientation

Returns:
Return type:NXOpen.Display.DatumPlaneGridBuilderGridOrientationType

New in version NX6.0.0.

License requirements: None.

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

Setter Method

Signature GridOrientation

Parameters:gridOrientation (NXOpen.Display.DatumPlaneGridBuilderGridOrientationType) –

New in version NX6.0.0.

License requirements: None.

Method Detail

GetDatumPlanes

DatumPlaneGridBuilder.GetDatumPlanes

Get the list of datum planes.

Signature GetDatumPlanes()

Returns:datum plane list
Return type:list of NXOpen.DatumPlane

New in version NX6.0.0.

License requirements: None.

SetDatumPlanes

DatumPlaneGridBuilder.SetDatumPlanes

Set the list of datum planes.

When editing an existing datum plane grid, only a single datum plane may be set and it must meet the following conditions: - one that currently does not have a grid associated to it - one that matches NXOpen.Display.DatumPlaneGridBuilder.GetDatumPlanes()

Signature SetDatumPlanes(datumPlanes)

Parameters:datumPlanes (list of NXOpen.DatumPlane) – datum plane list

New in version NX6.0.0.

License requirements: None.

Validate

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