public interface ComponentAssembly extends NXObject
Component
s that make up an
assembly. Components are arranged in a tree structure, with a single component at the
root. (See rootComponent()
.) The
components directly below the root are added to this assembly by calling
addComponent(java.lang.String, java.lang.String, java.lang.String, nxopen.Point3d, nxopen.Matrix3x3, int)
. These "Top Level" components are
said to be owned directly by this assembly. Top Level components may themselves have
subcomponents.
moveComponent(nxopen.assemblies.Component, nxopen.Vector3d, nxopen.Matrix3x3)
will throw an exception if the
input component is not owned directly by this assembly.
mapComponentFromParent(nxopen.assemblies.Component)
.
BasePart.componentAssembly()
NXObject.AttributeInformation, NXObject.AttributeType, NXObject.ComputationalTime, NXObject.DateAndTimeFormat, NXObject.NextUserAttributeData
Modifier and Type | Method and Description |
---|---|
Arrangement |
activeArrangement()
Returns
the currently active
Arrangement for this ComponentAssembly
License requirements: assemblies ("ASSEMBLIES MODULE") Created in NX3.0.0 |
ComponentAssembly.AddComponentData |
addComponent(BasePart partToAdd,
String referenceSetName,
String componentName,
Point3d basePoint,
Matrix3x3 orientation,
int layer)
Creates a new
Component in this assembly, based on an existing part file. |
ComponentAssembly.AddComponentData |
addComponent(String partToAdd,
String referenceSetName,
String componentName,
Point3d basePoint,
Matrix3x3 orientation,
int layer)
Creates a new
Component in this assembly, based on an existing part file. |
ComponentAssembly.AddComponentData |
addComponent(String partToAdd,
String referenceSetName,
String componentName,
Point3d basePoint,
Matrix3x3 orientation,
int layer,
boolean uomAsNgc)
Creates a new
Component in this assembly, based on an existing part file. |
Component[] |
addComponents(Part[] partsToAdd,
Point3d point,
Matrix3x3 orientation,
int layer,
String referenceSetName,
int count,
boolean scatter)
Creates new
Component in this assembly, based on existing part files. |
ComponentAssembly.AddComponentData |
addMasterPartComponent(Part partToAdd,
String referenceSetName,
String componentName,
Point3d basePoint,
Matrix3x3 orientation,
int layer)
Creates a new
Component in this assembly as master part. |
ComponentAssembly.AddComponentData |
addMasterPartComponent(String partToAdd,
String referenceSetName,
String componentName,
Point3d basePoint,
Matrix3x3 orientation,
int layer)
Creates a new
Component in this assembly as master part. |
PartLoadStatus |
addPendingComponent(String partToAdd,
NXObject pendingComponent,
String referenceSetName,
String componentName,
Point3d basePoint,
Matrix3x3 orientation,
int layer,
boolean uomAsNgc)
Add a pending
Component in this assembly. |
ArrangementCollection |
arrangements()
|
void |
changeByName(String name,
Component[] partOccs)
|
ErrorList |
checkinComponents(Component[] partOccs,
ComponentAssembly.CheckinCheckoutOption checkinInputOption)
Checks in array of components as per the option
ComponentAssembly.CheckinCheckoutOption . |
ErrorList |
checkinWorkset()
Checks in workset.
|
ComponentAssembly.CheckoutAllModifiedObjectsData |
checkoutAllModifiedObjects()
Checks out all modified objects in the current session. checkedOutObjects collection will be type of
BasePart or DesignElementRevision
License requirements: assemblies ("ASSEMBLIES MODULE") Created in NX8.5.0 |
ErrorList |
checkoutComponents(Component[] partOccs,
ComponentAssembly.CheckinCheckoutOption checkoutInputOption)
Checks out array of components as per the option
ComponentAssembly.CheckinCheckoutOption . |
ErrorList |
checkoutWorkset()
Checks out workset.
|
ClearanceSetCollection |
clearanceSets()
|
PartCloseStatus |
closeComponents(Component[] componentsToClose,
BasePart.CloseWholeTree wholeTree,
ComponentAssembly.CloseModified closeModified)
Given an array of components, close the components.
|
ComponentPatternCollection |
componentPatterns()
|
void |
convertRememberedMcs()
Converts all remembered mating constraints in the part of this assembly to remembered
assembly constraints
License requirements: assemblies ("ASSEMBLIES MODULE") . |
Component[] |
copyComponents(Component[] components)
Given an array of components, creates copies of the components such that each copy is created
under the parent assembly of the original component.
|
ComponentPatternBuilder |
createComponentPatternBuilder(ComponentPattern compPattern)
Creates a
ComponentPatternBuilder object
This can be used to create or edit a component pattern. |
ComponentConstraintGroupBuilder |
createConstraintGroupBuilder(ComponentConstraintGroup group,
Component contextComponent)
Creates a
ComponentConstraintGroupBuilder object. |
ComponentAssembly.CreateIsolateViewWithComponentsData |
createIsolateViewWithComponents(Component[] components)
Creates a temporary
View and shows array of components in it
and treats this as Isolate view till it gets undisplayed. |
MatingConverter |
createMatingConverter()
Creates a
MatingConverter object for this assembly. |
void |
deleteMatingConditions()
Delete all the mating conditions in this assembly.
|
DrawingExplosionCollection |
drawingExplosions()
|
ExplosionCollection |
explosions()
|
Order |
getActiveOrder()
Returns the active order in the part
License requirements: assemblies ("ASSEMBLIES MODULE") . |
String |
getAsRequiredQuantity(Component component)
Gets the as-required quantity on this component.
|
ComponentAssembly.CheckedoutStatusOfObjectsData |
getCheckedoutStatusOfObjects()
Returns the checkedout status (checkedout/non checkedout) of all the objects open in NX.
|
ComponentOrder[] |
getComponentOrders()
Returns all
ComponentOrder s available in the part
License requirements: None. |
ComponentQuantity |
getComponentQuantityType(Component component)
Gets the quantity type of the components.
|
int |
getIntegerQuantity(Component component)
Gets the value of the integer quantity of component.
|
boolean |
getNonGeometricState(Component component)
Gets the component state as Geometric or Non-Geometric.
|
ComponentAssembly.RealQuantityData |
getRealQuantity(Component component)
Gets the value of real quantity and corresponding units on this component.
|
ComponentAssembly.SuppressedStateData |
getSuppressedState(Component component)
Gets the suppression state of the component in its controlling arrangement
License requirements: None. |
ComponentAssembly.SuppressedStateData |
getSuppressedState(Component component,
Arrangement arrangement)
Gets the suppression state of the component in the given arrangement.
|
Expression |
getSuppressionExpression(Component component)
Gets the expression controlling the suppression of the component in its
controlling arrangement
License requirements: None. |
Expression |
getSuppressionExpression(Component component,
Arrangement arrangement)
Gets the expression controlling the suppression of the component in the given
arrangment
License requirements: None. |
ComponentAssembly.HideComponentsInIsolateViewData |
hideComponentsInIsolateView(Component[] components)
Hides array of components in Isolate view
View . |
ComponentAssembly.AddComponentData |
insertProduct(Part productPart,
int layer)
Adds a product into workset part at identity location.
|
Component |
mapComponentFromParent(Component component)
Maps a component in a parent assembly onto a corresponding component in this
assembly.
|
Component[] |
mapComponentsFromSubassembly(Component component)
Maps a component in a subassembly onto the corresponding components in this
parent assembly.
|
void |
moveComponent(Component component,
Vector3d translation,
Matrix3x3 rotation)
Moves a component by specifying a translation and rotation.
|
void |
moveToPendingComponent(NXObject component)
Move a
Component in this assembly to a pending list. |
ComponentAssembly.OpenComponentsData |
openComponents(ComponentAssembly.OpenOption openOption,
Component[] componentsToOpen)
Given an array of components, open the components using the open_option.
|
OrderCollection |
ordersSet()
|
ComponentPositioner |
positioner()
Returns the component positioner for this assembly.
|
ErrorList |
releaseSuppression(Component[] components)
Release control of the suppression state of an array of components.
|
ErrorList |
releaseSuppression(Component[] components,
Arrangement[] arrangements)
Release control of the suppression state of an array of components.
|
void |
removeComponent(Component component)
Removes a component from this assemebly.
|
void |
reorderChildrenOfParent(ComponentOrder order,
Component parentComponent,
Component[] componentsToReorder)
|
void |
reorderComponents(ComponentOrder order,
Component[] componentsToReorder,
Component targetComponent,
ComponentAssembly.OrderTargetLocation beforeOrAfter)
|
void |
replaceReferenceSet(Component component,
String newReferenceSet)
Replaces the reference set used by a component.
|
ErrorList |
replaceReferenceSetInOwners(String newReferenceSet,
Component[] components)
Sets the reference set used to represent each component in an array.
|
ComponentAssembly.RestructureComponentsData |
restructureComponents(Component[] origComponents,
Component newParentComponent,
boolean deleteFlag)
Given an array of components and a specified parent this function will transfer the given components to the parent.
|
Component |
rootComponent()
Returns the top-level component, i.e. the component at the root of the component
tree.
|
void |
setActiveArrangement(Arrangement newArrangement)
License requirements: assemblies ("ASSEMBLIES MODULE") . |
void |
setAsRequiredQuantity(Component component)
Sets the as-required quantity on this component.
|
void |
setDefault(Arrangement arrangement)
Set the default
Arrangement for the given ComponentAssembly . |
void |
setEmptyRefset(Component component)
Convenience method for setting the reference set used to represent a component
to be empty
License requirements: None. |
void |
setEntirePartRefset(Component component)
Convenience method for setting the reference set used to represent a component
to be the entire part.
|
void |
setIntegerQuantity(Component component,
int integerQuantity)
Sets the integer quantity on this component.
|
void |
setNonGeometricState(Component component,
boolean nonGeometricState)
Sets the component state to Geometric or Non-Geometric.
|
void |
setRealQuantity(Component component,
double realQuantity,
String quantityUnits)
Sets the real quantity and corresponding units on this component.
|
ComponentAssembly.ShowComponentsInIsolateViewData |
showComponentsInIsolateView(Component[] components)
Shows array of components in Isolate view
View . |
SubsetCollection |
subsets()
|
Component |
substituteComponent(Component component,
BasePart part,
String newName,
String referenceSet,
int layer,
ComponentAssembly.SubstitutionMode mode)
Substitutes an old component with a new component.
|
ErrorList |
suppressComponents(Component[] components)
Suppresses an array of components in all
Arrangement s in this ComponentAssembly
License requirements: assemblies ("ASSEMBLIES MODULE") Created in NX3.0.0 |
ErrorList |
suppressComponents(Component[] components,
Arrangement[] arrangements)
Suppresses an array of components
License requirements: assemblies ("ASSEMBLIES MODULE") . |
ErrorList |
suppressComponents(Component[] components,
Arrangement[] arrangements,
String expression)
Suppresses an array of components in all
Arrangement s in this ComponentAssembly
License requirements: assemblies ("ASSEMBLIES MODULE") Created in NX5.0.1 |
ErrorList |
unsuppressComponents(Component[] components)
Unsuppresses an array of components in all
Arrangement s in this ComponentAssembly
License requirements: assemblies ("ASSEMBLIES MODULE") Created in NX3.0.0 |
ErrorList |
unsuppressComponents(Component[] components,
Arrangement[] arrangements)
Unsuppresses an array of components in this ComponentAssembly
License requirements: assemblies ("ASSEMBLIES MODULE") . |
createAttributeIterator, deleteAllAttributesByType, deleteAllAttributesByType, deleteAttributeByTypeAndTitle, deleteAttributeByTypeAndTitle, deleteUserAttribute, deleteUserAttributes, deleteUserAttributes, getAttributeTitlesByType, getBooleanUserAttribute, getComputationalTimeUserAttribute, getIntegerAttribute, getIntegerUserAttribute, getNextUserAttribute, getPdmReferenceAttributeValue, getRealAttribute, getRealUserAttribute, getReferenceAttribute, getStringAttribute, getStringUserAttribute, getTimeAttribute, getTimeUserAttribute, getUserAttribute, getUserAttribute, getUserAttributeAsString, getUserAttributeCount, getUserAttributeCount, getUserAttributeCount, getUserAttributeCount, getUserAttributeLock, getUserAttributes, getUserAttributes, getUserAttributes, getUserAttributes, getUserAttributesAsStrings, getUserAttributeSize, getUserAttributeSourceObjects, hasUserAttribute, hasUserAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setBooleanUserAttribute, setPdmReferenceAttribute, setReferenceAttribute, setReferenceAttribute, setTimeAttribute, setTimeAttribute, setTimeUserAttribute, setTimeUserAttribute, setUserAttribute, setUserAttribute, setUserAttribute, setUserAttribute, setUserAttribute, setUserAttributeLock
printTestData, printTestData, tag, tagValue
findObject, isOccurrence, journalIdentifier, name, owningComponent, owningPart, print, prototype, setName
ArrangementCollection arrangements() throws RemoteException
RemoteException
ExplosionCollection explosions() throws RemoteException
RemoteException
DrawingExplosionCollection drawingExplosions() throws RemoteException
RemoteException
ComponentPatternCollection componentPatterns() throws RemoteException
RemoteException
SubsetCollection subsets() throws RemoteException
RemoteException
ClearanceSetCollection clearanceSets() throws RemoteException
RemoteException
OrderCollection ordersSet() throws RemoteException
RemoteException
ComponentAssembly.AddComponentData addComponent(String partToAdd, String referenceSetName, String componentName, Point3d basePoint, Matrix3x3 orientation, int layer) throws NXException, RemoteException
Component
in this assembly, based on an existing part file.
partToAdd
- The part that defines the new componentreferenceSetName
- The name of the reference set used to represent the new componentcomponentName
- The name of the new componentbasePoint
- Location of the new componentorientation
- Orientation matrix for the new component, in column order.layer
- The layer to place the new component on
-1 means use the original layers defined in the component.
0 means use the work layer.
1-256 means use the specified layer.NXException
RemoteException
ComponentAssembly.AddComponentData addComponent(String partToAdd, String referenceSetName, String componentName, Point3d basePoint, Matrix3x3 orientation, int layer, boolean uomAsNgc) throws NXException, RemoteException
Component
in this assembly, based on an existing part file.
partToAdd
- The part that defines the new componentreferenceSetName
- The name of the reference set used to represent the new componentcomponentName
- The name of the new componentbasePoint
- Location of the new componentorientation
- Orientation matrix for the new component, in column order.layer
- The layer to place the new component on
-1 means use the original layers defined in the component.
0 means use the work layer.
1-256 means use the specified layer.uomAsNgc
- Whether to set to non-geometric if with unit-of-measureNXException
RemoteException
Component[] addComponents(Part[] partsToAdd, Point3d point, Matrix3x3 orientation, int layer, String referenceSetName, int count, boolean scatter) throws NXException, RemoteException
Component
in this assembly, based on existing part files.
partsToAdd
- The parts that define new componentspoint
- Location of the new componentorientation
- Orientation matrix for the new component, in column order.layer
- The layer to place the new component on
-1 means use the original layers defined in the component.
0 means use the work layer.
1-256 means use the specified layer.referenceSetName
- The name of the reference set used to represent the new componentcount
- number of times each part to be added as component in parent partscatter
- Scatter the multiple components around the specified locationNXException
RemoteException
ComponentAssembly.AddComponentData addComponent(BasePart partToAdd, String referenceSetName, String componentName, Point3d basePoint, Matrix3x3 orientation, int layer) throws NXException, RemoteException
Component
in this assembly, based on an existing part file.
partToAdd
- The part that defines the new componentreferenceSetName
- The name of the reference set used to represent the new componentcomponentName
- The name of the new componentbasePoint
- Location of the new componentorientation
- Orientation matrix for the new component, in column order.layer
- The layer to place the new component on
-1 means use the original layers defined in the component.
0 means use the work layer.
1-256 means use the specified layer.NXException
RemoteException
ComponentAssembly.AddComponentData addMasterPartComponent(String partToAdd, String referenceSetName, String componentName, Point3d basePoint, Matrix3x3 orientation, int layer) throws NXException, RemoteException
Component
in this assembly as master part.
partToAdd
- The part that defines the new componentreferenceSetName
- The name of the reference set used to represent the new componentcomponentName
- The name of the new componentbasePoint
- Location of the new componentorientation
- Orientation matrix for the new component, in column order.layer
- The layer to place the new component on
-1 means use the original layers defined in the component.
0 means use the work layer.
1-256 means use the specified layer.NXException
RemoteException
ComponentAssembly.AddComponentData addMasterPartComponent(Part partToAdd, String referenceSetName, String componentName, Point3d basePoint, Matrix3x3 orientation, int layer) throws NXException, RemoteException
Component
in this assembly as master part.
partToAdd
- The part that defines the new componentreferenceSetName
- The name of the reference set used to represent the new componentcomponentName
- The name of the new componentbasePoint
- Location of the new componentorientation
- Orientation matrix for the new component, in column order.layer
- The layer to place the new component on
-1 means use the original layers defined in the component.
0 means use the work layer.
1-256 means use the specified layer.NXException
RemoteException
ComponentAssembly.AddComponentData insertProduct(Part productPart, int layer) throws NXException, RemoteException
productPart
- The product being added to the worksetlayer
- The layer to place the new component on
-1 means use the original layers defined in the component.
0 means use the work layer.
1-256 means use the specified layer.NXException
RemoteException
Component rootComponent() throws NXException, RemoteException
ComponentAssembly
. The components below this will correspond to
parts added by calling addComponent(java.lang.String, java.lang.String, java.lang.String, nxopen.Point3d, nxopen.Matrix3x3, int)
.
Component
at the root of this ComponentAssembly's treeNXException
RemoteException
Component substituteComponent(Component component, BasePart part, String newName, String referenceSet, int layer, ComponentAssembly.SubstitutionMode mode) throws NXException, RemoteException
component
- The old component to be substituted.part
- The new partnewName
- The name for the new componentreferenceSet
- The name of the reference set for the new componentlayer
- The layer for the new component
-1 means use the original layers defined in the component.
0 means use the work layer
1-256 means use the specified layer.mode
- Defines the substitution modeNXException
RemoteException
void removeComponent(Component component) throws NXException, RemoteException
component
- The component to remove. Must be directly owned by this assembly.NXException
RemoteException
Component mapComponentFromParent(Component component) throws NXException, RemoteException
Axle / \ / \ Left Right Wheel Wheeland a Car assembly containing two Axle components:
Car _______ |_______ / \ / \ Front Rear Axle Axle / \ / \ / \ / \ Front Left Front Right Rear Left Rear Right Wheel Wheel Wheel Wheelthen calling Axle.MapComponentFromParent with the Front Left Wheel component will return the Left Wheel component. Note that calling Car.MapComponentFromParent on Left Wheel will not work. See
mapComponentsFromSubassembly(nxopen.assemblies.Component)
.
component
- The component to map. This should be defined in the
tree of a parent assembly which contains this assembly.NXException
RemoteException
Component[] mapComponentsFromSubassembly(Component component) throws NXException, RemoteException
Axle / \ / \ Left Right Wheel Wheeland a Car assembly containing two Axle components:
Car _______ |_______ / \ / \ Front Rear Axle Axle / \ / \ / \ / \ Front Left Front Right Rear Left Rear Right Wheel Wheel Wheel Wheelthen calling Car.MapComponentsFromSubassembly on Left Wheel will return Front Left Wheel and Rear Left Wheel. See also
mapComponentFromParent(nxopen.assemblies.Component)
.
component
- The component to map. This must be defined in a subassembly
of this assembly.NXException
RemoteException
Arrangement activeArrangement() throws NXException, RemoteException
Arrangement
for this ComponentAssembly
Arrangement
that is currently activeNXException
RemoteException
void setActiveArrangement(Arrangement newArrangement) throws NXException, RemoteException
newArrangement
- The new active Arrangement
. This Arrangement
must be defined in this ComponentAssembly.NXException
RemoteException
void changeByName(String name, Component[] partOccs) throws NXException, RemoteException
Arrangement
of the given Component
s to the
Arrangement
with the given name.
name
- The name of arrangement to change topartOccs
- The Component
s to be modifiedNXException
RemoteException
void setDefault(Arrangement arrangement) throws NXException, RemoteException
Arrangement
for the given ComponentAssembly
.
arrangement
- The new default Arrangement
.NXException
RemoteException
ErrorList suppressComponents(Component[] components, Arrangement[] arrangements) throws NXException, RemoteException
components
- Component
s to be suppressedarrangements
- Arrangements in which components should be suppressed.
These arrangements must be defined in this ComponentAssemblyNXException
RemoteException
ErrorList suppressComponents(Component[] components) throws NXException, RemoteException
Arrangement
s in this ComponentAssembly
components
- Component
s to be suppressedNXException
RemoteException
ErrorList suppressComponents(Component[] components, Arrangement[] arrangements, String expression) throws NXException, RemoteException
Arrangement
s in this ComponentAssembly
components
- Component
s to be suppressedarrangements
- Arrangements in which components should be unsuppressedexpression
- Suppress components if expression evalutes zero else unsuppress componentsNXException
RemoteException
ErrorList unsuppressComponents(Component[] components, Arrangement[] arrangements) throws NXException, RemoteException
components
- Component
s to be unsuppressedarrangements
- Arrangements in which components should be unsuppressed.
These arrangements must be defined in this ComponentAssemblyNXException
RemoteException
ErrorList unsuppressComponents(Component[] components) throws NXException, RemoteException
Arrangement
s in this ComponentAssembly
components
- Component
s to be unsuppressedNXException
RemoteException
ErrorList releaseSuppression(Component[] components, Arrangement[] arrangements) throws NXException, RemoteException
components
- Component
s to be releasedarrangements
- Arrangements in which components should be released.
These arrangements must be defined in this ComponentAssemblyNXException
RemoteException
ErrorList releaseSuppression(Component[] components) throws NXException, RemoteException
components
- Component
s to be releasedNXException
RemoteException
void setEntirePartRefset(Component component) throws NXException, RemoteException
component
- The component to edit. Must be directly owned by this assembly.NXException
RemoteException
void setEmptyRefset(Component component) throws NXException, RemoteException
component
- The component to edit. Must be directly owned by this assembly.NXException
RemoteException
ErrorList replaceReferenceSetInOwners(String newReferenceSet, Component[] components) throws NXException, RemoteException
NXOpen.Assemblies.Component.DirectOwner
NXOpen.Assemblies.ComponentAssembly.ReplaceReferenceSet
Component.emptyPartRefsetName()
or
Component.entirePartRefsetName()
.
newReferenceSet
- The name of the new reference setcomponents
- Components to be edited. Each component
will have its reference set updated in its
owning assembly.NXException
RemoteException
void replaceReferenceSet(Component component, String newReferenceSet) throws NXException, RemoteException
Component.emptyPartRefsetName()
or
Component.entirePartRefsetName()
.
component
- The component to edit. Must be directly owned by this assembly.newReferenceSet
- The name of the new reference setNXException
RemoteException
void moveComponent(Component component, Vector3d translation, Matrix3x3 rotation) throws NXException, RemoteException
component
- The component to edit. Must be directly owned by this assemblytranslation
- The translation deltarotation
- The rotation delta, in column order.NXException
RemoteException
ComponentPositioner positioner() throws NXException, RemoteException
NXException
RemoteException
MatingConverter createMatingConverter() throws NXException, RemoteException
MatingConverter
object for this assembly.
This can be used to convert Mating Conditions in this part and in its child components
to Assembly Constraints. Note that this part need not be the work part for this.
NXException
RemoteException
void deleteMatingConditions() throws NXException, RemoteException
NXException
RemoteException
void convertRememberedMcs() throws NXException, RemoteException
NXException
RemoteException
void setNonGeometricState(Component component, boolean nonGeometricState) throws NXException, RemoteException
component
- The component to edit. Must be directly owned by this assembly.nonGeometricState
- True to make component non-geometric, false otherwiseNXException
RemoteException
boolean getNonGeometricState(Component component) throws NXException, RemoteException
component
- The component to query. Must be directly owned by this assembly.NXException
RemoteException
ComponentQuantity getComponentQuantityType(Component component) throws NXException, RemoteException
ComponentQuantity
.
component
- The component to query. Must be directly owned by this assembly.NXException
RemoteException
void setIntegerQuantity(Component component, int integerQuantity) throws NXException, RemoteException
component
- The component to edit. Must be directly owned by this assembly.integerQuantity
- Integer quantity valueNXException
RemoteException
int getIntegerQuantity(Component component) throws NXException, RemoteException
component
- The component to query. Must be directly owned by this assembly.NXException
RemoteException
void setRealQuantity(Component component, double realQuantity, String quantityUnits) throws NXException, RemoteException
component
- The component to edit. Must be directly owned by this assembly.realQuantity
- Real quantity valuequantityUnits
- UnitsNXException
RemoteException
ComponentAssembly.RealQuantityData getRealQuantity(Component component) throws NXException, RemoteException
component
- The component to query. Must be directly owned by this assembly.NXException
RemoteException
void setAsRequiredQuantity(Component component) throws NXException, RemoteException
component
- The component to edit. Must be directly owned by this assembly.NXException
RemoteException
String getAsRequiredQuantity(Component component) throws NXException, RemoteException
component
- The component to edit. Must be directly owned by this assembly.NXException
RemoteException
Component[] copyComponents(Component[] components) throws NXException, RemoteException
components
- Components to be copied.NXException
RemoteException
ComponentAssembly.RestructureComponentsData restructureComponents(Component[] origComponents, Component newParentComponent, boolean deleteFlag) throws NXException, RemoteException
origComponents
- Array of components to be restructurednewParentComponent
- Destination for restructuredeleteFlag
- Flag to delete original componentsNXException
RemoteException
ComponentAssembly.OpenComponentsData openComponents(ComponentAssembly.OpenOption openOption, Component[] componentsToOpen) throws NXException, RemoteException
openOption
- The option that controls the open operationcomponentsToOpen
- Array of components to openNXException
RemoteException
PartCloseStatus closeComponents(Component[] componentsToClose, BasePart.CloseWholeTree wholeTree, ComponentAssembly.CloseModified closeModified) throws NXException, RemoteException
componentsToClose
- Array of components to closewholeTree
- If true, unloads all components of the part. If false, unloads only the top-level partcloseModified
- Behavior of close if component parts are modified.NXException
RemoteException
Expression getSuppressionExpression(Component component) throws NXException, RemoteException
component
- The component to query.NXException
RemoteException
Expression getSuppressionExpression(Component component, Arrangement arrangement) throws NXException, RemoteException
component
- The component to query.arrangement
- The arrangement in which to query the suppressed stateNXException
RemoteException
ComponentAssembly.SuppressedStateData getSuppressedState(Component component) throws NXException, RemoteException
component
- The component to query.NXException
RemoteException
ComponentAssembly.SuppressedStateData getSuppressedState(Component component, Arrangement arrangement) throws NXException, RemoteException
component
- The component to query.arrangement
- Arrangements in which components should
be suppressed.NXException
RemoteException
ComponentPatternBuilder createComponentPatternBuilder(ComponentPattern compPattern) throws NXException, RemoteException
ComponentPatternBuilder
object
This can be used to create or edit a component pattern.
compPattern
- The pattern definition object will be used in editNXException
RemoteException
PartLoadStatus addPendingComponent(String partToAdd, NXObject pendingComponent, String referenceSetName, String componentName, Point3d basePoint, Matrix3x3 orientation, int layer, boolean uomAsNgc) throws NXException, RemoteException
Component
in this assembly.
partToAdd
- The part that defines the new componentpendingComponent
- component to addreferenceSetName
- The name of the reference set used to represent the new componentcomponentName
- The name of the new componentbasePoint
- Location of the new componentorientation
- Orientation matrix for the new component, in column order.layer
- The layer to place the new component on
-1 means use the original layers defined in the component.
0 means use the work layer.
1-256 means use the specified layer.uomAsNgc
- Whether to set to non-geometric if with unit-of-measureNXException
RemoteException
ComponentConstraintGroupBuilder createConstraintGroupBuilder(ComponentConstraintGroup group, Component contextComponent) throws NXException, RemoteException
ComponentConstraintGroupBuilder
object.
This can be used to create a constraint group or edit an existing constraint group.
The context component decides which displayed constraints are to be used from
the member constraints of an existing constraint group. If the context component
is null the displayed constraints used are in the same part as the member
constraints.
group
- Group to be edited, if null then a new group is createdcontextComponent
- Context component, can be nullNXException
RemoteException
ErrorList checkinComponents(Component[] partOccs, ComponentAssembly.CheckinCheckoutOption checkinInputOption) throws NXException, RemoteException
ComponentAssembly.CheckinCheckoutOption
.
partOccs
- Array of components to check incheckinInputOption
- Option that controls what to check inNXException
RemoteException
ErrorList checkoutComponents(Component[] partOccs, ComponentAssembly.CheckinCheckoutOption checkoutInputOption) throws NXException, RemoteException
ComponentAssembly.CheckinCheckoutOption
.
partOccs
- Array of components to check outcheckoutInputOption
- Option that controls what to check outNXException
RemoteException
ErrorList checkoutWorkset() throws NXException, RemoteException
NXException
RemoteException
ErrorList checkinWorkset() throws NXException, RemoteException
NXException
RemoteException
ComponentAssembly.CheckoutAllModifiedObjectsData checkoutAllModifiedObjects() throws NXException, RemoteException
BasePart
or DesignElementRevision
NXException
RemoteException
ComponentAssembly.CheckedoutStatusOfObjectsData getCheckedoutStatusOfObjects() throws NXException, RemoteException
NXException
RemoteException
void reorderComponents(ComponentOrder order, Component[] componentsToReorder, Component targetComponent, ComponentAssembly.OrderTargetLocation beforeOrAfter) throws NXException, RemoteException
Component
s before or after the target Component
.
Component
s to reorder and the target Component
should be children of
the same immediate parent.
order
- ComponentOrder
in which components are reorderedcomponentsToReorder
- Array of components to be reorderedtargetComponent
- Components are moved before or after this componentbeforeOrAfter
- Whether to move components before or after the target componentNXException
RemoteException
void reorderChildrenOfParent(ComponentOrder order, Component parentComponent, Component[] componentsToReorder) throws NXException, RemoteException
Component
s of parent Component
.
order
- ComponentOrder
in which children are reorderedparentComponent
- Parent component whose children are reorderedcomponentsToReorder
- Array of children components in new orderNXException
RemoteException
ComponentOrder[] getComponentOrders() throws NXException, RemoteException
NXException
RemoteException
void moveToPendingComponent(NXObject component) throws NXException, RemoteException
Component
in this assembly to a pending list.
The Component
should be previously in the pending list and
just got added into the assembly.
component
- component to move to pending listNXException
RemoteException
Order getActiveOrder() throws NXException, RemoteException
NXException
RemoteException
ComponentAssembly.CreateIsolateViewWithComponentsData createIsolateViewWithComponents(Component[] components) throws NXException, RemoteException
View
and shows array of components in it
and treats this as Isolate view till it gets undisplayed. Only one Isolate view can be created
for the assembly.
Returns View
which is treated as Isolate View.
components
- Array of components to be shown in isolate viewNXException
RemoteException
ComponentAssembly.ShowComponentsInIsolateViewData showComponentsInIsolateView(Component[] components) throws NXException, RemoteException
View
.
If Isolate view doesn't exist then this API doesn't do anything.
Returns View
which is treated as Isolate View.
components
- Array of components to be shown in isolate viewNXException
RemoteException
ComponentAssembly.HideComponentsInIsolateViewData hideComponentsInIsolateView(Component[] components) throws NXException, RemoteException
View
.
If Isolate view doesn't exist then this API doesn't do anything.
Returns View
which is treated as Isolate View.
components
- Array of components to be shown in isolate viewNXException
RemoteException
Copyright 2017 Siemens Product Lifecycle Management Software Inc. All Rights Reserved.