public interface FastenerAssy extends Builder
FastenerAssy
FastenerAssyCollection.createBuilder()
Modifier and Type | Interface and Description |
---|---|
static class |
FastenerAssy.HoleOperation
Represents the action on the hole menu of the fastener assembly.
|
static class |
FastenerAssy.ModeMethod
Represents adding and editing modes for the fastener assembly
|
static class |
FastenerAssy.SelectionObjectMethod
Represents selection object type
|
static class |
FastenerAssy.SelectionTypeMethod
Represents selection type for position and hole
|
static class |
FastenerAssy.StackTypeMethod
Represents screw_array type
|
Modifier and Type | Method and Description |
---|---|
void |
addParentNewPart(String fileName,
int index,
boolean parentNode)
Adds new part for the parent node
License requirements: None. |
void |
addRemovalHoleIndex(int index)
Add the removal hole index in the fastener setup data
License requirements: None. |
void |
addScrewArray(String krxFile,
String lengthMatch,
String libPath,
String libName,
String fullPath,
int index,
FastenerAssy.StackTypeMethod type)
Adds stack array
License requirements: None. |
NXObject |
addTopNode(Point3d point,
Point3d direction,
NXObject selObject,
int index)
Adds top node for the fastener assembly
License requirements: None. |
void |
adjustFastenerLength(int parentIndex,
int childIndex,
FastenerAssy.StackTypeMethod nodeType)
Adjusts the fastener assembly length
License requirements: None. |
void |
createArrayHole(int index)
Creates array hole data for the fastener assembly
License requirements: None. |
void |
createFastenerConstraints(int index)
Creates fastener assembly constraint
License requirements: None. |
AddReusablePart |
createReusableBuilder(int parentIndex,
int childIndex,
FastenerAssy.StackTypeMethod nodeType)
Creates new reusable builder
License requirements: None. |
void |
createReusablePocket(boolean commit)
Creates reusable pocket
License requirements: None. |
void |
createSameAssemblyData(int addedIndex,
int index)
Creates the same assembly data type
License requirements: None. |
void |
deleteArrayHole(int index)
Deletes array hole data for the fastener assembly
License requirements: None. |
void |
deleteReusablePocket()
Deletes reusable pocket
License requirements: None. |
void |
eraseAssemblyData(int parentIndex)
Erases the assembly data
License requirements: None. |
void |
eraseFastenerAssembly(int parentInx,
boolean removeParent,
boolean removeScrew,
boolean removeStack,
boolean removeArray,
boolean removeBuilder,
boolean initscrewBuilder,
boolean initstackBuilder,
boolean removeData)
Erases fastener assembly
License requirements: None. |
void |
eraseFastenerAssemblyData(int index)
Erases the fastener assembly data, including the hole data and assembly data in the fastener setup data
License requirements: None. |
void |
eraseFastenerSetupData()
Erases the data (hole and assembly data) in fastener assembly
License requirements: None. |
void |
eraseStackArray(int parentIndex,
int inx,
FastenerAssy.StackTypeMethod type)
Erases stack array
License requirements: None. |
FastenerAssy.ModeMethod |
getFastenerMode()
Gets the fastener mode
License requirements: None. |
FastenerAssy.SelectionTypeMethod |
getFastenerSelectionType()
Gets the selection type for the hole in the fastener assembly
License requirements: None. |
ReusablePocketBuilder |
getReusablePocketBuilder()
Gets the reusable pocket builder
License requirements: None. |
void |
initPocketBuilder()
Inits pocket builder
License requirements: None. |
void |
readAssemblyConfigure(int holeNum,
Component partOcc)
Reads fastener assembly configuration data from the hole data
License requirements: None. |
void |
removeFastenerConstraints(int index)
Removes fastener assembly constraint
License requirements: None. |
void |
removeSelectedHole()
Removes the selected hole from the fastener setup data
License requirements: None. |
void |
renameParentNode(int index,
String newname)
Renames the parent node
License requirements: None. |
void |
saveUdoData()
Saves UDO data for fastener assembly
License requirements: None. |
void |
selectScrewSize(int inx,
double diameter,
double origindiameter,
boolean selDiameter)
Selects the screw size
License requirements: None. |
void |
setAssemblyExtentLength(int index,
double extentLength)
Sets the extent length for the fastener assembly data
License requirements: None. |
void |
setBlindHole(int inx,
boolean blindhole)
Sets the blind hole for the hole in the fastener assembly
License requirements: None. |
void |
setCreatePocket(boolean create)
Sets the flag to indicate whether to create pocket when adding the fastener
License requirements: None. |
void |
setDefaultPlanarFaces(NXObject defaultPlanarFace,
int inx)
Sets the default planar face for the hole in the fastener assembly
License requirements: None. |
void |
setFastenerExtentLength(double extentLength)
Sets the extent length for the hole in the fastener assembly
License requirements: None. |
void |
setFastenerMode(FastenerAssy.ModeMethod modeMethod)
Sets the fastener mode
License requirements: None. |
void |
setFastenerSelectionType(FastenerAssy.SelectionTypeMethod selectionType)
Sets the selection type for the hole in the fastener assembly
License requirements: None. |
void |
setHoleDefaultCylindricalFace(NXObject defaultCylFaces,
int index)
Sets the default cylindrical face for the hole in the fastener assembly
License requirements: None. |
void |
setHoleDiameter(double diameter,
int index)
Sets the diameter for the hole in the fastener assembly
License requirements: None. |
void |
setHoleDirection(Point3d direction,
int index)
Sets the direction for the hole in the fastener assembly
License requirements: None. |
void |
setHoleFaces(NXObject holeFace,
int index)
Sets the faces for the hole in the fastener assembly
License requirements: None. |
void |
setHoleHeight(double height,
int index)
Sets the height for the hole in the fastener assembly
License requirements: None. |
void |
setHoleOriginDiameter(double originDiameter,
int index)
Sets the origin diameter for the hole in the fastener assembly
License requirements: None. |
void |
setHoleOriginHeight(double originheight,
int index)
Sets the origin height for the hole in the fastener assembly
License requirements: None. |
void |
setHoleOriginPosition(Point3d originposition,
int index)
Sets the origin position for the hole in the fastener assembly
License requirements: None. |
void |
setHolePosition(Point3d position,
int index)
Sets the position for the hole in the fastener assembly
License requirements: None. |
void |
setHoleSideCylindricalFaces(NXObject sideCylFace,
int index)
Sets the side cylindrical faces for the hole in the fastener assembly
License requirements: None. |
void |
setInstanceFeatureFaces(NXObject instanceFeature,
int inx)
Sets the instance feature face for the hole in the fastener assembly
License requirements: None. |
void |
setItemName(String partName,
String itemName)
Adds item description for the part
License requirements: None. |
void |
setReusablePocketBuilder(ReusablePocketBuilder pocketTag)
Sets the reusable pocket builder
License requirements: None. |
void |
setReuseBuilder(int index,
FastenerAssy.StackTypeMethod nodeType,
int childIndex,
Component partOcc)
Sets the reuse builder
License requirements: None. |
void |
setSidePlanarFaces(NXObject sidePlanarFace,
int index)
Sets the side planar faces for the hole in the fastener assembly
License requirements: None. |
void |
substituteFastenerStack(int parentIndex,
int childIndex,
FastenerAssy.StackTypeMethod nodeType,
String partFile,
String krxFile,
String libName,
String pathInLib,
String lengthMatch,
String fullPath)
Substitutes fastener stack
License requirements: None. |
void |
updateDefaultStandard(int index,
String standard,
String form,
String type)
Updates default standard hole data for the fastener assembly configuration
License requirements: None. |
void |
updateFastenerLength(boolean adjustLength)
Updates the fastener length
License requirements: None. |
void |
updateFastenerStacks(int parentIndex,
boolean updateScrew,
boolean updatePocket)
Updates fastener stacks
License requirements: None. |
void |
updateHoleData(int inx,
double originheight,
Point3d originPoint,
boolean threadhole,
boolean blindhole)
Updates the hole data
License requirements: None. |
void |
updateHolePostion(int parentIndex,
Point3d dirOne,
Point3d tempPnt,
Point3d pointOne,
double height,
double orignHeight,
double offSetDistance)
Updates the hole positon for position method
License requirements: None. |
void |
updateStackPosition(int parentIndex,
int childIndex,
FastenerAssy.StackTypeMethod nodeType,
double deltaLength)
Updates the fastener assembly after changing stacks or changing stack properties
License requirements: None. |
void |
updateTopBottomStacks(int index,
FastenerAssy.SelectionObjectMethod type,
boolean isSameFace,
NXObject face)
Updates fastener assembly according to the new extends
License requirements: None. |
commit, destroy, getCommittedObjects, getObject, showResults
printTestData, printTestData, tag, tagValue
validate
NXObject addTopNode(Point3d point, Point3d direction, NXObject selObject, int index) throws NXException, RemoteException
point
- The point of the fastener to assembledirection
- The direciton of the fastener to assembleselObject
- The default cylindrical face of the hole data, selObject type should be FACEindex
- The hole index in the fastener assemblyNXException
RemoteException
void setHoleDiameter(double diameter, int index) throws NXException, RemoteException
diameter
- The diameter of the hole dataindex
- The hole index in the fastener assemblyNXException
RemoteException
void setHoleDirection(Point3d direction, int index) throws NXException, RemoteException
direction
- The direcion of the hole dataindex
- The hole index in the fastener assemblyNXException
RemoteException
void setHoleSideCylindricalFaces(NXObject sideCylFace, int index) throws NXException, RemoteException
sideCylFace
- The side cylinderical Face of the hole dataindex
- The hole index in the fastener assembly, sideCylFace type should be FACENXException
RemoteException
void setCreatePocket(boolean create) throws NXException, RemoteException
create
- Whether the fastener assembly is created pocketNXException
RemoteException
void setHoleFaces(NXObject holeFace, int index) throws NXException, RemoteException
holeFace
- The hole face of the hole data, holeFace type is FACEindex
- The hole index in the fastener assemblyNXException
RemoteException
void addScrewArray(String krxFile, String lengthMatch, String libPath, String libName, String fullPath, int index, FastenerAssy.StackTypeMethod type) throws NXException, RemoteException
krxFile
- The krx file of the stack lengthMatch
- The length match from fastener data and given node libPath
- Ask fastener library path libName
- Ask fastener library name fullPath
- Stack file full path index
- The hole index in the fastener assemblytype
- The stack type methodNXException
RemoteException
void addParentNewPart(String fileName, int index, boolean parentNode) throws NXException, RemoteException
fileName
- New fastener assembly parent node name index
- The hole index in the fastener assemblyparentNode
- Whether the fastener assembly node is parentNXException
RemoteException
void setItemName(String partName, String itemName) throws NXException, RemoteException
partName
- The part nameitemName
- Item nameNXException
RemoteException
void setHolePosition(Point3d position, int index) throws NXException, RemoteException
position
- The position of the hole dataindex
- The hole index in the fastener assemblyNXException
RemoteException
void setHoleDefaultCylindricalFace(NXObject defaultCylFaces, int index) throws NXException, RemoteException
defaultCylFaces
- The default cylindrical faces of the hole data, defaultCylFaces type should be FACEindex
- The hole index in the fastener assemblyNXException
RemoteException
void setHoleOriginPosition(Point3d originposition, int index) throws NXException, RemoteException
originposition
- The origin position of the hole dataindex
- The hole index in the fastener assemblyNXException
RemoteException
void setHoleHeight(double height, int index) throws NXException, RemoteException
height
- The height of the hole dataindex
- The hole index in the fastener assemblyNXException
RemoteException
void setHoleOriginHeight(double originheight, int index) throws NXException, RemoteException
originheight
- The origin height of the hole dataindex
- The hole index in the fastener assemblyNXException
RemoteException
void setFastenerExtentLength(double extentLength) throws NXException, RemoteException
extentLength
- The extent Length of the fastener assemblyNXException
RemoteException
void setHoleOriginDiameter(double originDiameter, int index) throws NXException, RemoteException
originDiameter
- The origin diameter of the hole dataindex
- The hole index in the fastener assemblyNXException
RemoteException
void setFastenerSelectionType(FastenerAssy.SelectionTypeMethod selectionType) throws NXException, RemoteException
selectionType
- The selection type to add the fastener assemblyNXException
RemoteException
FastenerAssy.SelectionTypeMethod getFastenerSelectionType() throws NXException, RemoteException
NXException
RemoteException
void updateFastenerLength(boolean adjustLength) throws NXException, RemoteException
adjustLength
- Whether to adjust length in the fastener assemblyNXException
RemoteException
void createSameAssemblyData(int addedIndex, int index) throws NXException, RemoteException
addedIndex
- find the the hole index with the same parameter and node type in the fastener assemblyindex
- the hole index in the fastener assemblyNXException
RemoteException
void eraseStackArray(int parentIndex, int inx, FastenerAssy.StackTypeMethod type) throws NXException, RemoteException
parentIndex
- Parent indexinx
- Child indextype
- The stack type methodNXException
RemoteException
void eraseFastenerAssembly(int parentInx, boolean removeParent, boolean removeScrew, boolean removeStack, boolean removeArray, boolean removeBuilder, boolean initscrewBuilder, boolean initstackBuilder, boolean removeData) throws NXException, RemoteException
parentInx
- parent indexremoveParent
- whether to remove parent instanceremoveScrew
- whether to remove screwremoveStack
- whether to remove top stack and bottom stackremoveArray
- whether to remove component arrayremoveBuilder
- whether to remove builderinitscrewBuilder
- whether to initialize screw builderinitstackBuilder
- whether to initialize stack builderremoveData
- whether to remove dataNXException
RemoteException
void eraseFastenerSetupData() throws NXException, RemoteException
NXException
RemoteException
void createFastenerConstraints(int index) throws NXException, RemoteException
index
- the hole index in the fastener assembly to create constraintsNXException
RemoteException
void removeFastenerConstraints(int index) throws NXException, RemoteException
index
- the hole index in the fastener assembly to delete constraintsNXException
RemoteException
void setSidePlanarFaces(NXObject sidePlanarFace, int index) throws NXException, RemoteException
sidePlanarFace
- The side planar face of the hole data, sidePlanarFace type should be FACEindex
- The hole index in the fastener assemblyNXException
RemoteException
void setDefaultPlanarFaces(NXObject defaultPlanarFace, int inx) throws NXException, RemoteException
defaultPlanarFace
- The default planar face of the hole data, defaultPlanarFace type should be FACEinx
- The hole index in the fastener assemblyNXException
RemoteException
void setInstanceFeatureFaces(NXObject instanceFeature, int inx) throws NXException, RemoteException
instanceFeature
- The instance feature face of the hole data, instanceFeature type should be FACEinx
- The hole index in the fastener assemblyNXException
RemoteException
void adjustFastenerLength(int parentIndex, int childIndex, FastenerAssy.StackTypeMethod nodeType) throws NXException, RemoteException
parentIndex
- parent indexchildIndex
- child indexnodeType
- the stack type methodNXException
RemoteException
void updateFastenerStacks(int parentIndex, boolean updateScrew, boolean updatePocket) throws NXException, RemoteException
parentIndex
- parent indexupdateScrew
- whether to update screwupdatePocket
- whether to update pocketNXException
RemoteException
void updateHoleData(int inx, double originheight, Point3d originPoint, boolean threadhole, boolean blindhole) throws NXException, RemoteException
inx
- parent indexoriginheight
- origin height in hole dataoriginPoint
- origin point in hole datathreadhole
- whether the hole is thread holeblindhole
- whether the hole is blind holeNXException
RemoteException
void createReusablePocket(boolean commit) throws NXException, RemoteException
commit
- whether to create pocketNXException
RemoteException
void deleteReusablePocket() throws NXException, RemoteException
NXException
RemoteException
void selectScrewSize(int inx, double diameter, double origindiameter, boolean selDiameter) throws NXException, RemoteException
inx
- parent indexdiameter
- diameter in hole dataorigindiameter
- origin diameter in hole dataselDiameter
- whether to select diameterNXException
RemoteException
AddReusablePart createReusableBuilder(int parentIndex, int childIndex, FastenerAssy.StackTypeMethod nodeType) throws NXException, RemoteException
parentIndex
- parent node index in the fastener assemblychildIndex
- child node index in the fastener assemblynodeType
- the stack type methodAddReusablePart
instanceNXException
RemoteException
void substituteFastenerStack(int parentIndex, int childIndex, FastenerAssy.StackTypeMethod nodeType, String partFile, String krxFile, String libName, String pathInLib, String lengthMatch, String fullPath) throws NXException, RemoteException
parentIndex
- parent node index in the fastener assemblychildIndex
- child node index in the fastener assemblynodeType
- the stack type methodpartFile
- part file krxFile
- krx file libName
- library name pathInLib
- library path lengthMatch
- the length match from fastener data and given node fullPath
- screw file full path NXException
RemoteException
void saveUdoData() throws NXException, RemoteException
NXException
RemoteException
void setFastenerMode(FastenerAssy.ModeMethod modeMethod) throws NXException, RemoteException
modeMethod
- NXException
RemoteException
FastenerAssy.ModeMethod getFastenerMode() throws NXException, RemoteException
NXException
RemoteException
void eraseAssemblyData(int parentIndex) throws NXException, RemoteException
parentIndex
- parent indexNXException
RemoteException
void updateHolePostion(int parentIndex, Point3d dirOne, Point3d tempPnt, Point3d pointOne, double height, double orignHeight, double offSetDistance) throws NXException, RemoteException
parentIndex
- parent node indexdirOne
- direction in hole datatempPnt
- position in hole datapointOne
- origin position in hole dataheight
- height in hole dataorignHeight
- origin height in hole dataoffSetDistance
- offset distance in hole dataNXException
RemoteException
void setReuseBuilder(int index, FastenerAssy.StackTypeMethod nodeType, int childIndex, Component partOcc) throws NXException, RemoteException
index
- parent node index in fastener assemblynodeType
- the stack type methodchildIndex
- child hole index in fastener assemblypartOcc
- new part occruanceNXException
RemoteException
void renameParentNode(int index, String newname) throws NXException, RemoteException
index
- parent node index in fastener assemblynewname
- new name for the parent node NXException
RemoteException
void createArrayHole(int index) throws NXException, RemoteException
index
- the hole index in the fastener assemblyNXException
RemoteException
void deleteArrayHole(int index) throws NXException, RemoteException
index
- the hole index in the fastener assemblyNXException
RemoteException
void initPocketBuilder() throws NXException, RemoteException
NXException
RemoteException
void updateTopBottomStacks(int index, FastenerAssy.SelectionObjectMethod type, boolean isSameFace, NXObject face) throws NXException, RemoteException
index
- parent node index in fastener assemblytype
- top object or bottom object typeisSameFace
- whether the fastener assembly is same faceface
- top or bottom faceNXException
RemoteException
void readAssemblyConfigure(int holeNum, Component partOcc) throws NXException, RemoteException
holeNum
- hole numpartOcc
- parent node part occuranceNXException
RemoteException
void setAssemblyExtentLength(int index, double extentLength) throws NXException, RemoteException
index
- hole index in fastener assemblyextentLength
- The extent Length of the fastener assemblyNXException
RemoteException
void updateDefaultStandard(int index, String standard, String form, String type) throws NXException, RemoteException
index
- The hole index in hole map datastandard
- The default hole standard type in the assembly configuration form
- The default hole form in the assembly configuration type
- The default hole screw type in the assembly configuration NXException
RemoteException
void removeSelectedHole() throws NXException, RemoteException
NXException
RemoteException
void addRemovalHoleIndex(int index) throws NXException, RemoteException
index
- The hole index in the fastener assembly to be removedNXException
RemoteException
void updateStackPosition(int parentIndex, int childIndex, FastenerAssy.StackTypeMethod nodeType, double deltaLength) throws NXException, RemoteException
parentIndex
- parent indexchildIndex
- child indexnodeType
- node typedeltaLength
- the stack length to be changedNXException
RemoteException
void setReusablePocketBuilder(ReusablePocketBuilder pocketTag) throws NXException, RemoteException
pocketTag
- The reusable component pocket builderNXException
RemoteException
ReusablePocketBuilder getReusablePocketBuilder() throws NXException, RemoteException
NXException
RemoteException
void eraseFastenerAssemblyData(int index) throws NXException, RemoteException
index
- The hole index in the fastener assembly to be removedNXException
RemoteException
void setBlindHole(int inx, boolean blindhole) throws NXException, RemoteException
inx
- parent indexblindhole
- whether the hole is blind holeNXException
RemoteException
Copyright 2011 Siemens Product Lifecycle Management Software Inc. All Rights Reserved.