NX Open C++ 参考指南 2406 v1.1
载入中...
搜索中...
未找到
NXOpen::Tooling::AddReusablePart类 参考

添加可重用部件 更多...

#include <Tooling_AddReusablePart.hxx>

类 NXOpen::Tooling::AddReusablePart 继承关系图:
NXOpen::Builder NXOpen::TaggedObject NXOpen::GeometricUtilities::IComponentBuilder NXOpen::Features::AECDesign::AddReusablePartBuilder

Public 类型

enum  ComponentMode { ComponentModeNormal = 1 , ComponentModeCadenas = 3 }
enum  ModeMethod { ModeMethodAdd = 1 , ModeMethodEdit }
enum  PocketBodyMethod { PocketBodyMethodNone = 1 , PocketBodyMethodUpdate , PocketBodyMethodDelete }
enum  PositionMethod {
  PositionMethodInvalid = -1 , PositionMethodAbsolute , PositionMethodMate , PositionMethodReposition ,
  PositionMethodWcs , PositionMethodPosition , PositionMethodPoint = 15 , PositionMethodInferredOny ,
  PositionMethodRouting
}

Public 成员函数

void AddClonePartName (const char *clonedpartname)
void AddClonePartName (const NXString &clonedpartname)
void AddComponentMode (NXOpen::Tooling::AddReusablePart::ModeMethod modeMethod)
void AddComponentProperty (const char *compName, const char *refsetName, int layer)
void AddComponentProperty (const NXString &compName, const NXString &refsetName, int layer)
void AddCriteriaToInstance (bool hasCriteria, const char *expStr, const char *addValue)
void AddCriteriaToInstance (bool hasCriteria, const NXString &expStr, const NXString &addValue)
void AddHoleInstance (const NXOpen::Point3d &inputDirection, const NXOpen::Point3d &inputPostion)
void AddHoleInstanceForCsys (const NXOpen::Point3d &inputDirection, const NXOpen::Point3d &inputPostion, NXOpen::NXObject *selCsys)
void AddNewInstance (NXOpen::Assemblies::Component *partOcc, int index)
void AddPartOccurance (NXOpen::Assemblies::Component *partOcc)
void AddReuseablePartToPattern ()
void AffirmReusableComponent ()
std::vector< NXOpen::Assemblies::Component * > AffirmReusableComponents ()
void AssignStructureDesignerAttributes ()
NXOpen::Assemblies::ComponentPatternBuilderComponentPatternBuilder ()
NXOpen::Tooling::AddReusablePart::ComponentMode ComponentType ()
void ConstructParametersData ()
NXOpen::Tooling::CloneObjectCreateCloneObject (NXOpen::Tooling::ToolingApplication applicationType, const char *assemName)
NXOpen::Tooling::CloneObjectCreateCloneObject (NXOpen::Tooling::ToolingApplication applicationType, const NXString &assemName)
void CreateComponents (int count, NXOpen::NXObject *selobj)
NXOpen::PartFamily::InstanceSelectionCriteriaCreateCriteria (const char *expStr, const char *addValue)
NXOpen::PartFamily::InstanceSelectionCriteriaCreateCriteria (const NXString &expStr, const NXString &addValue)
void CreatePatternComponent (bool createPattern)
void CreatePositioningFeatureByPoint (NXOpen::NXObject *selobj, const NXOpen::Point3d &inputPosition, bool centerFace)
void CreatePositioningFeatureOnPoint (NXOpen::NXObject *selobj, const NXOpen::Point3d &inputPosition, bool centerFace)
void CreateReusableConstraints (int index)
void CreateReusablePocket (bool commit)
void DelayComponents (const std::vector< NXOpen::TaggedObject * > &objs)
void DeleteComponents (int count)
void DeleteReusableConstraints ()
void DeleteReusablePocket ()
void DestroyReusableBuilder ()
void EditReusableComponent (NXOpen::Assemblies::Component *partOcc)
NXOpen::Features::FeatureFindPositioningFeatureSet ()
NXOpen::NXObjectGetAttachedGeometry ()
NXOpen::Tooling::CloneObjectGetCloneObject ()
std::vector< NXOpen::Assemblies::Component * > GetDesignElement ()
NXOpen::Point3d GetInitialPosition ()
NXOpen::PartGetParentPart ()
NXOpen::Tooling::ReusablePocketBuilderGetReusablePocketBuilder ()
NXOpen::Tooling::SpreadsheetDataGetSpreadsheetData ()
void InsertReusableComponent (int instIndex, bool needTransform)
void LoadReusableComponent (const char *krxFile)
void LoadReusableComponent (const NXString &krxFile)
void ModifyParametersByRow (int index)
void MoveReusableComponent (const NXOpen::Vector3d &translation, const NXOpen::Matrix3x3 &rotation, int index)
NXOpen::SketchPositioningFeature ()
NXOpen::CoordinateSystemPositioningFeatureSeedCsys ()
NXOpen::Tooling::AddReusablePart::PositionMethod PositionMode ()
void PostUpdate ()
void RecordReusableComponent (const char *fileName)
void RecordReusableComponent (const NXString &fileName)
void RemoveDesignElement ()
void RemoveFamilyInstance (NXOpen::Part *part)
void RemoveOldInstance (int index)
void RemoveReusableComponent (int index)
void RenamePart (const char *partName)
void RenamePart (const NXString &partName)
void ReplaceReusableComponent ()
bool ReselectObject ()
NXOpen::NXObjectReverseComponentDirection (const NXOpen::Point3d &inputPosition, const NXOpen::Point3d &inputDirection, double length, const NXOpen::Point3d &outputPosition, const NXOpen::Point3d &outputDirection)
void ReverseDirection ()
void ReversePreviewComponent (const NXOpen::Point3d &rememberDir)
void SaveLibraryPath (const char *libName, const char *libpath)
void SaveLibraryPath (const NXString &libName, const NXString &libpath)
void SavePositioningOriginPlacement (const char *positionOffSet, int placementOriginIndex)
void SavePositioningOriginPlacement (const NXString &positionOffSet, int placementOriginIndex)
void SetAttachedGeometry (NXOpen::NXObject *part)
void SetCloneObject (NXOpen::Tooling::CloneObject *cloneObject)
void SetComponentHandleToPoint ()
void SetComponentPatternBuilder (NXOpen::Assemblies::ComponentPatternBuilder *patternComponentBuilderTag)
void SetComponentProperties (const char *referenceSetName, const char *componentName, int layer)
void SetComponentProperties (const NXString &referenceSetName, const NXString &componentName, int layer)
void SetComponentToReplace (int index, NXOpen::Assemblies::Component *replaceComponent)
void SetComponentType (NXOpen::Tooling::AddReusablePart::ComponentMode partType)
void SetEnablePreview (bool isTrunOn)
void SetInitialPosition (const NXOpen::Point3d &dropLocation)
void SetParentPart (NXOpen::Part *part)
void SetPositioningFeature (NXOpen::Sketch *sketch)
void SetPositioningFeatureSeedCsys (NXOpen::CoordinateSystem *seedCsys)
void SetPositionMode (NXOpen::Tooling::AddReusablePart::PositionMethod positionMode)
void SetReplaceTemplate (NXOpen::Part *replaceTemplate)
void SetReselectObject (bool isReselectObject)
void SetReusablePocketBuilder (NXOpen::Tooling::ReusablePocketBuilder *pocketTag)
void SetSearchGeometry (bool isTrunOn)
void SetSpreadsheetData (NXOpen::Tooling::SpreadsheetData *spreadsheetData)
void SetStructureDesignerPart (bool isStructureDesigner)
void SetUpdateComponentName (bool updateComponentName)
void SetWaveLink ()
void SubtituteReusableComponent (bool substituteInstance)
void UndelayComponentToUpdate (NXOpen::Part *obj)
void UpdateCadenasParameter (const char *paraName, const char *paraValue)
void UpdateCadenasParameter (const NXString &paraName, const NXString &paraValue)
void UpdateMountingFeetInfo (NXOpen::Assemblies::Component *partOcc)
void UpdateParametersByConfiguration ()
void UpdatePartData ()
void UpdatePocketBody (bool createPattern, NXOpen::Tooling::AddReusablePart::PocketBodyMethod updatePocketBody)
void UpdatePositioningOffset (const char *positionOffSet)
void UpdatePositioningOffset (const NXString &positionOffSet)
void UpdateReusableComponent ()
void UpdateReusablePocket ()
void UpdateToolingSymbolicThread ()
Public 成员函数 继承自 NXOpen::Builder
NXOpen::NXObjectCommit ()
void Destroy ()
std::vector< NXOpen::NXObject * > GetCommittedObjects ()
NXOpen::NXObjectGetObject ()
NXOpen::PreviewBuilderPreviewBuilder ()
void ShowResults ()
virtual bool Validate ()
Public 成员函数 继承自 NXOpen::TaggedObject
tag_t Tag () const

友元

class _AddReusablePartBuilder

详细描述

添加可重用部件

        表示一个 @link NXOpen::Tooling::AddReusablePart NXOpen::Tooling::AddReusablePart@endlink
         <br> 要创建此类的新实例,请使用 @link NXOpen::Tooling::AddReusablePartCollection::CreateBuilder  NXOpen::Tooling::AddReusablePartCollection::CreateBuilder @endlink  <br>
    默认值。
    <list type="table">
    <listheader><term>
    属性</term>  <description>
    值</description> </listheader>
    <item><term>
    ComponentPatternBuilder.PatternService.AlongPathDefinition.XOnPathSpacing.NCopies.Value </term> <description>
    2 </description> </item>
    <item><term>
    ComponentPatternBuilder.PatternService.AlongPathDefinition.XOnPathSpacing.SpaceType </term> <description>
    偏移量 </description> </item>
    <item><term>
    ComponentPatternBuilder.PatternService.AlongPathDefinition.XPathOption </term> <description>
    偏移量 </description> </item>
    <item><term>
    ComponentPatternBuilder.PatternService.AlongPathDefinition.YDirectionOption </term> <description>
    截面 </description> </item>
    <item><term>
    ComponentPatternBuilder.PatternService.AlongPathDefinition.YOnPathSpacing.NCopies.Value </term> <description>
    1 </description> </item>
    <item><term>
    ComponentPatternBuilder.PatternService.AlongPathDefinition.YPathOption </term> <description>
    偏移量 </description> </item>
    <item><term>
    ComponentPatternBuilder.PatternService.AlongPathDefinition.YSpacing.NCopies.Value </term> <description>
    1 </description> </item>
    <item><term>
    ComponentPatternBuilder.PatternService.AlongPathDefinition.YSpacing.PitchDistance.Value </term> <description>
    10 (毫米零件), 1 (英寸零件) </description> </item>
    <item><term>
    ComponentPatternBuilder.PatternService.AlongPathDefinition.YSpacing.SpaceType </term> <description>
    偏移量 </description> </item>
    <item><term>
    ComponentPatternBuilder.PatternService.AlongPathDefinition.YSpacing.SpanDistance.Value </term> <description>
    100 (毫米零件), 10 (英寸零件) </description> </item>
    <item><term>
    ComponentPatternBuilder.PatternService.CircularDefinition.AngularSpacing.NCopies.Value </term> <description>
    12 </description> </item>
    <item><term>
    ComponentPatternBuilder.PatternService.CircularDefinition.AngularSpacing.PitchAngle.Value </term> <description>
    30 </description> </item>
    <item><term>
    ComponentPatternBuilder.PatternService.CircularDefinition.AngularSpacing.PitchDistance.Value </term> <description>
    10 (毫米零件), 1 (英寸零件) </description> </item>
    <item><term>
    ComponentPatternBuilder.PatternService.CircularDefinition.AngularSpacing.SpaceType </term> <description>
    偏移量 </description> </item>
    <item><term>
    ComponentPatternBuilder.PatternService.CircularDefinition.AngularSpacing.SpanAngle.Value </term> <description>
    360 (毫米零件), 360 (英寸零件) </description> </item>

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.

成员枚举类型说明

◆ ComponentMode

Represents the component type of the added part

枚举值
ComponentModeNormal 

normal reusable component

ComponentModeCadenas 

cadenas part component

◆ ModeMethod

Represents adding or editing a reusable component mode method

枚举值
ModeMethodAdd 

Add reusable component

ModeMethodEdit 

Edit reusable component

◆ PocketBodyMethod

Represents save pocket body information, updating or deleting a pocket body size mode method

枚举值
PocketBodyMethodNone 

Save pocket body information into attatched component

PocketBodyMethodUpdate 

Update the existed pocket body size

PocketBodyMethodDelete 

Delete pocket body

◆ PositionMethod

Represents the position method

枚举值
PositionMethodInvalid 

invalid

PositionMethodAbsolute 

absolute

PositionMethodMate 

mate

PositionMethodReposition 

reposition

PositionMethodWcs 

wcs

PositionMethodPosition 

position

PositionMethodPoint 

Position by point

PositionMethodInferredOny 

inferred ony

PositionMethodRouting 

Position using Routing

成员函数说明

◆ AddClonePartName() [1/2]

void NXOpen::Tooling::AddReusablePart::AddClonePartName ( const char * clonedpartname)

Adds clone part name
Created in NX9.0.0.

License requirements : None

参数
clonedpartnameThe new clone part name

◆ AddClonePartName() [2/2]

void NXOpen::Tooling::AddReusablePart::AddClonePartName ( const NXString & clonedpartname)

Adds clone part name
Created in NX9.0.0.

License requirements : None

参数
clonedpartnameThe new clone part name

◆ AddComponentMode()

void NXOpen::Tooling::AddReusablePart::AddComponentMode ( NXOpen::Tooling::AddReusablePart::ModeMethod modeMethod)

为可重用组件添加模式
创建于 NX9.0.0。

许可要求:无

参数
modeMethod模式方法

◆ AddComponentProperty() [1/2]

void NXOpen::Tooling::AddReusablePart::AddComponentProperty ( const char * compName,
const char * refsetName,
int layer )

添加组件属性
创建于 NX9.0.0。

许可要求:无

参数
compName用于表示新组件的参考集的名称
refsetName放置新组件的图层
layer图层

◆ AddComponentProperty() [2/2]

void NXOpen::Tooling::AddReusablePart::AddComponentProperty ( const NXString & compName,
const NXString & refsetName,
int layer )

添加组件属性
创建于 NX9.0.0。

许可要求:无

参数
compName用于表示新组件的参考集的名称
refsetName放置新组件的图层
layer图层

◆ AddCriteriaToInstance() [1/2]

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

参数
hasCriteriahascriteria
expStrexpstr
addValueaddvalue

◆ AddCriteriaToInstance() [2/2]

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

参数
hasCriteriahascriteria
expStrexpstr
addValueaddvalue

◆ AddHoleInstance()

void NXOpen::Tooling::AddReusablePart::AddHoleInstance ( const NXOpen::Point3d & inputDirection,
const NXOpen::Point3d & inputPostion )

在孔中添加一系列可重用组件
创建于 NX9.0.0。

许可要求:无

参数
inputDirection组件的输入方向
inputPostion组件的输入位置

◆ AddHoleInstanceForCsys()

void NXOpen::Tooling::AddReusablePart::AddHoleInstanceForCsys ( const NXOpen::Point3d & inputDirection,
const NXOpen::Point3d & inputPostion,
NXOpen::NXObject * selCsys )

在坐标系中添加一系列可重用组件
创建于 NX11.0.1。

许可要求:无

参数
inputDirection组件的输入方向
inputPostion组件的输入位置
selCsys组件的输入坐标系

◆ AddNewInstance()

void NXOpen::Tooling::AddReusablePart::AddNewInstance ( NXOpen::Assemblies::Component * partOcc,
int index )

添加新实例
创建于 NX9.0.0。

许可要求:无

参数
partOcc将新的出现添加到零件数据中
index组件实例的索引

◆ AddPartOccurance()

void NXOpen::Tooling::AddReusablePart::AddPartOccurance ( NXOpen::Assemblies::Component * partOcc)

将出现添加到零件数据中
创建于 NX9.0.0。

许可要求:无

参数
partOcc要添加到零件数据中的组件出现

◆ AddReuseablePartToPattern()

void NXOpen::Tooling::AddReusablePart::AddReuseablePartToPattern ( )

将添加的可重用部件添加到相关模式定义
创建于 NX2212.0.0。

许可要求:无

◆ AffirmReusableComponent()

void NXOpen::Tooling::AddReusablePart::AffirmReusableComponent ( )

Affirm insertion of the reusable component. To get the inserted reusable components, please use NXOpen::Tooling::AddReusablePart::AffirmReusableComponents instead.
Created in NX9.0.0.

License requirements : None

◆ AffirmReusableComponents()

std::vector< NXOpen::Assemblies::Component * > NXOpen::Tooling::AddReusablePart::AffirmReusableComponents ( )

Affirm insertion of the reusable component, and return the array of NXOpen::Assemblies::Component tag in the display part.
Created in NX1899.0.0.

License requirements : None

◆ AssignStructureDesignerAttributes()

void NXOpen::Tooling::AddReusablePart::AssignStructureDesignerAttributes ( )

Assign attribute to mounting feet part and solid body.
Created in NX1953.0.0.

License requirements : None

◆ ComponentPatternBuilder()

NXOpen::Assemblies::ComponentPatternBuilder * NXOpen::Tooling::AddReusablePart::ComponentPatternBuilder ( )

Returns the current component pattern builder
Created in NX11.0.0.

License requirements : None

◆ ComponentType()

NXOpen::Tooling::AddReusablePart::ComponentMode NXOpen::Tooling::AddReusablePart::ComponentType ( )

Returns the current component type
Created in NX11.0.0.

License requirements : None

◆ ConstructParametersData()

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

◆ CreateCloneObject() [1/2]

NXOpen::Tooling::CloneObject * NXOpen::Tooling::AddReusablePart::CreateCloneObject ( NXOpen::Tooling::ToolingApplication applicationType,
const char * assemName )

Creates the clone operation object

返回
the new NXOpen::Tooling::CloneObject instance
Created in NX6.0.0.

License requirements : None
参数
applicationTypeWizard type
assemNameProject assembly name

◆ CreateCloneObject() [2/2]

NXOpen::Tooling::CloneObject * NXOpen::Tooling::AddReusablePart::CreateCloneObject ( NXOpen::Tooling::ToolingApplication applicationType,
const NXString & assemName )

Creates the clone operation object

返回
the new NXOpen::Tooling::CloneObject instance
Created in NX6.0.0.

License requirements : None
参数
applicationTypeWizard type
assemNameProject assembly name

◆ CreateComponents()

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

参数
countThe count is array instance number
selobjThe selected object is FACE type, the reusable component place on the face

◆ CreateCriteria() [1/2]

NXOpen::PartFamily::InstanceSelectionCriteria * NXOpen::Tooling::AddReusablePart::CreateCriteria ( const char * expStr,
const char * addValue )

Creates criteria
Created in NX2212.0.0.

License requirements : None

参数
expStrexpstr
addValueaddvalue

◆ CreateCriteria() [2/2]

NXOpen::PartFamily::InstanceSelectionCriteria * NXOpen::Tooling::AddReusablePart::CreateCriteria ( const NXString & expStr,
const NXString & addValue )

Creates criteria
Created in NX2212.0.0.

License requirements : None

参数
expStrexpstr
addValueaddvalue

◆ CreatePatternComponent()

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

参数
createPatternFlag to decide whether to create pattern component or edit, set flag as true to create and set flag false to edit

◆ CreatePositioningFeatureByPoint()

void NXOpen::Tooling::AddReusablePart::CreatePositioningFeatureByPoint ( NXOpen::NXObject * selobj,
const NXOpen::Point3d & inputPosition,
bool centerFace )

Create positioning feature on the given position
Created in NX1847.0.0.

License requirements : None

参数
selobjThe selected object is FACE type, the reusable component place on the face
inputPositionThe input position
centerFacewhether to use face center as location

◆ CreatePositioningFeatureOnPoint()

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

参数
selobjThe selected object is FACE type, the reusable component place on the face
inputPositionThe input position
centerFacewhether to use face center as location

◆ CreateReusableConstraints()

void NXOpen::Tooling::AddReusablePart::CreateReusableConstraints ( int index)

Creates constraints for the reusable component
Created in NX9.0.0.

License requirements : None

参数
indexThe index part is to create constraints

◆ CreateReusablePocket()

void NXOpen::Tooling::AddReusablePart::CreateReusablePocket ( bool commit)

Creates pocket for a reusable component
Created in NX9.0.0.

License requirements : None

参数
commitif the variable is true, the component needs pocket

◆ DelayComponents()

void NXOpen::Tooling::AddReusablePart::DelayComponents ( const std::vector< NXOpen::TaggedObject * > & objs)

设置组件的部件间延迟状态。
创建于 NX1953.0.0。

许可要求:无

参数
objsobjs

◆ DeleteComponents()

void NXOpen::Tooling::AddReusablePart::DeleteComponents ( int count)

删除组件的数组实例
创建于 NX9.0.0。

许可要求:无

参数
count数量是数组实例编号

◆ DeleteReusableConstraints()

void NXOpen::Tooling::AddReusablePart::DeleteReusableConstraints ( )

Deletes constraints for the reusable component
Created in NX9.0.0.

License requirements : None

◆ DeleteReusablePocket()

void NXOpen::Tooling::AddReusablePart::DeleteReusablePocket ( )

Deletes pocket for a reusable component
Created in NX9.0.0.

License requirements : None

◆ DestroyReusableBuilder()

void NXOpen::Tooling::AddReusablePart::DestroyReusableBuilder ( )

Destroys reusable builder data
Created in NX9.0.0.

License requirements : None

◆ EditReusableComponent()

void NXOpen::Tooling::AddReusablePart::EditReusableComponent ( NXOpen::Assemblies::Component * partOcc)

编辑可重用组件
创建于 NX9.0.0。

许可要求:无

参数
partOcc要在零件数据中编辑的组件出现

◆ FindPositioningFeatureSet()

NXOpen::Features::Feature * NXOpen::Tooling::AddReusablePart::FindPositioningFeatureSet ( )

Find the positioning feature set by pattern sketch

返回
Positioning feature set
Created in NX11.0.0.

License requirements : None

◆ GetAttachedGeometry()

NXOpen::NXObject * NXOpen::Tooling::AddReusablePart::GetAttachedGeometry ( )

Gets the attached geometry, this is mainly used to get the initial parameter

返回
Geometry to calculate the initial parameter
Created in NX9.0.0.

License requirements : None

◆ GetCloneObject()

NXOpen::Tooling::CloneObject * NXOpen::Tooling::AddReusablePart::GetCloneObject ( )

Gets the clone operation object

返回
A NXOpen::Tooling::CloneObject instance
Created in NX9.0.0.

License requirements : None

◆ GetDesignElement()

std::vector< NXOpen::Assemblies::Component * > NXOpen::Tooling::AddReusablePart::GetDesignElement ( )

Gets an array of design elements

返回
The design elements
Created in NX9.0.0.

License requirements : None

◆ GetInitialPosition()

NXOpen::Point3d NXOpen::Tooling::AddReusablePart::GetInitialPosition ( )

Gets the initial location, this is mainly used to get default add location of a reusable component

返回
Drop location to initial parameter
Created in NX9.0.0.

License requirements : None

◆ GetParentPart()

NXOpen::Part * NXOpen::Tooling::AddReusablePart::GetParentPart ( )

Gets the parent part, this is mainly used to get context work part of a reusable component

返回
The parent part to place the component
Created in NX9.0.0.

License requirements : None

◆ GetReusablePocketBuilder()

NXOpen::Tooling::ReusablePocketBuilder * NXOpen::Tooling::AddReusablePart::GetReusablePocketBuilder ( )

Gets the reusable pocket builder

返回
The reusable component pocket builder
Created in NX9.0.0.

License requirements : None

◆ GetSpreadsheetData()

NXOpen::Tooling::SpreadsheetData * NXOpen::Tooling::AddReusablePart::GetSpreadsheetData ( )

Gets the spreadsheet data, this is mainly used to get the attributes of a reusable component

返回
Spreadsheet data
Created in NX9.0.0.

License requirements : None

◆ InsertReusableComponent()

void NXOpen::Tooling::AddReusablePart::InsertReusableComponent ( int instIndex,
bool needTransform )

将组件插入零件数据
创建于 NX9.0.0。

许可要求:无

参数
instIndex正在零件数据中添加的新组件的索引
needTransform组件在紧固件装配中是否需要变换

◆ LoadReusableComponent() [1/2]

void NXOpen::Tooling::AddReusablePart::LoadReusableComponent ( const char * krxFile)

Loads the reusable component
Created in NX9.0.0.

License requirements : None

参数
krxFileThe KRX file

◆ LoadReusableComponent() [2/2]

void NXOpen::Tooling::AddReusablePart::LoadReusableComponent ( const NXString & krxFile)

Loads the reusable component
Created in NX9.0.0.

License requirements : None

参数
krxFileThe KRX file

◆ ModifyParametersByRow()

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

参数
indexThe index is the row of the template data file

◆ MoveReusableComponent()

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

参数
translationThe translation data
rotationThe rotation data
indexThe reusable component index in the part data

◆ PositioningFeature()

NXOpen::Sketch * NXOpen::Tooling::AddReusablePart::PositioningFeature ( )

Returns the positioning feature that needed for reusable component
Created in NX11.0.0.

License requirements : None

◆ PositioningFeatureSeedCsys()

NXOpen::CoordinateSystem * NXOpen::Tooling::AddReusablePart::PositioningFeatureSeedCsys ( )

返回定位特征的种子坐标系
创建于 NX2406.0.0。

许可要求:无

◆ PositionMode()

NXOpen::Tooling::AddReusablePart::PositionMethod NXOpen::Tooling::AddReusablePart::PositionMode ( )

Returns the current position method
Created in NX5.0.0.

License requirements : None

◆ PostUpdate()

void NXOpen::Tooling::AddReusablePart::PostUpdate ( )

创建于 NX2206.0.0。

许可要求:无

◆ RecordReusableComponent() [1/2]

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

参数
fileNameThe reusable component name

◆ RecordReusableComponent() [2/2]

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

参数
fileNameThe reusable component name

◆ RemoveDesignElement()

void NXOpen::Tooling::AddReusablePart::RemoveDesignElement ( )

Removes design element component
Created in NX9.0.0.

License requirements : None

◆ RemoveFamilyInstance()

void NXOpen::Tooling::AddReusablePart::RemoveFamilyInstance ( NXOpen::Part * part)

Removes an instance of a part family member
Created in NX11.0.0.

License requirements : None

参数
partpart

◆ RemoveOldInstance()

void NXOpen::Tooling::AddReusablePart::RemoveOldInstance ( int index)

从零件数据中移除实例
创建于 NX9.0.0。

许可要求:无

参数
index组件实例的索引

◆ RemoveReusableComponent()

void NXOpen::Tooling::AddReusablePart::RemoveReusableComponent ( int index)

Removes a reusable component
Created in NX9.0.0.

License requirements : None

参数
indexThe reusable component index in the part data

◆ RenamePart() [1/2]

void NXOpen::Tooling::AddReusablePart::RenamePart ( const char * partName)

Sets reuse component name by rule if it is structure mountingfeet.
Created in NX1926.0.0.

License requirements : None

参数
partNameThe reuse component name

◆ RenamePart() [2/2]

void NXOpen::Tooling::AddReusablePart::RenamePart ( const NXString & partName)

Sets reuse component name by rule if it is structure mountingfeet.
Created in NX1926.0.0.

License requirements : None

参数
partNameThe reuse component name

◆ ReplaceReusableComponent()

void NXOpen::Tooling::AddReusablePart::ReplaceReusableComponent ( )

Replace reusable component
Created in NX11.0.0.

License requirements : None

◆ ReselectObject()

bool NXOpen::Tooling::AddReusablePart::ReselectObject ( )

返回重新选择对象的标志
创建于 NX2406.0.0。

许可要求:无

◆ ReverseComponentDirection()

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.

返回
The output face of the componnent on
Created in NX9.0.0.

License requirements : None
参数
inputPositionThe input position of componnent
inputDirectionThe input direction of componnent
lengthThe input length of componnent
outputPositionThe output position of componnent
outputDirectionThe output position of componnent

◆ ReverseDirection()

void NXOpen::Tooling::AddReusablePart::ReverseDirection ( )

Reverse mounting feet direction.
Created in NX1953.0.0.

License requirements : None

◆ ReversePreviewComponent()

void NXOpen::Tooling::AddReusablePart::ReversePreviewComponent ( const NXOpen::Point3d & rememberDir)

如果可重用组件未放置在面上,则反转其方向。
创建于 NX9.0.0。

许可要求:无

参数
rememberDir组件的原始位置

◆ SaveLibraryPath() [1/2]

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

参数
libNameLibrary name
libpathThe path in the library

◆ SaveLibraryPath() [2/2]

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

参数
libNameLibrary name
libpathThe path in the library

◆ SavePositioningOriginPlacement() [1/2]

void NXOpen::Tooling::AddReusablePart::SavePositioningOriginPlacement ( const char * positionOffSet,
int placementOriginIndex )

Keep positioning offset and placement index
Created in NX11.0.0.

License requirements : None

参数
positionOffSetThe positionging offset value that defined in the krx file
placementOriginIndexThe positioning placement origin index that defined in the krx file

◆ SavePositioningOriginPlacement() [2/2]

void NXOpen::Tooling::AddReusablePart::SavePositioningOriginPlacement ( const NXString & positionOffSet,
int placementOriginIndex )

Keep positioning offset and placement index
Created in NX11.0.0.

License requirements : None

参数
positionOffSetThe positionging offset value that defined in the krx file
placementOriginIndexThe positioning placement origin index that defined in the krx file

◆ SetAttachedGeometry()

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

参数
partGeometry to calculate the initial parameter

◆ SetCloneObject()

void NXOpen::Tooling::AddReusablePart::SetCloneObject ( NXOpen::Tooling::CloneObject * cloneObject)

设置克隆操作对象
创建于 NX9.0.0。

许可要求:无

参数
cloneObject一个 NXOpen::Tooling::CloneObject 实例

◆ SetComponentHandleToPoint()

void NXOpen::Tooling::AddReusablePart::SetComponentHandleToPoint ( )

Keep the reusable component handle information into its associated pattern point
Created in NX11.0.0.

License requirements : None

◆ SetComponentPatternBuilder()

void NXOpen::Tooling::AddReusablePart::SetComponentPatternBuilder ( NXOpen::Assemblies::ComponentPatternBuilder * patternComponentBuilderTag)

Sets the current component pattern builder
Created in NX11.0.0.

License requirements : None

参数
patternComponentBuilderTagThe reusable component pattern builder

◆ SetComponentProperties() [1/2]

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

参数
referenceSetNameThe name of the reference set used to represent the new component
componentNameThe name of the new component
layerThe layer to place the new component on

◆ SetComponentProperties() [2/2]

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

参数
referenceSetNameThe name of the reference set used to represent the new component
componentNameThe name of the new component
layerThe layer to place the new component on

◆ SetComponentToReplace()

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

参数
indexThe index for component to replace
replaceComponentThe component to replace

◆ SetComponentType()

void NXOpen::Tooling::AddReusablePart::SetComponentType ( NXOpen::Tooling::AddReusablePart::ComponentMode partType)

Sets the current component type
Created in NX11.0.0.

License requirements : None

参数
partTypepart type

◆ SetEnablePreview()

void NXOpen::Tooling::AddReusablePart::SetEnablePreview ( bool isTrunOn)

Sets the toggle of the Preview widget
Created in NX9.0.0.

License requirements : None

参数
isTrunOnWhehter preview toggle is turned on, which is on the add reusable component dialog

◆ SetInitialPosition()

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

参数
dropLocationDrop location to initial parameter

◆ SetParentPart()

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

参数
partThe parent part to place the component

◆ SetPositioningFeature()

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

参数
sketchPositioning feature

◆ SetPositioningFeatureSeedCsys()

void NXOpen::Tooling::AddReusablePart::SetPositioningFeatureSeedCsys ( NXOpen::CoordinateSystem * seedCsys)

设置定位特征的种子坐标系
创建于 NX2406.0.0。

许可要求:无

参数
seedCsysSeed CSYS 标签

◆ SetPositionMode()

void NXOpen::Tooling::AddReusablePart::SetPositionMode ( NXOpen::Tooling::AddReusablePart::PositionMethod positionMode)

Sets the current position method
Created in NX5.0.0.

License requirements : None

参数
positionModeposition mode

◆ SetReplaceTemplate()

void NXOpen::Tooling::AddReusablePart::SetReplaceTemplate ( NXOpen::Part * replaceTemplate)

Sets the replace template part
Created in NX11.0.0.

License requirements : None

参数
replaceTemplateThe replace template part

◆ SetReselectObject()

void NXOpen::Tooling::AddReusablePart::SetReselectObject ( bool isReselectObject)

设置重新选择对象的标志
创建于 NX2406.0.0。

许可要求:无

参数
isReselectObject重新选择对象的标志

◆ SetReusablePocketBuilder()

void NXOpen::Tooling::AddReusablePart::SetReusablePocketBuilder ( NXOpen::Tooling::ReusablePocketBuilder * pocketTag)

Sets the reusable pocket builder
Created in NX9.0.0.

License requirements : None

参数
pocketTagThe reusable component pocket builder

◆ SetSearchGeometry()

void NXOpen::Tooling::AddReusablePart::SetSearchGeometry ( bool isTrunOn)

Sets the search geometry for a reusable component
Created in NX9.0.0.

License requirements : None

参数
isTrunOnWhehter the search geometry toggle is turned on, which is on the add reusable component dialog

◆ SetSpreadsheetData()

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

参数
spreadsheetDataSpreadsheet data

◆ SetStructureDesignerPart()

void NXOpen::Tooling::AddReusablePart::SetStructureDesignerPart ( bool isStructureDesigner)

Sets isStructureDesigner flag if it is structure designer part.
Created in NX1926.0.0.

License requirements : None

参数
isStructureDesignerThe flag of Structure Designer

◆ SetUpdateComponentName()

void NXOpen::Tooling::AddReusablePart::SetUpdateComponentName ( bool updateComponentName)

Sets the update component name for a reusable component
Created in NX12.0.0.

License requirements : None

参数
updateComponentNameWhehter the component name will be updated or not for copied part

◆ SetWaveLink()

void NXOpen::Tooling::AddReusablePart::SetWaveLink ( )

Sets wave link geometry of structure member as the parents if it is structure mountingfeet.
Created in NX1926.0.0.

License requirements : None

◆ SubtituteReusableComponent()

void NXOpen::Tooling::AddReusablePart::SubtituteReusableComponent ( bool substituteInstance)

Subtitutes a reusable part
Created in NX9.0.0.

License requirements : None

参数
substituteInstanceWhether the resuable component needs to be substituted

◆ UndelayComponentToUpdate()

void NXOpen::Tooling::AddReusablePart::UndelayComponentToUpdate ( NXOpen::Part * obj)

Sets the inter-part undelay status on the component.
Created in NX1953.0.0.

License requirements : None

参数
objobj

◆ UpdateCadenasParameter() [1/2]

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.
       @link NXOpen::Tooling::AddReusablePart::GetSpreadsheetData NXOpen::Tooling::AddReusablePart::GetSpreadsheetData@endlink ,
       @link NXOpen::Tooling::SpreadsheetData::GetParameterValue NXOpen::Tooling::SpreadsheetData::GetParameterValue@endlink ,
       @link NXOpen::Tooling::SpreadsheetDataParameter::ParameterName NXOpen::Tooling::SpreadsheetDataParameter::ParameterName@endlink


Created in NX11.0.0.

License requirements : None

参数
paraNameThe parameter name
paraValueThe parameter value

◆ UpdateCadenasParameter() [2/2]

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.
       @link NXOpen::Tooling::AddReusablePart::GetSpreadsheetData NXOpen::Tooling::AddReusablePart::GetSpreadsheetData@endlink ,
       @link NXOpen::Tooling::SpreadsheetData::GetParameterValue NXOpen::Tooling::SpreadsheetData::GetParameterValue@endlink ,
       @link NXOpen::Tooling::SpreadsheetDataParameter::ParameterName NXOpen::Tooling::SpreadsheetDataParameter::ParameterName@endlink


Created in NX11.0.0.

License requirements : None

参数
paraNameThe parameter name
paraValueThe parameter value

◆ UpdateMountingFeetInfo()

void NXOpen::Tooling::AddReusablePart::UpdateMountingFeetInfo ( NXOpen::Assemblies::Component * partOcc)

创建于 NX2206.0.0。

许可要求:无

参数
partOccpartocc

◆ UpdateParametersByConfiguration()

void NXOpen::Tooling::AddReusablePart::UpdateParametersByConfiguration ( )

Updates parameters by configuration
Created in NX12.0.1.

License requirements : None

◆ UpdatePartData()

void NXOpen::Tooling::AddReusablePart::UpdatePartData ( )

Updates the part data of a reusable component
Created in NX9.0.0.

License requirements : None

◆ UpdatePocketBody()

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

参数
createPatternFlag to decide whether to create pocket body pattern or not
updatePocketBodyFlag to decide whether to create pocket body, delete or update 0: add; 1: delete; 2:update

◆ UpdatePositioningOffset() [1/2]

void NXOpen::Tooling::AddReusablePart::UpdatePositioningOffset ( const char * positionOffSet)

Update positioning offset
Created in NX11.0.0.

License requirements : None

参数
positionOffSetThe positionging offset value that defined in the krx file

◆ UpdatePositioningOffset() [2/2]

void NXOpen::Tooling::AddReusablePart::UpdatePositioningOffset ( const NXString & positionOffSet)

Update positioning offset
Created in NX11.0.0.

License requirements : None

参数
positionOffSetThe positionging offset value that defined in the krx file

◆ UpdateReusableComponent()

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

◆ UpdateReusablePocket()

void NXOpen::Tooling::AddReusablePart::UpdateReusablePocket ( )

Updates the pocket for a reusable component
Created in NX9.0.0.

License requirements : None

◆ UpdateToolingSymbolicThread()

void NXOpen::Tooling::AddReusablePart::UpdateToolingSymbolicThread ( )

Updates the tooling symbolic thread feature.
Created in NX1953.0.0.

License requirements : None