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

草图图案构建器 更多...

#include <SketchPatternBuilder.hxx>

类 NXOpen::SketchPatternBuilder 继承关系图:
NXOpen::Builder NXOpen::TaggedObject NXOpen::GeometricUtilities::IComponentBuilder

Public 成员函数

bool CreateConstraint ()
bool CreateSpacingExp ()
void EvaluatePattern ()
bool GetRelationFinding (int instanceXIndex, int instanceYIndex)
void HandleFlip ()
bool LockOrientation ()
NXOpen::GeometricUtilities::PatternDefinitionPatternService ()
NXOpen::SketchPattern::RelationScope RelationScope ()
NXOpen::SectionSection ()
void SetCreateConstraint (bool constraintCreation)
void SetCreateSpacingExp (bool createSpacingExp)
void SetEndConstraint (NXOpen::NXObject *parent, int inx, bool isStart, bool constraint)
void SetLockOrientation (bool lockOrientation)
void SetRelationFinding (int instanceXIndex, int instanceYIndex, bool findRelations)
void SetRelationScope (NXOpen::SketchPattern::RelationScope scope)
void UpdateCenterPoint ()
void UpdateCopies ()
void UpdateData ()
void UpdateFromPoint ()
void UpdateInputSection ()
void UpdateLinearDirectionObject ()
void UpdateRectangularDirectionObjects ()
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 _SketchPatternBuilderBuilder

详细描述

草图图案构建器

    表示 @link NXOpen::SketchPatternBuilder NXOpen::SketchPatternBuilder@endlink
    <br> 要创建此类的新实例,请使用 @link NXOpen::SketchCollection::CreateSketchPatternBuilder NXOpen::SketchCollection::CreateSketchPatternBuilder @endlink  <br>
默认值。
<list type="table">
<listheader><term>
属性</term>  <description>
值</description> </listheader>
<item><term>
CreateConstraint </term> <description>
是 </description> </item>
<item><term>
CreateSpacingExp </term> <description>
是 </description> </item>
<item><term>
LockOrientation </term> <description>
是 </description> </item>
<item><term>
PatternService.AlongPathDefinition.XOnPathSpacing.NCopies.Value </term> <description>
2 </description> </item>
<item><term>
PatternService.AlongPathDefinition.XOnPathSpacing.SpaceType </term> <description>
偏移量 </description> </item>
<item><term>
PatternService.AlongPathDefinition.XPathOption </term> <description>
偏移量 </description> </item>
<item><term>
PatternService.AlongPathDefinition.YDirectionOption </term> <description>
截面 </description> </item>
<item><term>
PatternService.AlongPathDefinition.YOnPathSpacing.NCopies.Value </term> <description>
1 </description> </item>
<item><term>
PatternService.AlongPathDefinition.YPathOption </term> <description>
偏移量 </description> </item>
<item><term>
PatternService.AlongPathDefinition.YSpacing.NCopies.Value </term> <description>
1 </description> </item>
<item><term>
PatternService.AlongPathDefinition.YSpacing.PitchDistance.Value </term> <description>
10(毫米单位),1(英寸单位) </description> </item>
<item><term>
PatternService.AlongPathDefinition.YSpacing.SpaceType </term> <description>
偏移量 </description> </item>
<item><term>
PatternService.AlongPathDefinition.YSpacing.SpanDistance.Value </term> <description>
100(毫米单位),10(英寸单位) </description> </item>
<item><term>
PatternService.CircularDefinition.AngularSpacing.NCopies.Value </term> <description>
12 </description> </item>
<item><term>
PatternService.CircularDefinition.AngularSpacing.PitchAngle.Value </term> <description>
30 </description> </item>
<item><term>
PatternService.CircularDefinition.AngularSpacing.PitchDistance.Value </term> <description>
10(毫米单位),1(英寸单位) </description> </item>
<item><term>
PatternService.CircularDefinition.AngularSpacing.SpaceType </term> <description>
偏移量 </description> </item>
<item><term>
PatternService.CircularDefinition.AngularSpacing.SpanAngle.Value </term> <description>
360(毫米单位),360(英寸单位) </description> </item>
<item><term>
PatternService.CircularDefinition.CreateLastStaggered </term> <description>
是 </description> </item>
<item><term>
PatternService.CircularDefinition.HorizontalRef.RotationAngle.Value </term> <description>

0 (millimeters part), 0 (inches part) PatternService.CircularDefinition.IncludeSeedToggle true PatternService.CircularDefinition.RadialSpacing.NCopies.Value 1 PatternService.CircularDefinition.StaggerType None PatternService.HelixDefinition.AnglePitch.Value 30 PatternService.HelixDefinition.CountOfInstances.Value 6 PatternService.HelixDefinition.DirectionType Righthand PatternService.HelixDefinition.DistancePitch.Value 10 (millimeters part), 0.4 (inches part) PatternService.HelixDefinition.HelixPitch.Value 50 (millimeters part), 2 (inches part) PatternService.HelixDefinition.HelixSpan.Value 100 (millimeters part), 4 (inches part) PatternService.HelixDefinition.NumberOfTurns.Value 2 PatternService.HelixDefinition.SizeOption CountAngleDistance PatternService.PatternFill.FillMargin.Value 0 (millimeters part), 0 (inches part) PatternService.PatternFill.FillOptions None PatternService.PatternFill.SimplifiedBoundaryToggle False PatternService.PatternOrientation.AlongOrientationOption NormalToPath PatternService.PatternOrientation.CircularOrientationOption FollowPattern PatternService.PatternOrientation.FollowFaceProjDirOption PatternPlaneNormal PatternService.PatternOrientation.GeneralOrientationOption Fixed PatternService.PatternOrientation.HelixOrientationOption FollowPattern PatternService.PatternOrientation.LinearOrientationOption Fixed PatternService.PatternOrientation.MirrorOrientationOption FollowPattern PatternService.PatternOrientation.OrientationOption Fixed PatternService.PatternOrientation.PolygonOrientationOption FollowPattern PatternService.PatternOrientation.SpiralOrientationOption FollowPattern PatternService.PatternType Linear PatternService.PolygonDefinition.NumberOfSides.Value 6 PatternService.PolygonDefinition.PolygonSizeOption Inscribed PatternService.PolygonDefinition.PolygonSpacing.NCopies.Value 4 PatternService.PolygonDefinition.PolygonSpacing.PitchDistance.Value 25 (millimeters part), 1 (inches part) PatternService.PolygonDefinition.PolygonSpacing.SpaceType Offset PatternService.PolygonDefinition.PolygonSpacing.SpanAngle.Value 360 PatternService.PolygonDefinition.RadialSpacing.NCopies.Value 1 PatternService.PolygonDefinition.RadialSpacing.PitchDistance.Value 25 (millimeters part), 1 (inches part) PatternService.PolygonDefinition.RadialSpacing.SpanDistance.Value 100 (millimeters part), 4 (inches part) PatternService.RectangularDefinition.CreateLastStaggered true PatternService.RectangularDefinition.SimplifiedLayoutType Square PatternService.RectangularDefinition.StaggerType None PatternService.RectangularDefinition.XSpacing.NCopies.Value 2 PatternService.RectangularDefinition.YSpacing.NCopies.Value 1 PatternService.SpiralDefinition.DirectionType Lefthand PatternService.SpiralDefinition.NumberOfTurns.Value 1 (millimeters part), 1 (inches part) PatternService.SpiralDefinition.RadialPitch.Value 50 (millimeters part), 2 (inches part) PatternService.SpiralDefinition.SizeSpiralType NumberOfTurns PatternService.SpiralDefinition.TotalAngle.Value 360 (millimeters part), 360 (inches part) RelationScope Input


Created in NX7.5.0.

成员函数说明

◆ CreateConstraint()

bool NXOpen::SketchPatternBuilder::CreateConstraint ( )

Returns the flag to indicate if the constraint needs to be created
Created in NX1847.0.0.

License requirements : None

◆ CreateSpacingExp()

bool NXOpen::SketchPatternBuilder::CreateSpacingExp ( )

Returns the flag to indicate if a spacing expression needs to be created
Created in NX7.5.0.

License requirements : None

◆ EvaluatePattern()

void NXOpen::SketchPatternBuilder::EvaluatePattern ( )

This function will solve the pattern constraint to update it based on the new data set in the builder
Created in NX11.0.0.

License requirements : None

◆ GetRelationFinding()

bool NXOpen::SketchPatternBuilder::GetRelationFinding ( int instanceXIndex,
int instanceYIndex )

This function queries the find setting on an instance. If the return value is true, then the relations will be found on that instance. Index of 0, 0 corresponds to the base/input to the pattern. Y-index for non-rectangular patterns should be 0. If this function is called for any scope other than NXOpen::SketchPattern::RelationScopeSpecified , the result will always be set to false.

返回
True if relations are found from the instance, false if excluded from relation finding
Created in NX2212.0.0.

License requirements : None
参数
instanceXIndexInstance x-index
instanceYIndexInstance y-index

◆ HandleFlip()

void NXOpen::SketchPatternBuilder::HandleFlip ( )

This function updates the pattern constraint after handling flip in the builder.
Created in NX1926.0.0.

License requirements : None

◆ LockOrientation()

bool NXOpen::SketchPatternBuilder::LockOrientation ( )

Returns the flag to indicate if a spacing expression needs to be created
Created in NX7.5.0.

License requirements : None

◆ PatternService()

NXOpen::GeometricUtilities::PatternDefinition * NXOpen::SketchPatternBuilder::PatternService ( )

Returns the pattern service
Created in NX7.5.0.

License requirements : None

◆ RelationScope()

NXOpen::SketchPattern::RelationScope NXOpen::SketchPatternBuilder::RelationScope ( )

Returns the relation scope option that specifies which curves participate in relation finding
Created in NX2212.0.0.

License requirements : None

◆ Section()

NXOpen::Section * NXOpen::SketchPatternBuilder::Section ( )

Returns the pattern section
Created in NX7.5.0.

License requirements : None

◆ SetCreateConstraint()

void NXOpen::SketchPatternBuilder::SetCreateConstraint ( bool constraintCreation)

Sets the flag to indicate if the constraint needs to be created
Created in NX1847.0.0.

License requirements : solid_modeling ("SOLIDS MODELING") OR geometric_tol ("GDT")

参数
constraintCreationconstraintcreation

◆ SetCreateSpacingExp()

void NXOpen::SketchPatternBuilder::SetCreateSpacingExp ( bool createSpacingExp)

Sets the flag to indicate if a spacing expression needs to be created
Created in NX7.5.0.

License requirements : None

参数
createSpacingExpcreatespacingexp

◆ SetEndConstraint()

void NXOpen::SketchPatternBuilder::SetEndConstraint ( NXOpen::NXObject * parent,
int inx,
bool isStart,
bool constraint )

This function removes end constraint from the given pattern
Created in NX7.5.0.

License requirements : solid_modeling ("SOLIDS MODELING")

参数
parentParent object in base chain
inxIndex of the pattern - starts from 0
isStartTRUE, if we want to remove the start end con
constraintTRUE to add the con, false to remove

◆ SetLockOrientation()

void NXOpen::SketchPatternBuilder::SetLockOrientation ( bool lockOrientation)

Sets the flag to indicate if a spacing expression needs to be created
Created in NX7.5.0.

License requirements : None

参数
lockOrientationlockorientation

◆ SetRelationFinding()

void NXOpen::SketchPatternBuilder::SetRelationFinding ( int instanceXIndex,
int instanceYIndex,
bool findRelations )

This function helps to turn on or off relation finding on a particular instance. Index of 0,0 corresponds to the base/input to the pattern. Y-index for non-rectangular patterns should be 0. This function can be called for any relation scope. But if the scope is not set to NXOpen::SketchPattern::RelationScopeSpecified at the time of commit, the indices set here would be ignored.
Created in NX2212.0.0.

License requirements : solid_modeling ("SOLIDS MODELING") OR drafting ("DRAFTING") OR geometric_tol ("GDT")

参数
instanceXIndexInstance x-index
instanceYIndexInstance y-index
findRelationsTrue to find relations from the instance, false to exclude the instance from relation finding

◆ SetRelationScope()

void NXOpen::SketchPatternBuilder::SetRelationScope ( NXOpen::SketchPattern::RelationScope scope)

Sets the relation scope option that specifies which curves participate in relation finding
Created in NX2212.0.0.

License requirements : solid_modeling ("SOLIDS MODELING") OR drafting ("DRAFTING") OR geometric_tol ("GDT")

参数
scopescope

◆ UpdateCenterPoint()

void NXOpen::SketchPatternBuilder::UpdateCenterPoint ( )

This function updates the pattern constraint after a new center-point is set in the builder for a circular pattern.
Created in NX11.0.0.

License requirements : None

◆ UpdateCopies()

void NXOpen::SketchPatternBuilder::UpdateCopies ( )

This function updates the pattern constraint with the number of copies set in the builder
Created in NX8.5.0.

License requirements : None

◆ UpdateData()

void NXOpen::SketchPatternBuilder::UpdateData ( )

This function updates the pattern constraint with the changes set to the builder.
Created in NX1926.0.0.

License requirements : None

◆ UpdateFromPoint()

void NXOpen::SketchPatternBuilder::UpdateFromPoint ( )

This function updates the pattern constraint after a new from-point is set in the builder for a general pattern.
Created in NX11.0.0.

License requirements : None

◆ UpdateInputSection()

void NXOpen::SketchPatternBuilder::UpdateInputSection ( )

This function updates the pattern constraint according to the data set in pattern section
Created in NX8.5.0.

License requirements : None

◆ UpdateLinearDirectionObject()

void NXOpen::SketchPatternBuilder::UpdateLinearDirectionObject ( )

This function updates the pattern constraint after a new direction object is set in the builder for a linear pattern.
Created in NX11.0.0.

License requirements : None

◆ UpdateRectangularDirectionObjects()

void NXOpen::SketchPatternBuilder::UpdateRectangularDirectionObjects ( )

This function updates the pattern constraint after direction objects are set in the builder for a rectangular pattern.
Created in NX11.0.0.

License requirements : None