DraftingComponentSelectionBuilder Class

class NXOpen.Drawings.DraftingComponentSelectionBuilder

Bases: NXOpen.TaggedObject, NXOpen.GeometricUtilities.IComponentBuilder

This builder allows the user to select a view in which component objects can be designated as primary or secondary geometry

New in version NX11.0.0.

Properties

Property Description
ObjectType Returns or sets the object type
Objects Returns the selected objects (part occurrences) based on current object type
Part Returns or sets the part to use for populating the primary and secondary components object list
PartForKF Returns the part to use for populating the primary and secondary components object list
Tag Returns the Tag for this object.

Methods

Method Description
ClearSecondaryComponentList Clears the secondary component list.
InitializeListFromObject Initialize list of components from the input object’s components list.
ResetListToGlobal Reset list of components to those specified by Properties->Drawings->Secondary Geometry
Validate Validate whether the inputs to the component are sufficient for commit to be called.

Property Detail

ObjectType

DraftingComponentSelectionBuilder.ObjectType

Returns or sets the object type

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

Getter Method

Signature ObjectType

Returns:
Return type:NXOpen.Drawings.DraftingComponentSelectionBuilderGeometry

New in version NX11.0.0.

License requirements: None.

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

Setter Method

Signature ObjectType

Parameters:objectType (NXOpen.Drawings.DraftingComponentSelectionBuilderGeometry) –

New in version NX11.0.0.

License requirements: None.

Objects

DraftingComponentSelectionBuilder.Objects

Returns the selected objects (part occurrences) based on current object type

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

Getter Method

Signature Objects

Returns:list of part occurrences
Return type:NXOpen.SelectNXObjectList

New in version NX11.0.0.

License requirements: None.

Part

DraftingComponentSelectionBuilder.Part

Returns or sets the part to use for populating the primary and secondary components object list

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

Getter Method

Signature Part

Returns:
Return type:NXOpen.Part

New in version NX11.0.0.

License requirements: None.

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

Setter Method

Signature Part

Parameters:part (NXOpen.Part) –

New in version NX11.0.0.

License requirements: None.

PartForKF

DraftingComponentSelectionBuilder.PartForKF

Returns the part to use for populating the primary and secondary components object list

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

Getter Method

Signature PartForKF

Returns:
Return type:NXOpen.Part

New in version NX11.0.0.

License requirements: None.

Method Detail

ClearSecondaryComponentList

DraftingComponentSelectionBuilder.ClearSecondaryComponentList

Clears the secondary component list.

Signature ClearSecondaryComponentList()

New in version NX11.0.0.

License requirements: None.

InitializeListFromObject

DraftingComponentSelectionBuilder.InitializeListFromObject

Initialize list of components from the input object’s components list.

Signature InitializeListFromObject(inputObject)

Parameters:inputObject (NXOpen.NXObject) –

New in version NX11.0.0.

License requirements: None.

ResetListToGlobal

DraftingComponentSelectionBuilder.ResetListToGlobal

Reset list of components to those specified by Properties->Drawings->Secondary Geometry

Signature ResetListToGlobal()

New in version NX11.0.0.

License requirements: None.

Validate

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