NXOpen .NET Reference
12.0.0
|
Represents a builder class that performs add existing component operation in current context. More...
Public Types | |
enum | LocationType { Snap, WorkPartAbsolute, DisplayedPartAbsolute, DisplayedPartWCS } |
Represents initial location type that can be present during add component More... | |
Public Member Functions | |
unsafe void | GetPartsToAdd (out NXOpen.BasePart[] partsToUse) |
Returns the parts to be used for adding components More... | |
unsafe void | SetPartsToAdd (NXOpen.BasePart[] partsToUse) |
Sets the parts to be used for adding components More... | |
unsafe void | RemoveAddedComponents () |
Removes the components added through add component More... | |
unsafe int | GetCount () |
Gets the number of components to be added. More... | |
unsafe void | SetCount (int count) |
Sets the number of components to be added. More... | |
unsafe NXOpen.Assemblies.AddComponentBuilder.LocationType | GetInitialLocationType () |
Get the initial location type during add component. More... | |
unsafe void | SetInitialLocationType (NXOpen.Assemblies.AddComponentBuilder.LocationType locationType) |
Set the initial location type during add component. More... | |
unsafe void | GetInitialLocationAndOrientation (out NXOpen.Point initialLocation, out NXOpen.CoordinateSystem initialOrientation) |
Returns the location and orientation used for adding component More... | |
unsafe void | SetInitialLocationAndOrientation (NXOpen.Point initialLocation, NXOpen.CoordinateSystem initialOrientation) |
Sets the location and orientation to be used for adding component. More... | |
unsafe void | SetInitialLocationAndOrientation (NXOpen.Point3d point, NXOpen.Matrix3x3 orientation) |
Sets the location and orientation to be used for add component. More... | |
unsafe bool | GetScatterOption () |
Gets the scatter option for added components. More... | |
unsafe void | SetScatterOption (bool scatterOption) |
Sets the scatter option for added components. More... | |
unsafe bool | GetKeepConstraintsOption () |
Gets the keep constraints option for added components. More... | |
unsafe void | SetKeepConstraintsOption (bool keepConstraintsOption) |
Sets the keep constraints option for added components. More... | |
unsafe NXOpen.Assemblies.ProductInterface.InterfaceObject | GetComponentAnchor () |
Returns the component anchor used for adding component More... | |
unsafe void | SetComponentAnchor (NXOpen.Assemblies.ProductInterface.InterfaceObject componentAnchor) |
Sets the component anchor to be used for adding component More... | |
unsafe void | GetAllProductInterfaceObjects (out NXOpen.Assemblies.ProductInterface.InterfaceObject[] productInterfaceObjects) |
Returns all product interface objects available, one of these can be used as component anchor More... | |
unsafe void | GetLogicalObjects (out NXOpen.PDM.LogicalObject[] logicalObjects) |
Returns the pre-creation objects More... | |
unsafe void | GetLogicalObjectsHavingUnassignedRequiredAttributes (out NXOpen.PDM.LogicalObject[] logicalObjects) |
Returns the pre-creation objects which have unassign required attributes More... | |
unsafe NXOpen.ErrorList | GetOperationFailures () |
Returns add component operation failures More... | |
unsafe void | ResetToSnapped () |
Resets the component to snapped position and orientation More... | |
unsafe void | OrientToWCS () |
Orient added components to the WCS More... | |
unsafe void | ReverseZDirection () |
Reverse the Z direction of added components More... | |
unsafe void | RotateAlongZDirection () |
Rotate added components along Z direction by 90 degrees More... | |
unsafe void | SetSynchDisplayProperties (bool synchDisplayProperties) |
Sets the option to synchronize display properties with the component to be added More... | |
unsafe NXOpen.ErrorList | AutoAssignAttributes (NXOpen.NXObject[] objects) |
Auto assigns the attributes for a given array of objects and returns an array of objects that failed to auto assign. More... | |
unsafe NXOpen.ErrorList | AutoAssignAttributesWithNamingPattern (NXOpen.NXObject[] objects, NXOpen.NXObject[] properties) |
Auto assigns the attributes for a given object and returns an array of objects that failed to auto assign. More... | |
unsafe NXOpen.NXObject | CreateAttributeTitleToNamingPatternMap (string[] attributeTitles, string[] titlePatterns) |
Creates a map object of attribute titles to their corresponding naming pattern More... | |
Public Member Functions inherited from NXOpen.Builder | |
unsafe NXOpen.NXObject | Commit () |
Commits any edits that have been applied to the builder. More... | |
unsafe void | Destroy () |
Deletes the builder, and cleans up any objects created by the builder. More... | |
unsafe NXOpen.NXObject[] | GetCommittedObjects () |
For builders that create more than one object, this method returns the objects that are created by commit. More... | |
unsafe NXOpen.NXObject | GetObject () |
Returns the object currently being edited by this builder. More... | |
unsafe void | ShowResults () |
Updates the model to reflect the result of an edit to the model for all builders that support showing results. More... | |
unsafe bool | Validate () |
Validate whether the inputs to the component are sufficient for commit to be called. More... | |
Properties | |
unsafe string | ComponentName [get, set] |
Returns or sets the component name for added components. More... | |
unsafe string | DesignElementType [get, set] |
Returns or sets the type of a add component More... | |
unsafe NXOpen.FileNew | FileNewDescriptor [get] |
Returns the file new descriptor to identify an added component in 4GD More... | |
unsafe int | Layer [get, set] |
Returns or sets the layer for added components. More... | |
unsafe string | ReferenceSet [get, set] |
Returns or sets the reference set for added components. More... | |
Represents a builder class that performs add existing component operation in current context.
Context can be Assembly or 4GD.
To create a new instance of this class, use NXOpen.Assemblies.AssemblyManager.CreateAddComponentBuilder
Created in NX12.0.0
Represents initial location type that can be present during add component
unsafe NXOpen.ErrorList NXOpen.Assemblies.AddComponentBuilder.AutoAssignAttributes | ( | NXOpen.NXObject[] | objects | ) |
Auto assigns the attributes for a given array of objects and returns an array of objects that failed to auto assign.
Created in NX8.5.0
License requirements: None.
objects |
Implements NXOpen.IAttributeSourceObjectBuilder.
unsafe NXOpen.ErrorList NXOpen.Assemblies.AddComponentBuilder.AutoAssignAttributesWithNamingPattern | ( | NXOpen.NXObject[] | objects, |
NXOpen.NXObject[] | properties | ||
) |
Auto assigns the attributes for a given object and returns an array of objects that failed to auto assign.
properties needs to be created using CreateAttributeTitleToNamingPatternMap
Created in NX12.0.0
License requirements: None.
objects | |
properties |
Implements NXOpen.IAttributeSourceObjectBuilder.
unsafe NXOpen.NXObject NXOpen.Assemblies.AddComponentBuilder.CreateAttributeTitleToNamingPatternMap | ( | string[] | attributeTitles, |
string[] | titlePatterns | ||
) |
Creates a map object of attribute titles to their corresponding naming pattern
Created in NX12.0.0
License requirements: None.
attributeTitles | |
titlePatterns |
Implements NXOpen.IAttributeSourceObjectBuilder.
unsafe void NXOpen.Assemblies.AddComponentBuilder.GetAllProductInterfaceObjects | ( | out NXOpen.Assemblies.ProductInterface.InterfaceObject[] | productInterfaceObjects | ) |
Returns all product interface objects available, one of these can be used as component anchor
Created in NX12.0.0
License requirements: None.
productInterfaceObjects |
unsafe NXOpen.Assemblies.ProductInterface.InterfaceObject NXOpen.Assemblies.AddComponentBuilder.GetComponentAnchor | ( | ) |
Returns the component anchor used for adding component
Created in NX12.0.0
License requirements: None.
unsafe int NXOpen.Assemblies.AddComponentBuilder.GetCount | ( | ) |
Gets the number of components to be added.
Created in NX12.0.0
License requirements: None.
unsafe void NXOpen.Assemblies.AddComponentBuilder.GetInitialLocationAndOrientation | ( | out NXOpen.Point | initialLocation, |
out NXOpen.CoordinateSystem | initialOrientation | ||
) |
Returns the location and orientation used for adding component
Created in NX12.0.0
License requirements: None.
initialLocation | |
initialOrientation |
unsafe NXOpen.Assemblies.AddComponentBuilder.LocationType NXOpen.Assemblies.AddComponentBuilder.GetInitialLocationType | ( | ) |
Get the initial location type during add component.
Created in NX12.0.0
License requirements: None.
unsafe bool NXOpen.Assemblies.AddComponentBuilder.GetKeepConstraintsOption | ( | ) |
Gets the keep constraints option for added components.
Created in NX12.0.0
License requirements: None.
unsafe void NXOpen.Assemblies.AddComponentBuilder.GetLogicalObjects | ( | out NXOpen.PDM.LogicalObject[] | logicalObjects | ) |
Returns the pre-creation objects
Created in NX12.0.0
License requirements: None.
logicalObjects |
unsafe void NXOpen.Assemblies.AddComponentBuilder.GetLogicalObjectsHavingUnassignedRequiredAttributes | ( | out NXOpen.PDM.LogicalObject[] | logicalObjects | ) |
Returns the pre-creation objects which have unassign required attributes
Created in NX12.0.0
License requirements: None.
logicalObjects |
unsafe NXOpen.ErrorList NXOpen.Assemblies.AddComponentBuilder.GetOperationFailures | ( | ) |
Returns add component operation failures
Created in NX12.0.0
License requirements: None.
unsafe void NXOpen.Assemblies.AddComponentBuilder.GetPartsToAdd | ( | out NXOpen.BasePart[] | partsToUse | ) |
Returns the parts to be used for adding components
Created in NX12.0.0
License requirements: None.
partsToUse |
unsafe bool NXOpen.Assemblies.AddComponentBuilder.GetScatterOption | ( | ) |
Gets the scatter option for added components.
Created in NX12.0.0
License requirements: None.
unsafe void NXOpen.Assemblies.AddComponentBuilder.OrientToWCS | ( | ) |
Orient added components to the WCS
Created in NX12.0.0
License requirements: assemblies ("ASSEMBLIES MODULE")
unsafe void NXOpen.Assemblies.AddComponentBuilder.RemoveAddedComponents | ( | ) |
Removes the components added through add component
Created in NX12.0.0
License requirements: assemblies ("ASSEMBLIES MODULE")
unsafe void NXOpen.Assemblies.AddComponentBuilder.ResetToSnapped | ( | ) |
Resets the component to snapped position and orientation
Created in NX12.0.0
License requirements: assemblies ("ASSEMBLIES MODULE")
unsafe void NXOpen.Assemblies.AddComponentBuilder.ReverseZDirection | ( | ) |
Reverse the Z direction of added components
Created in NX12.0.0
License requirements: assemblies ("ASSEMBLIES MODULE")
unsafe void NXOpen.Assemblies.AddComponentBuilder.RotateAlongZDirection | ( | ) |
Rotate added components along Z direction by 90 degrees
Created in NX12.0.0
License requirements: assemblies ("ASSEMBLIES MODULE")
unsafe void NXOpen.Assemblies.AddComponentBuilder.SetComponentAnchor | ( | NXOpen.Assemblies.ProductInterface.InterfaceObject | componentAnchor | ) |
Sets the component anchor to be used for adding component
Created in NX12.0.0
License requirements: assemblies ("ASSEMBLIES MODULE")
componentAnchor |
unsafe void NXOpen.Assemblies.AddComponentBuilder.SetCount | ( | int | count | ) |
Sets the number of components to be added.
Created in NX12.0.0
License requirements: assemblies ("ASSEMBLIES MODULE")
count |
unsafe void NXOpen.Assemblies.AddComponentBuilder.SetInitialLocationAndOrientation | ( | NXOpen.Point | initialLocation, |
NXOpen.CoordinateSystem | initialOrientation | ||
) |
Sets the location and orientation to be used for adding component.
Orientation is optional and user can pass a null reference (Nothing in Visual Basic).
Created in NX12.0.0
License requirements: assemblies ("ASSEMBLIES MODULE")
initialLocation | |
initialOrientation |
unsafe void NXOpen.Assemblies.AddComponentBuilder.SetInitialLocationAndOrientation | ( | NXOpen.Point3d | point, |
NXOpen.Matrix3x3 | orientation | ||
) |
Sets the location and orientation to be used for add component.
Orientation is optional and user can pass a null reference (Nothing in Visual Basic).
Created in NX12.0.0
License requirements: assemblies ("ASSEMBLIES MODULE")
point | |
orientation |
unsafe void NXOpen.Assemblies.AddComponentBuilder.SetInitialLocationType | ( | NXOpen.Assemblies.AddComponentBuilder.LocationType | locationType | ) |
Set the initial location type during add component.
Created in NX12.0.0
License requirements: assemblies ("ASSEMBLIES MODULE")
locationType |
unsafe void NXOpen.Assemblies.AddComponentBuilder.SetKeepConstraintsOption | ( | bool | keepConstraintsOption | ) |
Sets the keep constraints option for added components.
Created in NX12.0.0
License requirements: assemblies ("ASSEMBLIES MODULE")
keepConstraintsOption |
unsafe void NXOpen.Assemblies.AddComponentBuilder.SetPartsToAdd | ( | NXOpen.BasePart[] | partsToUse | ) |
Sets the parts to be used for adding components
Created in NX12.0.0
License requirements: assemblies ("ASSEMBLIES MODULE")
partsToUse |
unsafe void NXOpen.Assemblies.AddComponentBuilder.SetScatterOption | ( | bool | scatterOption | ) |
Sets the scatter option for added components.
Created in NX12.0.0
License requirements: assemblies ("ASSEMBLIES MODULE")
scatterOption |
unsafe void NXOpen.Assemblies.AddComponentBuilder.SetSynchDisplayProperties | ( | bool | synchDisplayProperties | ) |
Sets the option to synchronize display properties with the component to be added
Created in NX12.0.0
License requirements: assemblies ("ASSEMBLIES MODULE")
synchDisplayProperties |
|
getset |
Returns or sets the component name for added components.
Created in NX12.0.0
License requirements to get this property: None.
License requirements to set this property: assemblies ("ASSEMBLIES MODULE")
|
getset |
Returns or sets the type of a add component
Created in NX12.0.0
License requirements to get this property: None.
License requirements to set this property: nx_4gd_integration ("4th Generation Design")
|
get |
Returns the file new descriptor to identify an added component in 4GD
Created in NX12.0.0
License requirements: None.
|
getset |
Returns or sets the layer for added components.
Created in NX12.0.0
License requirements to get this property: None.
License requirements to set this property: assemblies ("ASSEMBLIES MODULE")
|
getset |
Returns or sets the reference set for added components.
Created in NX12.0.0
License requirements to get this property: None.
License requirements to set this property: assemblies ("ASSEMBLIES MODULE")