ReplaceSolidBuilder Class¶
-
class
NXOpen.Tooling.
ReplaceSolidBuilder
¶ Bases:
NXOpen.Builder
Represents a replace solid operation.
To create a new instance of this class, use
NXOpen.Tooling.ReplaceSolidCollection.CreateReplaceSolidBuilder()
Default values.
Property Value BoundingBoxBuilder.Clearance.Value (deprecated) 1.0 (millimeters part), 0.1 (inches part) BoundingBoxBuilder.OffsetNegativeX.Value (deprecated) 1.0 (millimeters part), 0.1 (inches part) BoundingBoxBuilder.OffsetNegativeY.Value (deprecated) 1.0 (millimeters part), 0.1 (inches part) BoundingBoxBuilder.OffsetNegativeZ.Value (deprecated) 1.0 (millimeters part), 0.1 (inches part) BoundingBoxBuilder.OffsetPositiveX.Value (deprecated) 1.0 (millimeters part), 0.1 (inches part) BoundingBoxBuilder.OffsetPositiveY.Value (deprecated) 1.0 (millimeters part), 0.1 (inches part) BoundingBoxBuilder.OffsetPositiveZ.Value (deprecated) 1.0 (millimeters part), 0.1 (inches part) BoundingBoxBuilder.XValue.Value (deprecated) 10 (millimeters part), 1.0 (inches part) BoundingBoxBuilder.YValue.Value (deprecated) 10 (millimeters part), 1.0 (inches part) BoundingBoxBuilder.ZValue.Value (deprecated) 10 (millimeters part), 1.0 (inches part) BoxFaceToggle 1 RemoveParameter 0 New in version NX8.0.0.
Properties¶
Property | Description |
---|---|
BoundingBoxBuilder | Returns or sets the bounding box feature builder. |
BoxFaceToggle | Returns or sets the face used for box creation. |
Clearance | Returns the clearance value for box in six directions. |
FaceReverseDirection | Returns or sets the face reverse direction status. |
RemoveParameter | Returns or sets the option to remove parameter after feature creation. |
SelFace | Returns the selected replacement face. |
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. |
EditBox | Edit bounding box. |
GetBoundedBoxBuilder | Asks the new bounded box feature 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. |
ReverseFaceDirectionCallBack | Update face information when set to reverse face direction. |
SetBoundedBoxBuilder | Sets the new bounded box feature builder. |
ShowResults | Updates the model to reflect the result of an edit to the model for all builders that support showing results. |
UpdateFaceListState | Update face state in ReplaceSolidFaceList. |
UpdateForFaceChange | Update bounding box and face information. |
Validate | Validate whether the inputs to the component are sufficient for commit to be called. |
Property Detail¶
BoundingBoxBuilder¶
-
ReplaceSolidBuilder.
BoundingBoxBuilder
¶ Returns or sets the bounding box feature builder.
-------------------------------------
Getter Method
Signature
BoundingBoxBuilder
Returns: Return type: NXOpen.Tooling.CreateBoxBuilder
New in version NX8.0.0.
Deprecated since version NX10.0.0: Use
Tooling.ReplaceSolidBuilder.GetBoundedBoxBuilder()
instead.License requirements: ug_mold_design (“UG MOLD”) OR nx_electrode_wizard (“NX Electrode Wizard”) OR prog_die_wizard (“UG/Progressive Die Wizard”)
-------------------------------------
Setter Method
Signature
BoundingBoxBuilder
Parameters: boxBuilder ( NXOpen.Tooling.CreateBoxBuilder
) –New in version NX8.0.0.
Deprecated since version NX10.0.0: Use
Tooling.ReplaceSolidBuilder.SetBoundedBoxBuilder()
instead.License requirements: ug_mold_design (“UG MOLD”) OR nx_electrode_wizard (“NX Electrode Wizard”) OR prog_die_wizard (“UG/Progressive Die Wizard”)
BoxFaceToggle¶
-
ReplaceSolidBuilder.
BoxFaceToggle
¶ Returns or sets the face used for box creation.
-------------------------------------
Getter Method
Signature
BoxFaceToggle
Returns: Return type: bool New in version NX8.0.0.
License requirements: ug_mold_design (“UG MOLD”) OR nx_electrode_wizard (“NX Electrode Wizard”) OR prog_die_wizard (“UG/Progressive Die Wizard”)
-------------------------------------
Setter Method
Signature
BoxFaceToggle
Parameters: boxFaceToggle (bool) – New in version NX8.0.0.
License requirements: ug_mold_design (“UG MOLD”) OR nx_electrode_wizard (“NX Electrode Wizard”) OR prog_die_wizard (“UG/Progressive Die Wizard”)
Clearance¶
-
ReplaceSolidBuilder.
Clearance
¶ Returns the clearance value for box in six directions.
-------------------------------------
Getter Method
Signature
Clearance
Returns: Return type: NXOpen.Expression
New in version NX8.0.0.
License requirements: ug_mold_design (“UG MOLD”) OR nx_electrode_wizard (“NX Electrode Wizard”) OR prog_die_wizard (“UG/Progressive Die Wizard”)
FaceReverseDirection¶
-
ReplaceSolidBuilder.
FaceReverseDirection
¶ Returns or sets the face reverse direction status.
-------------------------------------
Getter Method
Signature
FaceReverseDirection
Returns: Return type: bool New in version NX8.0.0.
License requirements: ug_mold_design (“UG MOLD”) OR nx_electrode_wizard (“NX Electrode Wizard”) OR prog_die_wizard (“UG/Progressive Die Wizard”)
-------------------------------------
Setter Method
Signature
FaceReverseDirection
Parameters: faceReverseDirection (bool) – New in version NX8.0.0.
License requirements: ug_mold_design (“UG MOLD”) OR nx_electrode_wizard (“NX Electrode Wizard”) OR prog_die_wizard (“UG/Progressive Die Wizard”)
RemoveParameter¶
-
ReplaceSolidBuilder.
RemoveParameter
¶ Returns or sets the option to remove parameter after feature creation.
-------------------------------------
Getter Method
Signature
RemoveParameter
Returns: Return type: bool New in version NX8.0.0.
License requirements: ug_mold_design (“UG MOLD”) OR nx_electrode_wizard (“NX Electrode Wizard”) OR prog_die_wizard (“UG/Progressive Die Wizard”)
-------------------------------------
Setter Method
Signature
RemoveParameter
Parameters: removeParameter (bool) – New in version NX8.0.0.
License requirements: ug_mold_design (“UG MOLD”) OR nx_electrode_wizard (“NX Electrode Wizard”) OR prog_die_wizard (“UG/Progressive Die Wizard”)
SelFace¶
-
ReplaceSolidBuilder.
SelFace
¶ Returns the selected replacement face.
-------------------------------------
Getter Method
Signature
SelFace
Returns: Return type: NXOpen.SelectFaceList
New in version NX8.0.0.
License requirements: ug_mold_design (“UG MOLD”) OR nx_electrode_wizard (“NX Electrode Wizard”) OR prog_die_wizard (“UG/Progressive Die Wizard”)
Method Detail¶
EditBox¶
-
ReplaceSolidBuilder.
EditBox
¶ Edit bounding box.
Signature
EditBox()
New in version NX8.0.0.
License requirements: ug_mold_design (“UG MOLD”) OR nx_electrode_wizard (“NX Electrode Wizard”) OR prog_die_wizard (“UG/Progressive Die Wizard”)
GetBoundedBoxBuilder¶
-
ReplaceSolidBuilder.
GetBoundedBoxBuilder
¶ Asks the new bounded box feature builder.
Signature
GetBoundedBoxBuilder()
Returns: Return type: NXOpen.Features.ToolingBoxBuilder
New in version NX10.0.0.
License requirements: ug_mold_design (“UG MOLD”) OR nx_electrode_wizard (“NX Electrode Wizard”) OR prog_die_wizard (“UG/Progressive Die Wizard”)
ReverseFaceDirectionCallBack¶
-
ReplaceSolidBuilder.
ReverseFaceDirectionCallBack
¶ Update face information when set to reverse face direction.
Signature
ReverseFaceDirectionCallBack(faceEid, state)
Parameters: - faceEid (
NXOpen.NXObject
) – placement face eid - state (int) – state for reverse face direction
New in version NX8.0.0.
License requirements: ug_mold_design (“UG MOLD”) OR nx_electrode_wizard (“NX Electrode Wizard”) OR prog_die_wizard (“UG/Progressive Die Wizard”)
- faceEid (
SetBoundedBoxBuilder¶
-
ReplaceSolidBuilder.
SetBoundedBoxBuilder
¶ Sets the new bounded box feature builder.
Signature
SetBoundedBoxBuilder(boxBuilder)
Parameters: boxBuilder ( NXOpen.Features.ToolingBoxBuilder
) –New in version NX10.0.0.
License requirements: ug_mold_design (“UG MOLD”) OR nx_electrode_wizard (“NX Electrode Wizard”) OR prog_die_wizard (“UG/Progressive Die Wizard”)
UpdateFaceListState¶
-
ReplaceSolidBuilder.
UpdateFaceListState
¶ Update face state in ReplaceSolidFaceList.
Signature
UpdateFaceListState(faceEid, reverse, faceForBoxFlag, action)
Parameters: - faceEid (
NXOpen.NXObject
) – placement face eid - reverse (int) – flag for reverse face direction,0–not reversed, 1–reversed, -1–no change
- faceForBoxFlag (int) – face for creating box flag, 0–not , 1–yes, -1–no change
- action (int) – action type, 0–add, 1–modify, -1–remove
New in version NX8.0.0.
License requirements: ug_mold_design (“UG MOLD”) OR nx_electrode_wizard (“NX Electrode Wizard”) OR prog_die_wizard (“UG/Progressive Die Wizard”)
- faceEid (
UpdateForFaceChange¶
-
ReplaceSolidBuilder.
UpdateForFaceChange
¶ Update bounding box and face information.
Signature
UpdateForFaceChange()
New in version NX8.0.0.
License requirements: ug_mold_design (“UG MOLD”) OR nx_electrode_wizard (“NX Electrode Wizard”) OR prog_die_wizard (“UG/Progressive Die Wizard”)
Validate¶
-
ReplaceSolidBuilder.
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.