CutViewCollection Class¶
-
class
NXOpen.
CutViewCollection
¶ Bases:
object
Represents a collection of
NXOpen.CutView
objects.To obtain an instance of this class, refer to
NXOpen.Part
New in version NX4.0.0.
Methods¶
Method | Description |
---|---|
CreateLinkedSectionView | Create a linked section view. |
DeleteCutView | Delete the Master Cut feature associated with a cut view. |
FindObject | Finds the NXOpen.CutView with the given identifier as recorded in a journal. |
GetCutViewsOfObject | Find the cut views of an object. |
IsCutBody | Return a true if the body is a cut body. |
IsCutBodyOfView | Return a true if the body is a cut body in the view. |
IsToolBody | Return a true if the body is a tool body. |
IsUncutBodyOfView | Return a true if the body is an uncut body in the view. |
UpdateCutView | Update the Master Cut feature associated with a cut view. |
Method Detail¶
CreateLinkedSectionView¶
-
CutViewCollection.
CreateLinkedSectionView
¶ Create a linked section view.
Signature
CreateLinkedSectionView(view)
Parameters: view ( NXOpen.CutView
) – Cut viewReturns: Return type: NXOpen.ModelingView
New in version NX5.0.0.
License requirements: None.
DeleteCutView¶
-
CutViewCollection.
DeleteCutView
¶ Delete the Master Cut feature associated with a cut view.
Signature
DeleteCutView(view)
Parameters: view ( NXOpen.CutView
) – Cut viewNew in version NX4.0.0.
License requirements: None.
FindObject¶
-
CutViewCollection.
FindObject
¶ Finds the
NXOpen.CutView
with the given identifier as recorded in a journal.An object may not return the same value as its JournalIdentifier in different versions of the software. However, newer versions of the software should find the same object when FindObject is passed older versions of its journal identifier. In general, this method should not be used in handwritten code and exists to support record and playback of journals.
An exception will be thrown if no object can be found with the given journal identifier.
Signature
FindObject(journalIdentifier)
Parameters: journalIdentifier (str) – Identifier of the cut view to be found Returns: View with this identifier Return type: NXOpen.CutView
New in version NX4.0.0.
License requirements: None.
GetCutViewsOfObject¶
-
CutViewCollection.
GetCutViewsOfObject
¶ Find the cut views of an object.
Signature
GetCutViewsOfObject(body)
Parameters: body ( NXOpen.Body
) –Returns: Return type: list of NXOpen.DisplayableObject
New in version NX5.0.0.
License requirements: None.
IsCutBody¶
-
CutViewCollection.
IsCutBody
¶ Return a “true” if the body is a cut body.
Signature
IsCutBody(body)
Parameters: body ( NXOpen.Body
) –Returns: Return type: bool New in version NX5.0.0.
License requirements: None.
IsCutBodyOfView¶
-
CutViewCollection.
IsCutBodyOfView
¶ Return a “true” if the body is a cut body in the view.
Signature
IsCutBodyOfView(body, view)
Parameters: - body (
NXOpen.Body
) – - view (
NXOpen.CutView
) – Cut view
Returns: a tuple
Return type: A tuple consisting of (isCutBody, uncutBody). isCutBody is a bool. uncutBody is a
NXOpen.Body
. Corresponding Uncut bodyNew in version NX5.0.0.
License requirements: None.
- body (
IsToolBody¶
-
CutViewCollection.
IsToolBody
¶ Return a “true” if the body is a tool body.
Signature
IsToolBody(body)
Parameters: body ( NXOpen.Body
) –Returns: Return type: bool New in version NX5.0.0.
License requirements: None.
IsUncutBodyOfView¶
-
CutViewCollection.
IsUncutBodyOfView
¶ Return a “true” if the body is an uncut body in the view.
Signature
IsUncutBodyOfView(body, view)
Parameters: - body (
NXOpen.Body
) – - view (
NXOpen.CutView
) – Cut view
Returns: a tuple
Return type: A tuple consisting of (isUncutBody, cutBody). isUncutBody is a bool. cutBody is a
NXOpen.Body
. Corresponding Cut bodyNew in version NX5.0.0.
License requirements: None.
- body (
UpdateCutView¶
-
CutViewCollection.
UpdateCutView
¶ Update the Master Cut feature associated with a cut view.
Signature
UpdateCutView(view)
Parameters: view ( NXOpen.CutView
) – Cut viewNew in version NX4.0.0.
License requirements: None.