|
NX Open C++ 参考指南 2406 v1.1
|
草图图案构建器 更多...
#include <SketchPatternBuilder.hxx>
友元 | |
| 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.
| bool NXOpen::SketchPatternBuilder::CreateConstraint | ( | ) |
Returns the flag to indicate if the constraint needs to be created
Created in NX1847.0.0.
License requirements : None
| 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
| 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
| 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.
| instanceXIndex | Instance x-index |
| instanceYIndex | Instance y-index |
| void NXOpen::SketchPatternBuilder::HandleFlip | ( | ) |
This function updates the pattern constraint after handling flip in the builder.
Created in NX1926.0.0.
License requirements : None
| 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
| NXOpen::GeometricUtilities::PatternDefinition * NXOpen::SketchPatternBuilder::PatternService | ( | ) |
Returns the pattern service
Created in NX7.5.0.
License requirements : None
| 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
| NXOpen::Section * NXOpen::SketchPatternBuilder::Section | ( | ) |
Returns the pattern section
Created in NX7.5.0.
License requirements : None
| 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")
| constraintCreation | constraintcreation |
| 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
| createSpacingExp | createspacingexp |
| 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")
| parent | Parent object in base chain |
| inx | Index of the pattern - starts from 0 |
| isStart | TRUE, if we want to remove the start end con |
| constraint | TRUE to add the con, false to remove |
| 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
| lockOrientation | lockorientation |
| 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")
| instanceXIndex | Instance x-index |
| instanceYIndex | Instance y-index |
| findRelations | True to find relations from the instance, false to exclude the instance from relation finding |
| 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")
| scope | scope |
| 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
| 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
| 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
| 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
| 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
| 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
| 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