SpatialMapBuilder Class¶
-
class
NXOpen.Fields.SpatialMapBuilder¶ Bases:
NXOpen.BuilderRepresents a
NXOpen.Fields.SpatialMapbuilderUsed to create and or edit a
NXOpen.Fields.SpatialMap.To create a new instance of this class, use
NXOpen.Fields.FieldManager.CreateSpatialMapBuilder()New in version NX6.0.0.
Properties¶
| Property | Description |
|---|---|
| BoundedObjects | Returns the bounded objects |
| BoundingBoxMap | Returns or sets the bounding box map |
| ConstUObjects | Returns the list of NXOpen.Fields.PathObjects objects that define sections of constant u |
| ConstVObjects | Returns the list of NXOpen.Fields.PathObjects objects that define sections of constant v |
| ConstantUObjects | Returns the const uobjects |
| ConstantVObjects | Returns the const vobjects |
| CoordSystem | Returns or sets the csys |
| FaceTolerance | Returns the face tolerance for 3D degenerate surface maps |
| LatticePath | Returns the lattice path objects |
| MapSubtype | Returns or sets the map subtype |
| MapSubtypeMapping | Returns or sets the subtype mapping |
| MapType | Returns or sets the map type |
| MappingFaces | Returns the faces to be used as mapping objects |
| OppositeCorner | Returns or sets the opposite corner |
| Origin | Returns or sets the origin |
| ParametricPlaneMap | Returns or sets the parametric plane map |
| Tag | Returns the Tag for this object. |
Methods¶
| Method | Description |
|---|---|
| AutoTolerance | The method to set the face tolerance to a default value based on the current state of the field |
| Commit | Commits any edits that have been applied to the builder. |
| CreateLatticeMap | Create a lattice spatial map from the input datapoints array. |
| 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. |
Property Detail¶
BoundedObjects¶
-
SpatialMapBuilder.BoundedObjects¶ Returns the bounded objects
-------------------------------------Getter Method
Signature
BoundedObjectsReturns: Return type: NXOpen.SelectNXObjectListNew in version NX6.0.0.
License requirements: None.
BoundingBoxMap¶
-
SpatialMapBuilder.BoundingBoxMap¶ Returns or sets the bounding box map
-------------------------------------Getter Method
Signature
BoundingBoxMapReturns: Return type: NXOpen.Fields.SpatialMapBoundingBoxMapEnumNew in version NX6.0.0.
License requirements: None.
-------------------------------------Setter Method
Signature
BoundingBoxMapParameters: boundBoxMap ( NXOpen.Fields.SpatialMapBoundingBoxMapEnum) –New in version NX6.0.0.
License requirements: None.
ConstUObjects¶
-
SpatialMapBuilder.ConstUObjects¶ Returns the list of
NXOpen.Fields.PathObjectsobjects that define sections of constant u-------------------------------------Getter Method
Signature
ConstUObjectsReturns: Return type: NXOpen.Fields.PathObjectsListNew in version NX6.0.1.
License requirements: None.
ConstVObjects¶
-
SpatialMapBuilder.ConstVObjects¶ Returns the list of
NXOpen.Fields.PathObjectsobjects that define sections of constant v-------------------------------------Getter Method
Signature
ConstVObjectsReturns: Return type: NXOpen.Fields.PathObjectsListNew in version NX6.0.1.
License requirements: None.
ConstantUObjects¶
-
SpatialMapBuilder.ConstantUObjects¶ Returns the const uobjects
-------------------------------------Getter Method
Signature
ConstantUObjectsReturns: Return type: NXOpen.SelectNXObjectListNew in version NX6.0.0.
Deprecated since version NX6.0.1: Use
NXOpen.Fields.SpatialMapBuilder.ConstUObjects()instead.License requirements: None.
ConstantVObjects¶
-
SpatialMapBuilder.ConstantVObjects¶ Returns the const vobjects
-------------------------------------Getter Method
Signature
ConstantVObjectsReturns: Return type: NXOpen.SelectNXObjectListNew in version NX6.0.0.
Deprecated since version NX6.0.1: Use
NXOpen.Fields.SpatialMapBuilder.ConstVObjects()instead.License requirements: None.
CoordSystem¶
-
SpatialMapBuilder.CoordSystem¶ Returns or sets the csys
-------------------------------------Getter Method
Signature
CoordSystemReturns: Return type: NXOpen.CoordinateSystemNew in version NX6.0.0.
License requirements: None.
-------------------------------------Setter Method
Signature
CoordSystemParameters: csys ( NXOpen.CoordinateSystem) –New in version NX6.0.0.
License requirements: None.
FaceTolerance¶
-
SpatialMapBuilder.FaceTolerance¶ Returns the face tolerance for 3D degenerate surface maps
-------------------------------------Getter Method
Signature
FaceToleranceReturns: Return type: NXOpen.ExpressionNew in version NX8.5.0.
License requirements: None.
LatticePath¶
-
SpatialMapBuilder.LatticePath¶ Returns the lattice path objects
-------------------------------------Getter Method
Signature
LatticePathReturns: Return type: NXOpen.Fields.PathObjectsNew in version NX6.0.1.
License requirements: None.
MapSubtype¶
-
SpatialMapBuilder.MapSubtype¶ Returns or sets the map subtype
-------------------------------------Getter Method
Signature
MapSubtypeReturns: Return type: NXOpen.Fields.SpatialMapSubtypeEnumNew in version NX8.5.0.
License requirements: None.
-------------------------------------Setter Method
Signature
MapSubtypeParameters: mapSubType ( NXOpen.Fields.SpatialMapSubtypeEnum) –New in version NX8.5.0.
License requirements: None.
MapSubtypeMapping¶
-
SpatialMapBuilder.MapSubtypeMapping¶ Returns or sets the subtype mapping
-------------------------------------Getter Method
Signature
MapSubtypeMappingReturns: Return type: NXOpen.Fields.SpatialMapSubtypeMappingEnumNew in version NX8.5.0.
License requirements: None.
-------------------------------------Setter Method
Signature
MapSubtypeMappingParameters: mapSubTypeMapping ( NXOpen.Fields.SpatialMapSubtypeMappingEnum) –New in version NX8.5.0.
License requirements: None.
MapType¶
-
SpatialMapBuilder.MapType¶ Returns or sets the map type
-------------------------------------Getter Method
Signature
MapTypeReturns: Return type: NXOpen.Fields.SpatialMapTypeEnumNew in version NX6.0.0.
License requirements: None.
-------------------------------------Setter Method
Signature
MapTypeParameters: mapType ( NXOpen.Fields.SpatialMapTypeEnum) –New in version NX6.0.0.
License requirements: None.
MappingFaces¶
-
SpatialMapBuilder.MappingFaces¶ Returns the faces to be used as mapping objects
-------------------------------------Getter Method
Signature
MappingFacesReturns: Return type: NXOpen.SelectNXObjectListNew in version NX8.5.0.
License requirements: None.
OppositeCorner¶
-
SpatialMapBuilder.OppositeCorner¶ Returns or sets the opposite corner
-------------------------------------Getter Method
Signature
OppositeCornerReturns: Return type: NXOpen.PointNew in version NX6.0.0.
License requirements: None.
-------------------------------------Setter Method
Signature
OppositeCornerParameters: oppositeCorner ( NXOpen.Point) –New in version NX6.0.0.
License requirements: None.
Origin¶
-
SpatialMapBuilder.Origin¶ Returns or sets the origin
-------------------------------------Getter Method
Signature
OriginReturns: Return type: NXOpen.PointNew in version NX6.0.0.
License requirements: None.
-------------------------------------Setter Method
Signature
OriginParameters: origin ( NXOpen.Point) –New in version NX6.0.0.
License requirements: None.
ParametricPlaneMap¶
-
SpatialMapBuilder.ParametricPlaneMap¶ Returns or sets the parametric plane map
-------------------------------------Getter Method
Signature
ParametricPlaneMapReturns: Return type: NXOpen.Fields.SpatialMapParametricPlaneMapEnumNew in version NX6.0.0.
License requirements: None.
-------------------------------------Setter Method
Signature
ParametricPlaneMapParameters: parmPlaneMap ( NXOpen.Fields.SpatialMapParametricPlaneMapEnum) –New in version NX6.0.0.
License requirements: None.
Method Detail¶
AutoTolerance¶
-
SpatialMapBuilder.AutoTolerance¶ The method to set the face tolerance to a default value based on the current state of the field
Signature
AutoTolerance()New in version NX8.5.0.
License requirements: None.
CreateLatticeMap¶
-
SpatialMapBuilder.CreateLatticeMap¶ Create a lattice spatial map from the input datapoints array.
The number of columns in the datapoints array is specified by numOfColumns, and should include the total of all independent and dependent columns. Note that the number of dependent columns can be zero. The independent domain must be x, y, z, xy, xz, yz or xyz and the number of columns must be greater than or equal to the count of the independent variables.
The number of rows of data in the datapoints array is calculated by dividing the number of data points by the number of columns.
If number of lattice columns is 1, then a parametric line based map will be created.
Otherwise the lattice will be a M x N u-v grid, where M is the number of lattice columns and N is calculated based on the number of rows in the data points array divded by the number of lattice columns
Signature
CreateLatticeMap(numOfLatticeColumn, numOfColumns, indepVarArray, datapoint)Parameters: - numOfLatticeColumn (int) –
- numOfColumns (int) –
- indepVarArray (list of
NXOpen.Fields.FieldVariable) – - datapoint (list of float) –
Returns: a tuple
Return type: A tuple consisting of (latticeMap, parameterizedDatapoints). latticeMap is a
NXOpen.Fields.SpatialMap. parameterizedDatapoints is a list of float.New in version NX12.0.0.
License requirements: None.
Validate¶
-
SpatialMapBuilder.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.