NX Open C++ Reference Guide
|
Represents a NXOpen::Tooling::AddReusablePart
To create a new instance of this class, use NXOpen::Tooling::AddReusablePartCollection::CreateBuilder
Default values.
More...
Public Types | |
enum | ComponentMode { ComponentModeNormal = 1, ComponentModeCadenas = 3 } |
Represents the component type of the added part. More... | |
enum | ModeMethod { ModeMethodAdd = 1, ModeMethodEdit } |
Represents adding or editing a reusable component mode method. More... | |
enum | PocketBodyMethod { PocketBodyMethodNone = 1, PocketBodyMethodUpdate, PocketBodyMethodDelete } |
Represents save pocket body information, updating or deleting a pocket body size mode method. More... | |
enum | PositionMethod { PositionMethodInvalid = -1, PositionMethodAbsolute, PositionMethodMate, PositionMethodReposition, PositionMethodWcs, PositionMethodPosition, PositionMethodPoint = 15, PositionMethodInferredOny, PositionMethodRouting } |
Represents the position method. More... | |
Public Member Functions | |
void | AddClonePartName (const NXString &clonedpartname) |
Adds clone part name Created in NX9.0.0. More... | |
void | AddClonePartName (const char *clonedpartname) |
Adds clone part name Created in NX9.0.0. More... | |
void | AddComponentMode (NXOpen::Tooling::AddReusablePart::ModeMethod modeMethod) |
Adds mode for a reusable component Created in NX9.0.0. More... | |
void | AddComponentProperty (const NXString &compName, const NXString &refsetName, int layer) |
Adds Component Properties Created in NX9.0.0. More... | |
void | AddComponentProperty (const char *compName, const char *refsetName, int layer) |
Adds Component Properties Created in NX9.0.0. More... | |
void | AddCriteriaToInstance (bool hasCriteria, const NXString &expStr, const NXString &addValue) |
Sets criteria into instance Created in NX11.0.0. More... | |
void | AddCriteriaToInstance (bool hasCriteria, const char *expStr, const char *addValue) |
Sets criteria into instance Created in NX11.0.0. More... | |
void | AddHoleInstance (const NXOpen::Point3d &inputDirection, const NXOpen::Point3d &inputPostion) |
Adds series of reusable components in holes Created in NX9.0.0. More... | |
void | AddHoleInstanceForCsys (const NXOpen::Point3d &inputDirection, const NXOpen::Point3d &inputPostion, NXOpen::NXObject *selCsys) |
Adds series of reusable components in csys Created in NX11.0.1. More... | |
void | AddNewInstance (NXOpen::Assemblies::Component *partOcc, int index) |
Adds a new instance Created in NX9.0.0. More... | |
void | AddPartOccurance (NXOpen::Assemblies::Component *partOcc) |
Adds occurance into the part data Created in NX9.0.0. More... | |
void | AffirmReusableComponent () |
Affirms insertion of the reusable component Created in NX9.0.0. More... | |
NXOpen::Assemblies::ComponentPatternBuilder * | ComponentPatternBuilder () |
Returns the current component pattern builder Created in NX11.0.0. More... | |
NXOpen::Tooling::AddReusablePart::ComponentMode | ComponentType () |
Returns the current component type Created in NX11.0.0. More... | |
void | ConstructParametersData () |
Constructs the parameters data, reads data from part family or spreadsheet and updates the parameter data in the part Created in NX9.0.0. More... | |
NXOpen::Tooling::CloneObject * | CreateCloneObject (NXOpen::Tooling::ToolingApplication applicationType, const NXString &assemName) |
Creates the clone operation object. More... | |
NXOpen::Tooling::CloneObject * | CreateCloneObject (NXOpen::Tooling::ToolingApplication applicationType, const char *assemName) |
Creates the clone operation object. More... | |
void | CreateComponents (int count, NXOpen::NXObject *selobj) |
Creates an array instance of a component Created in NX9.0.0. More... | |
void | CreatePatternComponent (bool createPattern) |
Create the pattern component when the positioining pattern sketch feature is not exsit; edit pattern component when the positioining pattern feature is exsit Created in NX11.0.0. More... | |
void | CreatePositioningFeatureOnPoint (NXOpen::NXObject *selobj, const NXOpen::Point3d &inputPosition, bool centerFace) |
Create positioning feature on the given position Created in NX11.0.0. More... | |
void | CreateReusableConstraints (int index) |
Creates constraints for the reusable component Created in NX9.0.0. More... | |
void | CreateReusablePocket (bool commit) |
Creates pocket for a reusable component Created in NX9.0.0. More... | |
void | DeleteComponents (int count) |
Deletes an array instance of a component Created in NX9.0.0. More... | |
void | DeleteReusableConstraints () |
Deletes constraints for the reusable component Created in NX9.0.0. More... | |
void | DeleteReusablePocket () |
Deletes pocket for a reusable component Created in NX9.0.0. More... | |
void | DestroyReusableBuilder () |
Destroys reusable builder data Created in NX9.0.0. More... | |
void | EditReusableComponent (NXOpen::Assemblies::Component *partOcc) |
Edits a reusable component Created in NX9.0.0. More... | |
NXOpen::Features::Feature * | FindPositioningFeatureSet () |
Find the positioning feature set by pattern sketch. More... | |
NXOpen::NXObject * | GetAttachedGeometry () |
Gets the attached geometry, this is mainly used to get the initial parameter. More... | |
NXOpen::Tooling::CloneObject * | GetCloneObject () |
Gets the clone operation object. More... | |
std::vector < NXOpen::Assemblies::Component * > | GetDesignElement () |
Gets an array of design elements. More... | |
NXOpen::Point3d | GetInitialPosition () |
Gets the initial location, this is mainly used to get default add location of a reusable component. More... | |
NXOpen::Part * | GetParentPart () |
Gets the parent part, this is mainly used to get context work part of a reusable component. More... | |
NXOpen::Tooling::ReusablePocketBuilder * | GetReusablePocketBuilder () |
Gets the reusable pocket builder. More... | |
NXOpen::Tooling::SpreadsheetData * | GetSpreadsheetData () |
Gets the spreadsheet data, this is mainly used to get the attributes of a reusable component. More... | |
void | InsertReusableComponent (int instIndex, bool needTransform) |
Inserts the component into the part data Created in NX9.0.0. More... | |
void | LoadReusableComponent (const NXString &krxFile) |
Loads the reusable component Created in NX9.0.0. More... | |
void | LoadReusableComponent (const char *krxFile) |
Loads the reusable component Created in NX9.0.0. More... | |
void | ModifyParametersByRow (int index) |
Modify parameters according to row index. More... | |
void | MoveReusableComponent (const NXOpen::Vector3d &translation, const NXOpen::Matrix3x3 &rotation, int index) |
Moves a reusable component to a selected position Created in NX9.0.0. More... | |
NXOpen::Sketch * | PositioningFeature () |
Returns the positioning feature that needed for reusable component Created in NX11.0.0. More... | |
NXOpen::Tooling::AddReusablePart::PositionMethod | PositionMode () |
Returns the current position method. More... | |
void | RecordReusableComponent (const NXString &fileName) |
Records the existing reusable component with the same name Created in NX9.0.0. More... | |
void | RecordReusableComponent (const char *fileName) |
Records the existing reusable component with the same name Created in NX9.0.0. More... | |
void | RemoveDesignElement () |
Removes design element component Created in NX9.0.0. More... | |
void | RemoveFamilyInstance (NXOpen::Part *part) |
Removes an instance of a part family member Created in NX11.0.0. More... | |
void | RemoveOldInstance (int index) |
Removes the instance from the part data Created in NX9.0.0. More... | |
void | RemoveReusableComponent (int index) |
Removes a reusable component Created in NX9.0.0. More... | |
void | ReplaceReusableComponent () |
Replace reusable component Created in NX11.0.0. More... | |
NXOpen::NXObject * | ReverseComponentDirection (const NXOpen::Point3d &inputPosition, const NXOpen::Point3d &inputDirection, double length, const NXOpen::Point3d &outputPosition, const NXOpen::Point3d &outputDirection) |
Reverses the direction of the reusable component if the reusable component is placed on a face. More... | |
void | ReversePreviewComponent (const NXOpen::Point3d &rememberDir) |
Reverses the direction of the reusable component if the reusable component is not placed on a face. More... | |
void | SaveLibraryPath (const NXString &libName, const NXString &libpath) |
Saves the library name and path of the reusable component Created in NX9.0.0. More... | |
void | SaveLibraryPath (const char *libName, const char *libpath) |
Saves the library name and path of the reusable component Created in NX9.0.0. More... | |
void | SavePositioningOriginPlacement (const NXString &positionOffSet, int placementOriginIndex) |
Keep positioning offset and placement index Created in NX11.0.0. More... | |
void | SavePositioningOriginPlacement (const char *positionOffSet, int placementOriginIndex) |
Keep positioning offset and placement index Created in NX11.0.0. More... | |
void | SetAttachedGeometry (NXOpen::NXObject *part) |
Sets the attached geometry, this is mainly used to set the initial parameter Created in NX9.0.0. More... | |
void | SetCloneObject (NXOpen::Tooling::CloneObject *cloneObject) |
Sets the clone operation object Created in NX9.0.0. More... | |
void | SetComponentHandleToPoint () |
Keep the reusable component handle information into its associated pattern point Created in NX11.0.0. More... | |
void | SetComponentPatternBuilder (NXOpen::Assemblies::ComponentPatternBuilder *patternComponentBuilderTag) |
Sets the current component pattern builder Created in NX11.0.0. More... | |
void | SetComponentProperties (const NXString &referenceSetName, const NXString &componentName, int layer) |
Sets the reusable component properties Created in NX9.0.0. More... | |
void | SetComponentProperties (const char *referenceSetName, const char *componentName, int layer) |
Sets the reusable component properties Created in NX9.0.0. More... | |
void | SetComponentToReplace (int index, NXOpen::Assemblies::Component *replaceComponent) |
Sets the selected component to replace Created in NX11.0.0. More... | |
void | SetComponentType (NXOpen::Tooling::AddReusablePart::ComponentMode partType) |
Sets the current component type Created in NX11.0.0. More... | |
void | SetEnablePreview (bool isTrunOn) |
Sets the toggle of the Preview widget Created in NX9.0.0. More... | |
void | SetInitialPosition (const NXOpen::Point3d &dropLocation) |
Sets the initial location, this is mainly used to set default add location of a reusable component Created in NX9.0.0. More... | |
void | SetParentPart (NXOpen::Part *part) |
Sets the parent part, this is mainly used to set context work part of a reusable component Created in NX9.0.0. More... | |
void | SetPositioningFeature (NXOpen::Sketch *sketch) |
Sets the positioning feature that needed for reusable component Created in NX11.0.0. More... | |
void | SetPositionMode (NXOpen::Tooling::AddReusablePart::PositionMethod positionMode) |
Sets the current position method. More... | |
void | SetReplaceTemplate (NXOpen::Part *replaceTemplate) |
Sets the replace template part Created in NX11.0.0. More... | |
void | SetReusablePocketBuilder (NXOpen::Tooling::ReusablePocketBuilder *pocketTag) |
Sets the reusable pocket builder Created in NX9.0.0. More... | |
void | SetSearchGeometry (bool isTrunOn) |
Sets the search geometry for a reusable component Created in NX9.0.0. More... | |
void | SetSpreadsheetData (NXOpen::Tooling::SpreadsheetData *spreadsheetData) |
Sets the spreadsheet data, this is mainly used to set the attributes of a reusable component Created in NX9.0.0. More... | |
void | SetUpdateComponentName (bool updateComponentName) |
Sets the update component name for a reusable component Created in NX12.0.0. More... | |
void | SubtituteReusableComponent (bool substituteInstance) |
Subtitutes a reusable part Created in NX9.0.0. More... | |
void | UpdateCadenasParameter (const NXString ¶Name, const NXString ¶Value) |
Updates the CADENAS component by given parameter name and value, the name can also be retrieved by calling the following methods. More... | |
void | UpdateCadenasParameter (const char *paraName, const char *paraValue) |
Updates the CADENAS component by given parameter name and value, the name can also be retrieved by calling the following methods. More... | |
void | UpdatePartData () |
Updates the part data of a reusable component Created in NX9.0.0. More... | |
void | UpdatePocketBody (bool createPattern, NXOpen::Tooling::AddReusablePart::PocketBodyMethod updatePocketBody) |
Update pocket body for mw library reusable component Created in NX11.0.0. More... | |
void | UpdatePositioningOffset (const NXString &positionOffSet) |
Update positioning offset Created in NX11.0.0. More... | |
void | UpdatePositioningOffset (const char *positionOffSet) |
Update positioning offset Created in NX11.0.0. More... | |
void | UpdateReusableComponent () |
Updates the part data for a reusable component, this is mainly used to update parameter for a reusable component Created in NX9.0.0. More... | |
void | UpdateReusablePocket () |
Updates the pocket for a reusable component Created in NX9.0.0. More... | |
Public Member Functions inherited from NXOpen::Builder | |
NXOpen::NXObject * | Commit () |
Commits any edits that have been applied to the builder. More... | |
void | Destroy () |
Deletes the builder, and cleans up any objects created by the builder. More... | |
std::vector< NXOpen::NXObject * > | GetCommittedObjects () |
For builders that create more than one object, this method returns the objects that are created by commit. More... | |
NXOpen::NXObject * | GetObject () |
Returns the object currently being edited by this builder. More... | |
void | ShowResults () |
Updates the model to reflect the result of an edit to the model for all builders that support showing results. More... | |
virtual bool | Validate () |
Validate whether the inputs to the component are sufficient for commit to be called. More... | |
Public Member Functions inherited from NXOpen::TaggedObject | |
tag_t | Tag () const |
Returns the tag of this object. More... | |
Represents a NXOpen::Tooling::AddReusablePart
To create a new instance of this class, use NXOpen::Tooling::AddReusablePartCollection::CreateBuilder
Default values.
Property | Value |
---|---|
ComponentPatternBuilder.PatternService.AlongPathDefinition.XOnPathSpacing.NCopies.Value |
2 |
ComponentPatternBuilder.PatternService.AlongPathDefinition.XOnPathSpacing.SpaceType |
Offset |
ComponentPatternBuilder.PatternService.AlongPathDefinition.XPathOption |
Offset |
ComponentPatternBuilder.PatternService.AlongPathDefinition.YDirectionOption |
Section |
ComponentPatternBuilder.PatternService.AlongPathDefinition.YOnPathSpacing.NCopies.Value |
1 |
ComponentPatternBuilder.PatternService.AlongPathDefinition.YPathOption |
Offset |
ComponentPatternBuilder.PatternService.AlongPathDefinition.YSpacing.NCopies.Value |
1 |
ComponentPatternBuilder.PatternService.AlongPathDefinition.YSpacing.PitchDistance.Value |
10 (millimeters part), 1 (inches part) |
ComponentPatternBuilder.PatternService.AlongPathDefinition.YSpacing.SpaceType |
Offset |
ComponentPatternBuilder.PatternService.AlongPathDefinition.YSpacing.SpanDistance.Value |
100 (millimeters part), 10 (inches part) |
ComponentPatternBuilder.PatternService.CircularDefinition.AngularSpacing.NCopies.Value |
12 |
ComponentPatternBuilder.PatternService.CircularDefinition.AngularSpacing.PitchAngle.Value |
30 |
ComponentPatternBuilder.PatternService.CircularDefinition.AngularSpacing.PitchDistance.Value |
10 (millimeters part), 1 (inches part) |
ComponentPatternBuilder.PatternService.CircularDefinition.AngularSpacing.SpaceType |
Offset |
ComponentPatternBuilder.PatternService.CircularDefinition.AngularSpacing.SpanAngle.Value |
360 (millimeters part), 360 (inches part) |
ComponentPatternBuilder.PatternService.CircularDefinition.AngularSpacing.UsePitchOption |
Angle |
ComponentPatternBuilder.PatternService.CircularDefinition.CreateLastStaggered |
true |
ComponentPatternBuilder.PatternService.CircularDefinition.HorizontalRef.RotationAngle.Value |
0 (millimeters part), 0 (inches part) |
ComponentPatternBuilder.PatternService.CircularDefinition.IncludeSeedToggle |
true |
ComponentPatternBuilder.PatternService.CircularDefinition.RadialSpacing.NCopies.Value |
1 |
ComponentPatternBuilder.PatternService.CircularDefinition.StaggerType |
None |
ComponentPatternBuilder.PatternService.HelixDefinition.AnglePitch.Value |
30 |
ComponentPatternBuilder.PatternService.HelixDefinition.CountOfInstances.Value |
6 |
ComponentPatternBuilder.PatternService.HelixDefinition.DirectionType |
Righthand |
ComponentPatternBuilder.PatternService.HelixDefinition.DistancePitch.Value |
10 (millimeters part), 0.4 (inches part) |
ComponentPatternBuilder.PatternService.HelixDefinition.HelixPitch.Value |
50 (millimeters part), 2 (inches part) |
ComponentPatternBuilder.PatternService.HelixDefinition.HelixSpan.Value |
100 (millimeters part), 4 (inches part) |
ComponentPatternBuilder.PatternService.HelixDefinition.NumberOfTurns.Value |
2 |
ComponentPatternBuilder.PatternService.HelixDefinition.SizeOption |
CountAngleDistance |
ComponentPatternBuilder.PatternService.PatternFill.FillMargin.Value |
0 (millimeters part), 0 (inches part) |
ComponentPatternBuilder.PatternService.PatternFill.FillOptions |
None |
ComponentPatternBuilder.PatternService.PatternFill.SimplifiedBoundaryToggle |
False |
ComponentPatternBuilder.PatternService.PatternOrientation.AlongOrientationOption |
NormalToPath |
ComponentPatternBuilder.PatternService.PatternOrientation.CircularOrientationOption |
FollowPattern |
ComponentPatternBuilder.PatternService.PatternOrientation.FollowFaceProjDirOption |
PatternPlaneNormal |
ComponentPatternBuilder.PatternService.PatternOrientation.GeneralOrientationOption |
Fixed |
ComponentPatternBuilder.PatternService.PatternOrientation.HelixOrientationOption |
FollowPattern |
ComponentPatternBuilder.PatternService.PatternOrientation.LinearOrientationOption |
Fixed |
ComponentPatternBuilder.PatternService.PatternOrientation.MirrorOrientationOption |
FollowPattern |
ComponentPatternBuilder.PatternService.PatternOrientation.OrientationOption |
Fixed |
ComponentPatternBuilder.PatternService.PatternOrientation.PolygonOrientationOption |
FollowPattern |
ComponentPatternBuilder.PatternService.PatternOrientation.SpiralOrientationOption |
FollowPattern |
ComponentPatternBuilder.PatternService.PatternType |
Linear |
ComponentPatternBuilder.PatternService.PolygonDefinition.NumberOfSides.Value |
6 |
ComponentPatternBuilder.PatternService.PolygonDefinition.PolygonSizeOption |
Inscribed |
ComponentPatternBuilder.PatternService.PolygonDefinition.PolygonSpacing.NCopies.Value |
4 |
ComponentPatternBuilder.PatternService.PolygonDefinition.PolygonSpacing.PitchDistance.Value |
25 (millimeters part), 1 (inches part) |
ComponentPatternBuilder.PatternService.PolygonDefinition.PolygonSpacing.SpaceType |
Offset |
ComponentPatternBuilder.PatternService.PolygonDefinition.PolygonSpacing.SpanAngle.Value |
360 |
ComponentPatternBuilder.PatternService.PolygonDefinition.RadialSpacing.NCopies.Value |
1 |
ComponentPatternBuilder.PatternService.PolygonDefinition.RadialSpacing.PitchDistance.Value |
25 (millimeters part), 1 (inches part) |
ComponentPatternBuilder.PatternService.PolygonDefinition.RadialSpacing.SpanDistance.Value |
100 (millimeters part), 4 (inches part) |
ComponentPatternBuilder.PatternService.RectangularDefinition.CreateLastStaggered |
true |
ComponentPatternBuilder.PatternService.RectangularDefinition.SimplifiedLayoutType |
Square |
ComponentPatternBuilder.PatternService.RectangularDefinition.StaggerType |
None |
ComponentPatternBuilder.PatternService.RectangularDefinition.XSpacing.NCopies.Value |
2 |
ComponentPatternBuilder.PatternService.RectangularDefinition.YSpacing.NCopies.Value |
1 |
ComponentPatternBuilder.PatternService.SpiralDefinition.DirectionType |
Lefthand |
ComponentPatternBuilder.PatternService.SpiralDefinition.NumberOfTurns.Value |
1 (millimeters part), 1 (inches part) |
ComponentPatternBuilder.PatternService.SpiralDefinition.RadialPitch.Value |
50 (millimeters part), 2 (inches part) |
ComponentPatternBuilder.PatternService.SpiralDefinition.SizeSpiralType |
NumberOfTurns |
ComponentPatternBuilder.PatternService.SpiralDefinition.TotalAngle.Value |
360 (millimeters part), 360 (inches part) |
Created in NX5.0.0.
Represents the position method.
void NXOpen::Tooling::AddReusablePart::AddClonePartName | ( | const NXString & | clonedpartname | ) |
Adds clone part name
Created in NX9.0.0.
License requirements : None
clonedpartname | The new clone part name |
void NXOpen::Tooling::AddReusablePart::AddClonePartName | ( | const char * | clonedpartname | ) |
Adds clone part name
Created in NX9.0.0.
License requirements : None
clonedpartname | The new clone part name |
void NXOpen::Tooling::AddReusablePart::AddComponentMode | ( | NXOpen::Tooling::AddReusablePart::ModeMethod | modeMethod | ) |
Adds mode for a reusable component
Created in NX9.0.0.
License requirements : None
modeMethod | mode method |
void NXOpen::Tooling::AddReusablePart::AddComponentProperty | ( | const NXString & | compName, |
const NXString & | refsetName, | ||
int | layer | ||
) |
Adds Component Properties
Created in NX9.0.0.
License requirements : None
compName | The name of the reference set used to represent the new component |
refsetName | The layer to place the new component on |
layer | layer |
void NXOpen::Tooling::AddReusablePart::AddComponentProperty | ( | const char * | compName, |
const char * | refsetName, | ||
int | layer | ||
) |
Adds Component Properties
Created in NX9.0.0.
License requirements : None
compName | The name of the reference set used to represent the new component |
refsetName | The layer to place the new component on |
layer | layer |
void NXOpen::Tooling::AddReusablePart::AddCriteriaToInstance | ( | bool | hasCriteria, |
const NXString & | expStr, | ||
const NXString & | addValue | ||
) |
Sets criteria into instance
Created in NX11.0.0.
License requirements : None
hasCriteria | hascriteria |
expStr | expstr |
addValue | addvalue |
void NXOpen::Tooling::AddReusablePart::AddCriteriaToInstance | ( | bool | hasCriteria, |
const char * | expStr, | ||
const char * | addValue | ||
) |
Sets criteria into instance
Created in NX11.0.0.
License requirements : None
hasCriteria | hascriteria |
expStr | expstr |
addValue | addvalue |
void NXOpen::Tooling::AddReusablePart::AddHoleInstance | ( | const NXOpen::Point3d & | inputDirection, |
const NXOpen::Point3d & | inputPostion | ||
) |
Adds series of reusable components in holes
Created in NX9.0.0.
License requirements : None
inputDirection | The input direction of component |
inputPostion | The input position of componnent |
void NXOpen::Tooling::AddReusablePart::AddHoleInstanceForCsys | ( | const NXOpen::Point3d & | inputDirection, |
const NXOpen::Point3d & | inputPostion, | ||
NXOpen::NXObject * | selCsys | ||
) |
Adds series of reusable components in csys
Created in NX11.0.1.
License requirements : None
inputDirection | The input direction of component |
inputPostion | The input position of componnent |
selCsys | The input csys of component |
void NXOpen::Tooling::AddReusablePart::AddNewInstance | ( | NXOpen::Assemblies::Component * | partOcc, |
int | index | ||
) |
Adds a new instance
Created in NX9.0.0.
License requirements : None
partOcc | Add the new occurance into the part data |
index | The index of component instance |
void NXOpen::Tooling::AddReusablePart::AddPartOccurance | ( | NXOpen::Assemblies::Component * | partOcc | ) |
Adds occurance into the part data
Created in NX9.0.0.
License requirements : None
partOcc | The component occurance to add in the part data |
void NXOpen::Tooling::AddReusablePart::AffirmReusableComponent | ( | ) |
Affirms insertion of the reusable component
Created in NX9.0.0.
License requirements : None
NXOpen::Assemblies::ComponentPatternBuilder* NXOpen::Tooling::AddReusablePart::ComponentPatternBuilder | ( | ) |
Returns the current component pattern builder
Created in NX11.0.0.
License requirements : None
NXOpen::Tooling::AddReusablePart::ComponentMode NXOpen::Tooling::AddReusablePart::ComponentType | ( | ) |
Returns the current component type
Created in NX11.0.0.
License requirements : None
void NXOpen::Tooling::AddReusablePart::ConstructParametersData | ( | ) |
Constructs the parameters data, reads data from part family or spreadsheet and updates the parameter data in the part
Created in NX9.0.0.
License requirements : None
NXOpen::Tooling::CloneObject* NXOpen::Tooling::AddReusablePart::CreateCloneObject | ( | NXOpen::Tooling::ToolingApplication | applicationType, |
const NXString & | assemName | ||
) |
Creates the clone operation object.
applicationType | Wizard type |
assemName | Project assembly name |
NXOpen::Tooling::CloneObject* NXOpen::Tooling::AddReusablePart::CreateCloneObject | ( | NXOpen::Tooling::ToolingApplication | applicationType, |
const char * | assemName | ||
) |
Creates the clone operation object.
applicationType | Wizard type |
assemName | Project assembly name |
void NXOpen::Tooling::AddReusablePart::CreateComponents | ( | int | count, |
NXOpen::NXObject * | selobj | ||
) |
Creates an array instance of a component
Created in NX9.0.0.
License requirements : None
count | The count is array instance number |
selobj | The selected object is FACE type, the reusable component place on the face |
void NXOpen::Tooling::AddReusablePart::CreatePatternComponent | ( | bool | createPattern | ) |
Create the pattern component when the positioining pattern sketch feature is not exsit; edit pattern component when the positioining pattern feature is exsit
Created in NX11.0.0.
License requirements : None
createPattern | Flag to decide whether to create pattern component or edit, set flag as true to create and set flag false to edit |
void NXOpen::Tooling::AddReusablePart::CreatePositioningFeatureOnPoint | ( | NXOpen::NXObject * | selobj, |
const NXOpen::Point3d & | inputPosition, | ||
bool | centerFace | ||
) |
Create positioning feature on the given position
Created in NX11.0.0.
License requirements : None
selobj | The selected object is FACE type, the reusable component place on the face |
inputPosition | The input position |
centerFace | whether to use face center as location |
void NXOpen::Tooling::AddReusablePart::CreateReusableConstraints | ( | int | index | ) |
Creates constraints for the reusable component
Created in NX9.0.0.
License requirements : None
index | The index part is to create constraints |
void NXOpen::Tooling::AddReusablePart::CreateReusablePocket | ( | bool | commit | ) |
Creates pocket for a reusable component
Created in NX9.0.0.
License requirements : None
commit | if the variable is true, the component needs pocket |
void NXOpen::Tooling::AddReusablePart::DeleteComponents | ( | int | count | ) |
Deletes an array instance of a component
Created in NX9.0.0.
License requirements : None
count | The count is array instance number |
void NXOpen::Tooling::AddReusablePart::DeleteReusableConstraints | ( | ) |
Deletes constraints for the reusable component
Created in NX9.0.0.
License requirements : None
void NXOpen::Tooling::AddReusablePart::DeleteReusablePocket | ( | ) |
Deletes pocket for a reusable component
Created in NX9.0.0.
License requirements : None
void NXOpen::Tooling::AddReusablePart::DestroyReusableBuilder | ( | ) |
Destroys reusable builder data
Created in NX9.0.0.
License requirements : None
void NXOpen::Tooling::AddReusablePart::EditReusableComponent | ( | NXOpen::Assemblies::Component * | partOcc | ) |
Edits a reusable component
Created in NX9.0.0.
License requirements : None
partOcc | The component occurance to edit in the part data |
NXOpen::Features::Feature* NXOpen::Tooling::AddReusablePart::FindPositioningFeatureSet | ( | ) |
Find the positioning feature set by pattern sketch.
NXOpen::NXObject* NXOpen::Tooling::AddReusablePart::GetAttachedGeometry | ( | ) |
Gets the attached geometry, this is mainly used to get the initial parameter.
NXOpen::Tooling::CloneObject* NXOpen::Tooling::AddReusablePart::GetCloneObject | ( | ) |
Gets the clone operation object.
std::vector<NXOpen::Assemblies::Component *> NXOpen::Tooling::AddReusablePart::GetDesignElement | ( | ) |
Gets an array of design elements.
NXOpen::Point3d NXOpen::Tooling::AddReusablePart::GetInitialPosition | ( | ) |
Gets the initial location, this is mainly used to get default add location of a reusable component.
NXOpen::Part* NXOpen::Tooling::AddReusablePart::GetParentPart | ( | ) |
Gets the parent part, this is mainly used to get context work part of a reusable component.
NXOpen::Tooling::ReusablePocketBuilder* NXOpen::Tooling::AddReusablePart::GetReusablePocketBuilder | ( | ) |
Gets the reusable pocket builder.
NXOpen::Tooling::SpreadsheetData* NXOpen::Tooling::AddReusablePart::GetSpreadsheetData | ( | ) |
Gets the spreadsheet data, this is mainly used to get the attributes of a reusable component.
void NXOpen::Tooling::AddReusablePart::InsertReusableComponent | ( | int | instIndex, |
bool | needTransform | ||
) |
Inserts the component into the part data
Created in NX9.0.0.
License requirements : None
instIndex | The index of the new component being added in the part data |
needTransform | Whether the component needs to be transformed in the fastener assembly |
void NXOpen::Tooling::AddReusablePart::LoadReusableComponent | ( | const NXString & | krxFile | ) |
Loads the reusable component
Created in NX9.0.0.
License requirements : None
krxFile | The KRX file |
void NXOpen::Tooling::AddReusablePart::LoadReusableComponent | ( | const char * | krxFile | ) |
Loads the reusable component
Created in NX9.0.0.
License requirements : None
krxFile | The KRX file |
void NXOpen::Tooling::AddReusablePart::ModifyParametersByRow | ( | int | index | ) |
Modify parameters according to row index.
The number of the row is defined by the template data file.
Created in NX11.0.0.
License requirements : None
index | The index is the row of the template data file |
void NXOpen::Tooling::AddReusablePart::MoveReusableComponent | ( | const NXOpen::Vector3d & | translation, |
const NXOpen::Matrix3x3 & | rotation, | ||
int | index | ||
) |
Moves a reusable component to a selected position
Created in NX9.0.0.
License requirements : None
translation | The translation data |
rotation | The rotation data |
index | The reusable component index in the part data |
NXOpen::Sketch* NXOpen::Tooling::AddReusablePart::PositioningFeature | ( | ) |
Returns the positioning feature that needed for reusable component
Created in NX11.0.0.
License requirements : None
NXOpen::Tooling::AddReusablePart::PositionMethod NXOpen::Tooling::AddReusablePart::PositionMode | ( | ) |
Returns the current position method.
Created in NX5.0.0.
License requirements : None
void NXOpen::Tooling::AddReusablePart::RecordReusableComponent | ( | const NXString & | fileName | ) |
Records the existing reusable component with the same name
Created in NX9.0.0.
License requirements : None
fileName | The reusable component name |
void NXOpen::Tooling::AddReusablePart::RecordReusableComponent | ( | const char * | fileName | ) |
Records the existing reusable component with the same name
Created in NX9.0.0.
License requirements : None
fileName | The reusable component name |
void NXOpen::Tooling::AddReusablePart::RemoveDesignElement | ( | ) |
Removes design element component
Created in NX9.0.0.
License requirements : None
void NXOpen::Tooling::AddReusablePart::RemoveFamilyInstance | ( | NXOpen::Part * | part | ) |
Removes an instance of a part family member
Created in NX11.0.0.
License requirements : None
part | part |
void NXOpen::Tooling::AddReusablePart::RemoveOldInstance | ( | int | index | ) |
Removes the instance from the part data
Created in NX9.0.0.
License requirements : None
index | The index of component instance |
void NXOpen::Tooling::AddReusablePart::RemoveReusableComponent | ( | int | index | ) |
Removes a reusable component
Created in NX9.0.0.
License requirements : None
index | The reusable component index in the part data |
void NXOpen::Tooling::AddReusablePart::ReplaceReusableComponent | ( | ) |
Replace reusable component
Created in NX11.0.0.
License requirements : None
NXOpen::NXObject* NXOpen::Tooling::AddReusablePart::ReverseComponentDirection | ( | const NXOpen::Point3d & | inputPosition, |
const NXOpen::Point3d & | inputDirection, | ||
double | length, | ||
const NXOpen::Point3d & | outputPosition, | ||
const NXOpen::Point3d & | outputDirection | ||
) |
Reverses the direction of the reusable component if the reusable component is placed on a face.
inputPosition | The input position of componnent |
inputDirection | The input direction of componnent |
length | The input length of componnent |
outputPosition | The output position of componnent |
outputDirection | The output position of componnent |
void NXOpen::Tooling::AddReusablePart::ReversePreviewComponent | ( | const NXOpen::Point3d & | rememberDir | ) |
Reverses the direction of the reusable component if the reusable component is not placed on a face.
Created in NX9.0.0.
License requirements : None
rememberDir | The original position of component |
void NXOpen::Tooling::AddReusablePart::SaveLibraryPath | ( | const NXString & | libName, |
const NXString & | libpath | ||
) |
Saves the library name and path of the reusable component
Created in NX9.0.0.
License requirements : None
libName | Library name |
libpath | The path in the library |
void NXOpen::Tooling::AddReusablePart::SaveLibraryPath | ( | const char * | libName, |
const char * | libpath | ||
) |
Saves the library name and path of the reusable component
Created in NX9.0.0.
License requirements : None
libName | Library name |
libpath | The path in the library |
void NXOpen::Tooling::AddReusablePart::SavePositioningOriginPlacement | ( | const NXString & | positionOffSet, |
int | placementOriginIndex | ||
) |
Keep positioning offset and placement index
Created in NX11.0.0.
License requirements : None
positionOffSet | The positionging offset value that defined in the krx file |
placementOriginIndex | The positioning placement origin index that defined in the krx file |
void NXOpen::Tooling::AddReusablePart::SavePositioningOriginPlacement | ( | const char * | positionOffSet, |
int | placementOriginIndex | ||
) |
Keep positioning offset and placement index
Created in NX11.0.0.
License requirements : None
positionOffSet | The positionging offset value that defined in the krx file |
placementOriginIndex | The positioning placement origin index that defined in the krx file |
void NXOpen::Tooling::AddReusablePart::SetAttachedGeometry | ( | NXOpen::NXObject * | part | ) |
Sets the attached geometry, this is mainly used to set the initial parameter
Created in NX9.0.0.
License requirements : None
part | Geometry to calculate the initial parameter |
void NXOpen::Tooling::AddReusablePart::SetCloneObject | ( | NXOpen::Tooling::CloneObject * | cloneObject | ) |
Sets the clone operation object
Created in NX9.0.0.
License requirements : None
cloneObject | A NXOpen::Tooling::CloneObject instance |
void NXOpen::Tooling::AddReusablePart::SetComponentHandleToPoint | ( | ) |
Keep the reusable component handle information into its associated pattern point
Created in NX11.0.0.
License requirements : None
void NXOpen::Tooling::AddReusablePart::SetComponentPatternBuilder | ( | NXOpen::Assemblies::ComponentPatternBuilder * | patternComponentBuilderTag | ) |
Sets the current component pattern builder
Created in NX11.0.0.
License requirements : None
patternComponentBuilderTag | The reusable component pattern builder |
void NXOpen::Tooling::AddReusablePart::SetComponentProperties | ( | const NXString & | referenceSetName, |
const NXString & | componentName, | ||
int | layer | ||
) |
Sets the reusable component properties
Created in NX9.0.0.
License requirements : None
referenceSetName | The name of the reference set used to represent the new component |
componentName | The name of the new component |
layer | The layer to place the new component on |
void NXOpen::Tooling::AddReusablePart::SetComponentProperties | ( | const char * | referenceSetName, |
const char * | componentName, | ||
int | layer | ||
) |
Sets the reusable component properties
Created in NX9.0.0.
License requirements : None
referenceSetName | The name of the reference set used to represent the new component |
componentName | The name of the new component |
layer | The layer to place the new component on |
void NXOpen::Tooling::AddReusablePart::SetComponentToReplace | ( | int | index, |
NXOpen::Assemblies::Component * | replaceComponent | ||
) |
Sets the selected component to replace
Created in NX11.0.0.
License requirements : None
index | The index for component to replace |
replaceComponent | The component to replace |
void NXOpen::Tooling::AddReusablePart::SetComponentType | ( | NXOpen::Tooling::AddReusablePart::ComponentMode | partType | ) |
Sets the current component type
Created in NX11.0.0.
License requirements : None
partType | part type |
void NXOpen::Tooling::AddReusablePart::SetEnablePreview | ( | bool | isTrunOn | ) |
Sets the toggle of the Preview widget
Created in NX9.0.0.
License requirements : None
isTrunOn | Whehter preview toggle is turned on, which is on the add reusable component dialog |
void NXOpen::Tooling::AddReusablePart::SetInitialPosition | ( | const NXOpen::Point3d & | dropLocation | ) |
Sets the initial location, this is mainly used to set default add location of a reusable component
Created in NX9.0.0.
License requirements : None
dropLocation | Drop location to initial parameter |
void NXOpen::Tooling::AddReusablePart::SetParentPart | ( | NXOpen::Part * | part | ) |
Sets the parent part, this is mainly used to set context work part of a reusable component
Created in NX9.0.0.
License requirements : None
part | The parent part to place the component |
void NXOpen::Tooling::AddReusablePart::SetPositioningFeature | ( | NXOpen::Sketch * | sketch | ) |
Sets the positioning feature that needed for reusable component
Created in NX11.0.0.
License requirements : None
sketch | Positioning feature |
void NXOpen::Tooling::AddReusablePart::SetPositionMode | ( | NXOpen::Tooling::AddReusablePart::PositionMethod | positionMode | ) |
Sets the current position method.
Created in NX5.0.0.
License requirements : None
positionMode | position mode |
void NXOpen::Tooling::AddReusablePart::SetReplaceTemplate | ( | NXOpen::Part * | replaceTemplate | ) |
Sets the replace template part
Created in NX11.0.0.
License requirements : None
replaceTemplate | The replace template part |
void NXOpen::Tooling::AddReusablePart::SetReusablePocketBuilder | ( | NXOpen::Tooling::ReusablePocketBuilder * | pocketTag | ) |
Sets the reusable pocket builder
Created in NX9.0.0.
License requirements : None
pocketTag | The reusable component pocket builder |
void NXOpen::Tooling::AddReusablePart::SetSearchGeometry | ( | bool | isTrunOn | ) |
Sets the search geometry for a reusable component
Created in NX9.0.0.
License requirements : None
isTrunOn | Whehter the search geometry toggle is turned on, which is on the add reusable component dialog |
void NXOpen::Tooling::AddReusablePart::SetSpreadsheetData | ( | NXOpen::Tooling::SpreadsheetData * | spreadsheetData | ) |
Sets the spreadsheet data, this is mainly used to set the attributes of a reusable component
Created in NX9.0.0.
License requirements : None
spreadsheetData | Spreadsheet data |
void NXOpen::Tooling::AddReusablePart::SetUpdateComponentName | ( | bool | updateComponentName | ) |
Sets the update component name for a reusable component
Created in NX12.0.0.
License requirements : None
updateComponentName | Whehter the component name will be updated or not for copied part |
void NXOpen::Tooling::AddReusablePart::SubtituteReusableComponent | ( | bool | substituteInstance | ) |
Subtitutes a reusable part
Created in NX9.0.0.
License requirements : None
substituteInstance | Whether the resuable component needs to be substituted |
void NXOpen::Tooling::AddReusablePart::UpdateCadenasParameter | ( | const NXString & | paraName, |
const NXString & | paraValue | ||
) |
Updates the CADENAS component by given parameter name and value, the name can also be retrieved by calling the following methods.
NXOpen::Tooling::AddReusablePart::GetSpreadsheetData , NXOpen::Tooling::SpreadsheetData::GetParameterValue , NXOpen::Tooling::SpreadsheetDataParameter::ParameterName and NXOpen::Tooling::SpreadsheetDataParameter::SetParameterName
Created in NX11.0.0.
License requirements : None
paraName | The parameter name |
paraValue | The parameter value |
void NXOpen::Tooling::AddReusablePart::UpdateCadenasParameter | ( | const char * | paraName, |
const char * | paraValue | ||
) |
Updates the CADENAS component by given parameter name and value, the name can also be retrieved by calling the following methods.
NXOpen::Tooling::AddReusablePart::GetSpreadsheetData , NXOpen::Tooling::SpreadsheetData::GetParameterValue , NXOpen::Tooling::SpreadsheetDataParameter::ParameterName and NXOpen::Tooling::SpreadsheetDataParameter::SetParameterName
Created in NX11.0.0.
License requirements : None
paraName | The parameter name |
paraValue | The parameter value |
void NXOpen::Tooling::AddReusablePart::UpdatePartData | ( | ) |
Updates the part data of a reusable component
Created in NX9.0.0.
License requirements : None
void NXOpen::Tooling::AddReusablePart::UpdatePocketBody | ( | bool | createPattern, |
NXOpen::Tooling::AddReusablePart::PocketBodyMethod | updatePocketBody | ||
) |
Update pocket body for mw library reusable component
Created in NX11.0.0.
License requirements : None
createPattern | Flag to decide whether to create pocket body pattern or not |
updatePocketBody | Flag to decide whether to create pocket body, delete or update 0: add; 1: delete; 2:update |
void NXOpen::Tooling::AddReusablePart::UpdatePositioningOffset | ( | const NXString & | positionOffSet | ) |
Update positioning offset
Created in NX11.0.0.
License requirements : None
positionOffSet | The positionging offset value that defined in the krx file |
void NXOpen::Tooling::AddReusablePart::UpdatePositioningOffset | ( | const char * | positionOffSet | ) |
Update positioning offset
Created in NX11.0.0.
License requirements : None
positionOffSet | The positionging offset value that defined in the krx file |
void NXOpen::Tooling::AddReusablePart::UpdateReusableComponent | ( | ) |
Updates the part data for a reusable component, this is mainly used to update parameter for a reusable component
Created in NX9.0.0.
License requirements : None
void NXOpen::Tooling::AddReusablePart::UpdateReusablePocket | ( | ) |
Updates the pocket for a reusable component
Created in NX9.0.0.
License requirements : None