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

草图对象 更多...

#include <Sketch.hxx>

类 NXOpen::Sketch 继承关系图:
NXOpen::DisplayableObject NXOpen::IProfile NXOpen::NXObject NXOpen::IFitTo NXOpen::INXObject NXOpen::TaggedObject NXOpen::INXObject NXOpen::INXObject

struct  ConstraintGeometry
struct  ConstraintGeometryHelp
struct  CopyObjectData
struct  DimensionGeometry
struct  SketchGeometry

Public 类型

enum  AddEllipseOption { AddEllipseOptionTreatAsEllipse , AddEllipseOptionTreatAsConic }
enum  AlternateSolutionOption { AlternateSolutionOptionFalse , AlternateSolutionOptionTrue }
enum  AssocType {
  AssocTypeNone , AssocTypeStartPoint , AssocTypeEndPoint , AssocTypeArcCenter ,
  AssocTypeTangency , AssocTypeCurvePoint , AssocTypeAnchorPoint , AssocTypeMidpoint
}
enum  AutoDimensioningRule {
  AutoDimensioningRuleSymmetric = 1 , AutoDimensioningRuleAdjacentAngle , AutoDimensioningRuleLength , AutoDimensioningRuleHorizontalVertical ,
  AutoDimensioningRuleReferenceAxes
}
enum  ConstraintClass { ConstraintClassNotConstraint , ConstraintClassAny , ConstraintClassGeometric , ConstraintClassDimension }
enum  ConstraintGeometryHelpType { ConstraintGeometryHelpTypePoint , ConstraintGeometryHelpTypeParameter }
enum  ConstraintPointType {
  ConstraintPointTypeNone , ConstraintPointTypeStartVertex , ConstraintPointTypeEndVertex , ConstraintPointTypeArcCenter ,
  ConstraintPointTypeSplineDefiningPoint , ConstraintPointTypeAnchor , ConstraintPointTypeSplinePole , ConstraintPointTypeMidVertex
}
enum  ConstraintType {
  ConstraintTypeNoCon , ConstraintTypeFixed , ConstraintTypeHorizontal , ConstraintTypeVertical ,
  ConstraintTypeParallel , ConstraintTypePerpendicular , ConstraintTypeCollinear , ConstraintTypeEqualLength ,
  ConstraintTypeEqualRadius , ConstraintTypeConstantLength , ConstraintTypeConstantAngle , ConstraintTypeCoincident ,
  ConstraintTypeConcentric , ConstraintTypeMirror , ConstraintTypePointOnCurve , ConstraintTypeMidpoint ,
  ConstraintTypeTangent , ConstraintTypeRadiusDim , ConstraintTypeDiameterDim , ConstraintTypeHorizontalDim ,
  ConstraintTypeVerticalDim , ConstraintTypeParallelDim , ConstraintTypePerpendicularDim , ConstraintTypeAngularDim ,
  ConstraintTypeReservedCon1 , ConstraintTypeReservedCon2 , ConstraintTypeReservedCon3 , ConstraintTypeReservedCon4 ,
  ConstraintTypeReservedCon5 , ConstraintTypeReservedCon6 , ConstraintTypePointOnString , ConstraintTypeSlope ,
  ConstraintTypeUniformScaled , ConstraintTypeNonUniformScaled , ConstraintTypeAssocTrim , ConstraintTypeAssocOffset ,
  ConstraintTypePerimeterDim , ConstraintTypeOffset , ConstraintTypeNormal , ConstraintTypePointOnLoop ,
  ConstraintTypeRecipeTrim , ConstraintTypePattern , ConstraintTypeMinorAngularDim , ConstraintTypeMajorAngularDim ,
  ConstraintTypeLastConType
}
enum  CreateDimensionOption { CreateDimensionOptionFalse , CreateDimensionOptionTrue }
enum  CreateInferConstraintSetting { CreateInferConstraintSettingOn , CreateInferConstraintSettingOff }
enum  DeleteThirdCurveOption { DeleteThirdCurveOptionFalse , DeleteThirdCurveOptionTrue }
enum  DimensionOption { DimensionOptionCreateAsDriving , DimensionOptionCreateAsReference , DimensionOptionCreateAsAutomatic , DimensionOptionCreateAsConstant }
enum  InferConstraintsOption { InferConstraintsOptionInferNoConstraints , InferConstraintsOptionInferCoincidentConstraints }
enum  PlaneOption { PlaneOptionInferred , PlaneOptionExistingPlane , PlaneOptionNewPlane , PlaneOptionNewCsys }
enum  PointType {
  PointTypeNone , PointTypeStartPoint , PointTypeEndPoint , PointTypeCenter ,
  PointTypeSplineDefiningPoint , PointTypeAnchor , PointTypeSplinePole , PointTypeMidPoint ,
  PointTypeQuadrant
}
enum  Status {
  StatusUnknown , StatusNotEvaluated , StatusUnderConstrained , StatusWellConstrained ,
  StatusOverConstrained , StatusInconsistentlyConstrained
}
enum  TrimInputOption { TrimInputOptionFalse , TrimInputOptionTrue }
enum  UpdateLevel { UpdateLevelSketchOnly , UpdateLevelModel }
enum  ViewReorient { ViewReorientFalse , ViewReorientTrue }
Public 类型 继承自 NXOpen::DisplayableObject
enum  ObjectFont {
  ObjectFontSolid = 1 , ObjectFontDashed , ObjectFontPhantom , ObjectFontCenterline ,
  ObjectFontDotted , ObjectFontLongDashed , ObjectFontDottedDashed , ObjectFontEight = 11 ,
  ObjectFontNine , ObjectFontTen , ObjectFontEleven
}
enum  ObjectWidth {
  ObjectWidthNormal , ObjectWidthThick , ObjectWidthThin , ObjectWidthOne = 5 ,
  ObjectWidthTwo , ObjectWidthThree , ObjectWidthFour , ObjectWidthFive ,
  ObjectWidthSix , ObjectWidthSeven , ObjectWidthEight , ObjectWidthNine
}
Public 类型 继承自 NXOpen::NXObject
enum  AttributeType {
  AttributeTypeInvalid , AttributeTypeNull , AttributeTypeBoolean , AttributeTypeInteger ,
  AttributeTypeReal , AttributeTypeString , AttributeTypeTime , AttributeTypeReference ,
  AttributeTypeAny = 100
}
enum  DateAndTimeFormat { DateAndTimeFormatNumeric , DateAndTimeFormatTextual }

Public 成员函数

void Activate (NXOpen::Sketch::ViewReorient orientView)
void AddGeometry (NXOpen::Curve *crv, NXOpen::Sketch::InferConstraintsOption inferCoincidentConstraints, NXOpen::Sketch::AddEllipseOption ellipseOption)
void AddGeometry (NXOpen::DisplayableObject *crv)
void AddGeometry (NXOpen::DisplayableObject *crv, NXOpen::Sketch::InferConstraintsOption inferCoincidentConstraints)
void AddGeometry (NXOpen::Sketch::InferConstraintsOption inferCoincidentConstraints, NXOpen::Sketch::AddEllipseOption ellipseOption, const std::vector< NXOpen::SmartObject * > &curvesOrPoints)
NXOpen::ISurfaceAttachPlane ()
std::vector< NXOpen::SketchConstraint * > AutoConstrain (double linearTolerance, double angularTolerance, bool allowRemoteConstraints, const std::vector< NXOpen::SmartObject * > &geometries, const std::vector< NXOpen::Sketch::ConstraintType > &autoconstraintTypes)
void BreakAssociativity (const std::vector< NXOpen::NXObject * > &sketchGeoms)
void CalculateStatus ()
void ConvertRadialDimension (const std::vector< NXOpen::DisplayableObject * > &dimensions)
void ConvertToNx10Spline (NXOpen::Spline *spline)
std::vector< NXOpen::NXObject * > CopyObjects (const std::vector< NXOpen::NXObject * > &inputObjects)
void CopyObjectsWithDimensionOutput (const std::vector< NXOpen::NXObject * > &inputObjects, std::vector< NXOpen::NXObject * > &outputObjects, std::vector< NXOpen::NXObject * > &outputDims)
std::vector< NXOpen::Sketch::CopyObjectDataCopyObjectsWithTracking (const std::vector< NXOpen::DisplayableObject * > &inputObjects)
NXOpen::SketchGeometricConstraintCreateCoincidentConstraint (const NXOpen::Sketch::ConstraintGeometry &geom1, const NXOpen::Sketch::ConstraintGeometry &geom2)
NXOpen::SketchGeometricConstraintCreateCollinearConstraint (const NXOpen::Sketch::ConstraintGeometry &conGeom1, const NXOpen::Sketch::ConstraintGeometry &conGeom2)
NXOpen::SketchGeometricConstraintCreateConcentricConstraint (const NXOpen::Sketch::ConstraintGeometry &conGeom1, const NXOpen::Sketch::ConstraintGeometry &conGeom2)
NXOpen::SketchGeometricConstraintCreateConstantAngleConstraint (const NXOpen::Sketch::ConstraintGeometry &conGeom)
NXOpen::SketchGeometricConstraintCreateConstantLengthConstraint (const NXOpen::Sketch::ConstraintGeometry &conGeom)
NXOpen::SketchDimensionalConstraintCreateDiameterDimension (const NXOpen::Sketch::DimensionGeometry &dimObject1, const NXOpen::Point3d &dimOrigin, NXOpen::Expression *expression)
NXOpen::SketchDimensionalConstraintCreateDiameterDimension (const NXOpen::Sketch::DimensionGeometry &dimObject1, const NXOpen::Point3d &dimOrigin, NXOpen::Expression *expression, NXOpen::Sketch::DimensionOption refDim)
NXOpen::SketchDimensionalConstraintCreateDimension (NXOpen::Sketch::ConstraintType dimType, const NXOpen::Sketch::DimensionGeometry &dimObject1, const NXOpen::Sketch::DimensionGeometry &dimObject2, const NXOpen::Point3d &dimOrigin, NXOpen::Expression *expression)
NXOpen::SketchDimensionalConstraintCreateDimension (NXOpen::Sketch::ConstraintType dimType, const NXOpen::Sketch::DimensionGeometry &dimObject1, const NXOpen::Sketch::DimensionGeometry &dimObject2, const NXOpen::Point3d &dimOrigin, NXOpen::Expression *expression, NXOpen::Sketch::DimensionOption refDim)
NXOpen::SketchGeometricConstraintCreateEqualLengthConstraint (const NXOpen::Sketch::ConstraintGeometry &conGeom1, const NXOpen::Sketch::ConstraintGeometry &conGeom2)
NXOpen::SketchGeometricConstraintCreateEqualRadiusConstraint (const NXOpen::Sketch::ConstraintGeometry &conGeom1, const NXOpen::Sketch::ConstraintGeometry &conGeom2)
NXOpen::SketchGeometricConstraintCreateFixedConstraint (const NXOpen::Sketch::ConstraintGeometry &geom)
std::vector< NXOpen::SketchGeometricConstraint * > CreateFullyFixedConstraints (const NXOpen::Sketch::ConstraintGeometry &geom)
NXOpen::SketchGeometricConstraintCreateHorizontalConstraint (const NXOpen::Sketch::ConstraintGeometry &geom)
NXOpen::Sketch::CreateInferConstraintSetting CreateInferConstraintsSetting ()
NXOpen::SketchGeometricConstraintCreateMidpointConstraint (const NXOpen::Sketch::ConstraintGeometry &conGeom1, const NXOpen::Sketch::ConstraintGeometry &conGeom2)
NXOpen::SketchGeometricConstraintCreateNonUniformScaledConstraint (const NXOpen::Sketch::ConstraintGeometry &conGeom)
NXOpen::SketchGeometricConstraintCreateNormalConstraint (const NXOpen::Sketch::ConstraintGeometry &conGeom1, const NXOpen::Sketch::ConstraintGeometryHelp &geom1Help, const NXOpen::Sketch::ConstraintGeometry &conGeom2, const NXOpen::Sketch::ConstraintGeometryHelp &geom2Help)
NXOpen::SketchGeometricConstraintCreateParallelConstraint (const NXOpen::Sketch::ConstraintGeometry &conGeom1, const NXOpen::Sketch::ConstraintGeometry &conGeom2)
NXOpen::SketchDimensionalConstraintCreatePerimeterDimension (const std::vector< NXOpen::Curve * > &curves, const NXOpen::Point3d &dimOrigin, NXOpen::Expression *expression)
NXOpen::SketchGeometricConstraintCreatePerpendicularConstraint (const NXOpen::Sketch::ConstraintGeometry &conGeom1, const NXOpen::Sketch::ConstraintGeometry &conGeom2)
NXOpen::SketchHelpedGeometricConstraintCreatePointOnCurveConstraint (const NXOpen::Sketch::ConstraintGeometry &conGeom1, const NXOpen::Sketch::ConstraintGeometry &conGeom2, const NXOpen::Sketch::ConstraintGeometryHelp &help)
NXOpen::SketchHelpedGeometricConstraintCreatePointOnStringConstraint (const NXOpen::Sketch::ConstraintGeometry &conGeom1, const std::vector< NXOpen::Curve * > &curvesInString, const NXOpen::Sketch::ConstraintGeometryHelp &helpData, int curveWhichHelpParamAppliesTo)
NXOpen::SketchHelpedGeometricConstraintCreatePointOnStringConstraint (const NXOpen::Sketch::ConstraintGeometry &conGeom1, NXOpen::Curve *curveInString, const NXOpen::Sketch::ConstraintGeometryHelp &helpData)
NXOpen::SketchDimensionalConstraintCreateRadialDimension (const NXOpen::Sketch::DimensionGeometry &dimObject1, const NXOpen::Point3d &dimOrigin, NXOpen::Expression *expression)
NXOpen::SketchDimensionalConstraintCreateRadialDimension (const NXOpen::Sketch::DimensionGeometry &dimObject1, const NXOpen::Point3d &dimOrigin, NXOpen::Expression *expression, NXOpen::Sketch::DimensionOption refDim)
NXOpen::SketchGeometricConstraintCreateSlopeConstraint (const NXOpen::Sketch::ConstraintGeometry &conGeom1, const NXOpen::Sketch::ConstraintGeometry &conGeom2)
NXOpen::SketchTangentConstraintCreateTangentConstraint (const NXOpen::Sketch::ConstraintGeometry &geom1, const NXOpen::Sketch::ConstraintGeometryHelp &geom1Help, const NXOpen::Sketch::ConstraintGeometry &geom2, const NXOpen::Sketch::ConstraintGeometryHelp &geom2Help)
NXOpen::SketchGeometricConstraintCreateUniformScaledConstraint (const NXOpen::Sketch::ConstraintGeometry &conGeom)
NXOpen::SketchGeometricConstraintCreateVerticalConstraint (const NXOpen::Sketch::ConstraintGeometry &geom)
void Deactivate (NXOpen::Sketch::ViewReorient orientView, NXOpen::Sketch::UpdateLevel updateLevel)
void DeleteConstraintsOnGeometries (const std::vector< NXOpen::NXObject * > &objects)
void DeleteConstraintsOnGeometries (const std::vector< NXOpen::Sketch::ConstraintGeometry > &objects)
void DeleteConstraintsOnGeometries (NXOpen::Sketch::ConstraintClass conClass, const std::vector< NXOpen::Sketch::ConstraintGeometry > &objects)
NXOpen::ErrorListDeleteObjects (const std::vector< NXOpen::NXObject * > &objects)
bool DOFDisplay ()
void EditSplineDefiningPoints (NXOpen::Spline *spline, const std::vector< double > &points)
void EditSplinePoles (NXOpen::Spline *spline, const std::vector< double > &poles)
NXOpen::Features::FeatureFeature ()
std::vector< NXOpen::Arc * > Fillet (NXOpen::Curve *curve1, NXOpen::Curve *curve2, const NXOpen::Point3d &helpPoint1, const NXOpen::Point3d &helpPoint2, const NXOpen::Point3d &pointOnArc, double radius, NXOpen::Sketch::TrimInputOption doTrim, NXOpen::Sketch::CreateDimensionOption createRadiusDim, NXOpen::Sketch::AlternateSolutionOption alternateSolution, std::vector< NXOpen::SketchConstraint * > &constraints)
std::vector< NXOpen::Arc * > Fillet (NXOpen::Curve *curve1, NXOpen::Curve *curve2, const NXOpen::Point3d &helpPoint1, const NXOpen::Point3d &helpPoint2, double radius, NXOpen::Sketch::TrimInputOption doTrim, NXOpen::Sketch::CreateDimensionOption createRadiusDim, NXOpen::Sketch::AlternateSolutionOption alternateSolution, std::vector< NXOpen::SketchConstraint * > &constraints)
std::vector< NXOpen::Arc * > Fillet (NXOpen::Curve *curve1, NXOpen::Curve *curve2, NXOpen::Curve *curve3, const NXOpen::Point3d &helpPoint1, const NXOpen::Point3d &helpPoint2, const NXOpen::Point3d &helpPoint3, const NXOpen::Point3d &pointOnArc, double radius, NXOpen::Sketch::TrimInputOption doTrim, NXOpen::Sketch::DeleteThirdCurveOption doDelete, NXOpen::Sketch::CreateDimensionOption createRadiusDim, NXOpen::Sketch::AlternateSolutionOption alternateSolution, std::vector< NXOpen::SketchConstraint * > &constraints)
std::vector< NXOpen::Arc * > Fillet (NXOpen::Curve *curve1, NXOpen::Curve *curve2, NXOpen::Curve *curve3, const NXOpen::Point3d &helpPoint1, const NXOpen::Point3d &helpPoint2, const NXOpen::Point3d &helpPoint3, double radius, NXOpen::Sketch::TrimInputOption doTrim, NXOpen::Sketch::DeleteThirdCurveOption doDelete, NXOpen::Sketch::CreateDimensionOption createRadiusDim, NXOpen::Sketch::AlternateSolutionOption alternateSolution, std::vector< NXOpen::SketchConstraint * > &constraints)
void FlipNormal ()
void FlipReferenceDirection ()
std::vector< NXOpen::SketchConstraint * > GetAllConstraintsOfType (NXOpen::Sketch::ConstraintClass conClass, NXOpen::Sketch::ConstraintType conType)
std::vector< NXOpen::Expression * > GetAllExpressions ()
std::vector< NXOpen::NXObject * > GetAllGeometry ()
NXOpen::SketchDimensionalConstraintGetConstraintFromDimension (NXOpen::Annotations::Dimension *dimension)
std::vector< NXOpen::SketchConstraint * > GetConstraintsForGeometry (NXOpen::SmartObject *geometry, NXOpen::Sketch::ConstraintClass conClass)
std::vector< NXOpen::SketchRelation * > GetIgnoredRelationsOfGeometry (const NXOpen::Sketch::ConstraintGeometry &geometry)
NXOpen::NXObjectGetParentOfIncludedGeometry (NXOpen::SmartObject *geometry)
NXOpen::Vector3d GetReferenceDirection (NXOpen::IReferenceAxis **referenceAxis, NXOpen::AxisOrientation *referenceAxisOrientation, NXOpen::Sense *referenceAxisSense)
std::vector< NXOpen::SmartObject * > GetRemoteFindingCurves ()
NXOpen::Sketch::Status GetStatus (int *dofNeeded)
std::vector< NXOpen::SketchVirtualPoint * > GetVirtualPoints ()
void HideDimensions ()
void HideDimensions (const std::vector< NXOpen::DisplayableObject * > &inputObjects)
void HideDimensions (const std::vector< NXOpen::Sketch::ConstraintGeometry > &objects)
NXOpen::InfiniteLineHorizontalAxis ()
bool IsActive ()
bool IsDraftingSketch ()
bool IsIncludedGeometry (NXOpen::SmartObject *geometry)
bool IsInternal ()
bool IsSketchConstraint (NXOpen::SketchConstraint *constraint)
bool IsSketchDimension (NXOpen::Annotations::Dimension *dimension)
bool IsSketchGeometry (NXOpen::SmartObject *geometry)
void LocalUpdate ()
void MakeDatumsExternal2 ()
std::vector< NXOpen::SketchConstraint * > MakeRelationPersistent (const std::vector< NXOpen::NXObject * > &foundRelations)
void ManageConstraintsAfterEdit (const std::vector< NXOpen::NXObject * > &sketchGeoms, bool preserveComplexConstraints)
bool MechanismMode ()
 NX_DEPRECATED ("Deprecated in NX11.0.0. None.") void MakeDatumsInternal()
 NX_DEPRECATED ("Deprecated in NX11.0.0. Please use NXOpen::Sketch::MakeDatumsExternal2 instead.") void MakeDatumsExternal()
NXOpen::NXMatrixOrientation ()
NXOpen::Point3d Origin ()
NXOpen::PointOriginPoint ()
NXOpen::Preferences::SketchPreferencesPreferences ()
void RemoveRedundantVertices (const std::vector< NXOpen::NXObject * > &geoms)
void RenewDraftingSketch ()
bool RotateDragMode ()
void RunAutoDimension ()
void Scale (double scaleFactor)
void SetCreateInferConstraintsSetting (NXOpen::Sketch::CreateInferConstraintSetting createInferCon)
void SetDOFDisplay (bool displayDof)
void SetMechanismMode (bool isMechanismMode)
void SetReferenceDirection (NXOpen::IReferenceAxis *referenceAxis, const NXOpen::Vector3d &referenceDirection, NXOpen::AxisOrientation referenceAxisOrientation, NXOpen::Sense referenceAxisSense)
void SetRotateDragMode (bool rotateDrag)
void SetRotationOrigin (const NXOpen::Point3d &center)
void SetTextHeight (double textHeight)
void SetUpdateScope (NXOpen::Sketch::UpdateLevel updateScope)
void SetUpgradeUponActivation (bool upgrade)
void ShowDimensions ()
void ShowDimensions (const std::vector< NXOpen::DisplayableObject * > &inputObjects)
void ShowDimensions (const std::vector< NXOpen::Sketch::ConstraintGeometry > &objects)
void Update ()
void Update (const std::vector< NXOpen::NXObject * > &geoms)
void UpdateConstraintDisplay ()
void UpdateConstraintDisplay (const std::vector< NXOpen::SmartObject * > &geoms)
void UpdateDimensionDisplay ()
void UpdateDimensionDisplay (const std::vector< NXOpen::NXObject * > &dims)
void UpdateDimensionDisplay (const std::vector< NXOpen::SmartObject * > &geoms)
void UpdateGeometryDisplay ()
void UpdateGeometryDisplay (const std::vector< NXOpen::SmartObject * > &geoms)
void UpdateNavigator ()
NXOpen::Sketch::UpdateLevel UpdateScope ()
bool UpgradeUponActivation ()
bool UsesLegacySolver ()
NXOpen::InfiniteLineVerticalAxis ()
NXOpen::ViewView ()
Public 成员函数 继承自 NXOpen::DisplayableObject
void Blank ()
int Color ()
void Highlight ()
bool IsBlanked ()
int Layer ()
NXOpen::DisplayableObject::ObjectFont LineFont ()
NXOpen::DisplayableObject::ObjectWidth LineWidth ()
NXOpen::Point3d NameLocation ()
void RedisplayObject ()
void RemoveViewDependency ()
void SetColor (int color)
void SetLayer (int layer)
void SetLineFont (NXOpen::DisplayableObject::ObjectFont font)
void SetLineWidth (NXOpen::DisplayableObject::ObjectWidth width)
void SetNameLocation (const NXOpen::Point3d &location)
void Unblank ()
void Unhighlight ()
Public 成员函数 继承自 NXOpen::NXObject
NXOpen::AttributeIteratorCreateAttributeIterator ()
NX_DEPRECATED("Deprecated in NX8.0.0. Use DeleteUserAttribute instead.") void DeleteAttributeByTypeAndTitle(NXOpen void DeleteAttributeByTypeAndTitle (NXOpen::NXObject::AttributeType type, const char *title)
NX_DEPRECATED("Deprecated in NX8.0.0. Use DeleteUserAttribute instead.") void DeleteAttributeByTypeAndTitle(NXOpen void DeleteAttributeByTypeAndTitle (NXOpen::NXObject::AttributeType type, const char *title, NXOpen::Update::Option option)
void DeleteUserAttribute (NXOpen::NXObject::AttributeType type, const char *title, bool deleteEntireArray, NXOpen::Update::Option option)
void DeleteUserAttribute (NXOpen::NXObject::AttributeType type, const NXString &title, bool deleteEntireArray, NXOpen::Update::Option option)
void DeleteUserAttributes (NXOpen::AttributeIterator *iterator, NXOpen::Update::Option option)
void DeleteUserAttributes (NXOpen::NXObject::AttributeType type, NXOpen::Update::Option option)
virtual NXOpen::INXObjectFindObject (const char *journalIdentifier)
virtual NXOpen::INXObjectFindObject (const NXString &journalIdentifier)
bool GetBooleanUserAttribute (const char *title, int index)
bool GetBooleanUserAttribute (const NXString &title, int index)
NXOpen::NXObject::ComputationalTime GetComputationalTimeUserAttribute (const char *title, int index)
NXOpen::NXObject::ComputationalTime GetComputationalTimeUserAttribute (const NXString &title, int index)
int GetIntegerAttribute (const char *title)
int GetIntegerUserAttribute (const char *title, int index)
int GetIntegerUserAttribute (const NXString &title, int index)
bool GetNextUserAttribute (NXOpen::AttributeIterator *iterator, NXOpen::NXObject::AttributeInformation *info)
NXString GetPdmReferenceAttributeValue (const char *attributeTitle)
 获取指定对象的PDM参考属性值。 用户需提供属性标题,将返回UI显示的属性值。
NXString GetPdmReferenceAttributeValue (const NXString &attributeTitle)
 获取指定对象的PDM参考属性值。 用户需提供属性标题,将返回UI显示的属性值。
double GetRealAttribute (const char *title)
double GetRealUserAttribute (const char *title, int index)
double GetRealUserAttribute (const NXString &title, int index)
NXString GetReferenceAttribute (const char *title)
NXString GetStringAttribute (const char *title)
NXString GetStringUserAttribute (const char *title, int index)
NXString GetStringUserAttribute (const NXString &title, int index)
NX_DEPRECATED("Deprecated in NX8.0.0. Use GetUserAttribute instead.") NXString GetTimeAttribute(NXOpen NXString GetTimeAttribute (NXOpen::NXObject::DateAndTimeFormat format, const char *title)
NXString GetTimeUserAttribute (const char *title, int index)
NXString GetTimeUserAttribute (const NXString &title, int index)
NX_DEPRECATED("Deprecated in NX11.0.0. Use GetUserAttribute instead.") std std::vector< NXOpen::NXObject::AttributeInformationGetUserAttribute (const char *title, bool includeUnset, bool addStringValues, NXOpen::NXObject::AttributeType type)
NXOpen::NXObject::AttributeInformation GetUserAttribute (const char *title, NXOpen::NXObject::AttributeType type, int index)
NXOpen::NXObject::AttributeInformation GetUserAttribute (const NXString &title, NXOpen::NXObject::AttributeType type, int index)
NXString GetUserAttributeAsString (const char *title, NXOpen::NXObject::AttributeType type, int index)
NXString GetUserAttributeAsString (const NXString &title, NXOpen::NXObject::AttributeType type, int index)
int GetUserAttributeCount (NXOpen::AttributeIterator *iterator)
int GetUserAttributeCount (NXOpen::AttributeIterator *iterator, bool countArrayAsOneAttribute)
int GetUserAttributeCount (NXOpen::NXObject::AttributeType type)
int GetUserAttributeCount (NXOpen::NXObject::AttributeType type, bool includeUnset, bool countArrayAsOneAttribute)
bool GetUserAttributeLock (const char *title, NXOpen::NXObject::AttributeType type)
bool GetUserAttributeLock (const NXString &title, NXOpen::NXObject::AttributeType type)
std::vector< NXOpen::NXObject::AttributeInformationGetUserAttributes ()
std::vector< NXOpen::NXObject::AttributeInformationGetUserAttributes (bool includeUnset)
std::vector< NXOpen::NXObject::AttributeInformationGetUserAttributes (NXOpen::AttributeIterator *iterator)
int GetUserAttributeSize (const char *title, NXOpen::NXObject::AttributeType type)
int GetUserAttributeSize (const NXString &title, NXOpen::NXObject::AttributeType type)
std::vector< NXOpen::NXObject * > GetUserAttributeSourceObjects ()
bool HasUserAttribute (const char *title, NXOpen::NXObject::AttributeType type, int index)
bool HasUserAttribute (const NXString &title, NXOpen::NXObject::AttributeType type, int index)
bool HasUserAttribute (NXOpen::AttributeIterator *iterator)
virtual bool IsOccurrence ()
virtual NXString JournalIdentifier ()
virtual NXString Name ()
 NX_DEPRECATED ("Deprecated in NX8.0.0. Use GetUserAttribute instead.") double GetRealAttribute(const NXString &title)
 NX_DEPRECATED ("Deprecated in NX8.0.0. Use GetUserAttribute instead.") int GetIntegerAttribute(const NXString &title)
 NX_DEPRECATED ("Deprecated in NX8.0.0. Use GetUserAttribute instead.") NXString GetReferenceAttribute(const NXString &title)
 NX_DEPRECATED ("Deprecated in NX8.0.0. Use GetUserAttribute instead.") NXString GetStringAttribute(const NXString &title)
 NX_DEPRECATED ("Deprecated in NX8.0.0. Use SetUserAttribute instead.") void SetAttribute(const NXString &title
 NX_DEPRECATED ("Deprecated in NX8.0.0. Use SetUserAttribute instead.") void SetAttribute(const NXString &title
 NX_DEPRECATED ("Deprecated in NX8.0.0. Use SetUserAttribute instead.") void SetAttribute(const NXString &title
 NX_DEPRECATED ("Deprecated in NX8.0.0. Use SetUserAttribute instead.") void SetAttribute(const NXString &title
 NX_DEPRECATED ("Deprecated in NX8.0.0. Use SetUserAttribute instead.") void SetAttribute(const NXString &title
 NX_DEPRECATED ("Deprecated in NX8.0.0. Use SetUserAttribute instead.") void SetAttribute(const NXString &title
 NX_DEPRECATED ("Deprecated in NX8.0.0. Use SetUserAttribute instead.") void SetAttribute(const NXString &title
 NX_DEPRECATED ("Deprecated in NX8.0.0. Use SetUserAttribute instead.") void SetAttribute(const NXString &title)
 NX_DEPRECATED ("Deprecated in NX8.0.0. Use SetUserAttribute instead.") void SetReferenceAttribute(const NXString &title
 NX_DEPRECATED ("Deprecated in NX8.0.0. Use SetUserAttribute instead.") void SetReferenceAttribute(const NXString &title
 NX_DEPRECATED ("Deprecated in NX8.0.0. Use SetUserAttribute instead.") void SetTimeAttribute(const NXString &title
 NX_DEPRECATED ("Deprecated in NX8.0.0. Use SetUserAttribute instead.") void SetTimeAttribute(const NXString &title
virtual NXOpen::Assemblies::ComponentOwningComponent ()
virtual NXOpen::BasePartOwningPart ()
virtual void Print ()
virtual NXOpen::INXObjectPrototype ()
void SetAttribute (const char *title)
void SetAttribute (const char *title, const char *value)
void SetAttribute (const char *title, const char *value, NXOpen::Update::Option option)
void SetAttribute (const char *title, double value)
void SetAttribute (const char *title, double value, NXOpen::Update::Option option)
void SetAttribute (const char *title, int value)
void SetAttribute (const char *title, int value, NXOpen::Update::Option option)
void SetAttribute (const char *title, NXOpen::Update::Option option)
void SetBooleanUserAttribute (const char *title, int index, bool value, NXOpen::Update::Option option)
void SetBooleanUserAttribute (const NXString &title, int index, bool value, NXOpen::Update::Option option)
virtual void SetName (const char *name)
virtual void SetName (const NXString &name)
void SetPdmReferenceAttribute (const char *attributeTitle, const char *attributeValue)
 设置对象的PDM参考属性值。 用户需提供属性标题和UI显示的别名值。若参考属性为数组类型,此操作将被忽略。 别名字符串会转换为内部值(如会话标识符),并将该内部值设置到指定对象上。
创建于NX12.0.0。

许可要求:无
void SetPdmReferenceAttribute (const NXString &attributeTitle, const NXString &attributeValue)
 设置对象的PDM参考属性值。 用户需提供属性标题和UI显示的别名值。若参考属性为数组类型,此操作将被忽略。 别名字符串会转换为内部值(如会话标识符),并将该内部值设置到指定对象上。
创建于NX12.0.0。

许可要求:无
void SetReferenceAttribute (const char *title, const char *value)
void SetReferenceAttribute (const char *title, const char *value, NXOpen::Update::Option option)
void SetTimeAttribute (const char *title, const char *value)
void SetTimeAttribute (const char *title, const char *value, NXOpen::Update::Option option)
void SetTimeUserAttribute (const char *title, int index, const char *value, NXOpen::Update::Option option)
void SetTimeUserAttribute (const char *title, int index, const NXOpen::NXObject::ComputationalTime &value, NXOpen::Update::Option option)
void SetTimeUserAttribute (const NXString &title, int index, const NXOpen::NXObject::ComputationalTime &value, NXOpen::Update::Option option)
void SetTimeUserAttribute (const NXString &title, int index, const NXString &value, NXOpen::Update::Option option)
void SetUserAttribute (const char *title, int index, const char *value, NXOpen::Update::Option option)
void SetUserAttribute (const char *title, int index, double value, NXOpen::Update::Option option)
void SetUserAttribute (const char *title, int index, int value, NXOpen::Update::Option option)
void SetUserAttribute (const char *title, int index, NXOpen::Update::Option option)
void SetUserAttribute (const NXOpen::NXObject::AttributeInformation &info, NXOpen::Update::Option option)
void SetUserAttribute (const NXString &title, int index, const NXString &value, NXOpen::Update::Option option)
void SetUserAttribute (const NXString &title, int index, double value, NXOpen::Update::Option option)
void SetUserAttribute (const NXString &title, int index, int value, NXOpen::Update::Option option)
void SetUserAttribute (const NXString &title, int index, NXOpen::Update::Option option)
void SetUserAttributeLock (const char *title, NXOpen::NXObject::AttributeType type, bool lock)
void SetUserAttributeLock (const NXString &title, NXOpen::NXObject::AttributeType type, bool lock)
Public 成员函数 继承自 NXOpen::TaggedObject
tag_t Tag () const

友元

class _SketchBuilder

额外继承的成员函数

Public 属性 继承自 NXOpen::NXObject
NXOpen::Update::Option option
const NXString NXOpen::Update::Option option
double NXOpen::Update::Option option
int NXOpen::Update::Option option
const NXStringvalue
double value
int value

详细描述

草图对象

表示草图
使用 NXOpen::SketchCollection 类创建草图。

创建于 NX3.0.0。

成员枚举类型说明

◆ AddEllipseOption

Used by NXOpen::Sketch::AddGeometry to determine whether to treat an ellipse as an ellipse or generic conic when adding the curve to a sketch. Treating an ellipse as a conic means that the ellipse will be given an anchor point. This affects, among other things, how the ellipse behaves when it is dragged. In order for an ellipse to be treated as a conic, its end angle minus its start angle must be less than 180 degrees.

枚举值
AddEllipseOptionTreatAsEllipse 

treat as ellipse

AddEllipseOptionTreatAsConic 

treat as conic

◆ AlternateSolutionOption

指示是否使用替代解决方案而非常规解决方案。 圆弧的替代解决方案是完整圆中未包含在常规解决方案中的部分。例如,如果常规解决方案是从0到45度的圆弧, 替代解决方案将是具有相同圆心和原点但从45度到360度的圆弧。

枚举值
AlternateSolutionOptionFalse 

使用常规解决方案

AlternateSolutionOptionTrue 

使用替代解决方案

◆ AssocType

Used in NXOpen::Sketch::DimensionGeometry to indicate what type of geometry to use

枚举值
AssocTypeNone 

Use the entire geometric item, as opposed to a point

AssocTypeStartPoint 

Start point. E.g. the start point of a line

AssocTypeEndPoint 

End point. E.g. the start point of a line

AssocTypeArcCenter 

Center of an arc, circle, or ellipse

AssocTypeTangency 

Create the dimension tangent to the geometric item

AssocTypeCurvePoint 

A point on a spline

AssocTypeAnchorPoint 

The anchor of a conic

AssocTypeMidpoint 

The midpoint of a curve

◆ AutoDimensioningRule

Type of Auto Dimensioning rules. It should match the rule types defined in Auto Dimensioning engine. Auto Dimensioning rules affect how the dimensions are created by the Auto Dimensioner. The rules will be put in a list, the first the rule with the highest priority and the last rule with the lowest priority. The user can change the order of the rules in the list to persue the flavor of the dimensions he wants. NXOpen::Sketch::AutoDimensioningRuleSymmetric : create symmetric dimensions if the curves are symmetric NXOpen::Sketch::AutoDimensioningRuleAdjacentAngle : create angles between adjacent lines NXOpen::Sketch::AutoDimensioningRuleLength : create length dimension for lines NXOpen::Sketch::AutoDimensioningRuleHorizontalVertical : create horizontal and vertical dimensions NXOpen::Sketch::AutoDimensioningRuleReferenceAxes : create dimensions between curves and reference axes

枚举值
AutoDimensioningRuleSymmetric 

Create Symmetric Dimensions

AutoDimensioningRuleAdjacentAngle 

Create Adjacent Angles

AutoDimensioningRuleLength 

Create Length Dimension

AutoDimensioningRuleHorizontalVertical 

Create Horizontal and Vertical Dimensions

AutoDimensioningRuleReferenceAxes 

Create Dimensions to Reference Axes

◆ ConstraintClass

Represents the class of the constraint. There are two classes of constraints: geometric and dimension

枚举值
ConstraintClassNotConstraint 

not constraint

ConstraintClassAny 

Used in query methods that filter by constraint class to select both types of constraints

ConstraintClassGeometric 

A non-dimension constraint

ConstraintClassDimension 

A dimensional constraint

◆ ConstraintGeometryHelpType

Used in ConstraintHelp to indicate what type of help it is

枚举值
ConstraintGeometryHelpTypePoint 

point

ConstraintGeometryHelpTypeParameter 

parameter

◆ ConstraintPointType

用于在 ConstraintGeometry 中指示几何是什么类型的点(如果有的话)

枚举值
ConstraintPointTypeNone 

几何不是点

ConstraintPointTypeStartVertex 

起始顶点(例如,直线的起点)

ConstraintPointTypeEndVertex 

结束顶点(例如,直线的终点)

ConstraintPointTypeArcCenter 

圆、弧或椭圆的中心

ConstraintPointTypeSplineDefiningPoint 

样条曲线的定义点

ConstraintPointTypeAnchor 

圆锥曲线的锚点

ConstraintPointTypeSplinePole 

样条曲线的控制点

ConstraintPointTypeMidVertex 

直线或弧的中点

◆ ConstraintType

Represents the type of constraint

枚举值
ConstraintTypeNoCon 

Used in query methods that filter by constraint type to select any type of constraint

ConstraintTypeFixed 

fixed

ConstraintTypeHorizontal 

horizontal

ConstraintTypeVertical 

vertical

ConstraintTypeParallel 

parallel

ConstraintTypePerpendicular 

perpendicular

ConstraintTypeCollinear 

collinear

ConstraintTypeEqualLength 

equal length

ConstraintTypeEqualRadius 

equal radius

ConstraintTypeConstantLength 

constant length

ConstraintTypeConstantAngle 

constant angle

ConstraintTypeCoincident 

coincident

ConstraintTypeConcentric 

concentric

ConstraintTypeMirror 

mirror

ConstraintTypePointOnCurve 

point on curve

ConstraintTypeMidpoint 

midpoint

ConstraintTypeTangent 

tangent

ConstraintTypeRadiusDim 

radius dim

ConstraintTypeDiameterDim 

diameter dim

ConstraintTypeHorizontalDim 

horizontal dim

ConstraintTypeVerticalDim 

vertical dim

ConstraintTypeParallelDim 

parallel dim

ConstraintTypePerpendicularDim 

perpendicular dim

ConstraintTypeAngularDim 

system will decide if it is major or minor

ConstraintTypeReservedCon1 

Do not use

ConstraintTypeReservedCon2 

Do not use

ConstraintTypeReservedCon3 

Do not use

ConstraintTypeReservedCon4 

Do not use

ConstraintTypeReservedCon5 

Do not use

ConstraintTypeReservedCon6 

Do not use

ConstraintTypePointOnString 

point on string

ConstraintTypeSlope 

slope

ConstraintTypeUniformScaled 

uniform scaled

ConstraintTypeNonUniformScaled 

non uniform scaled

ConstraintTypeAssocTrim 

Limited support

ConstraintTypeAssocOffset 

Limited support

ConstraintTypePerimeterDim 

perimeter dim

ConstraintTypeOffset 

offset

ConstraintTypeNormal 

normal

ConstraintTypePointOnLoop 

point on loop

ConstraintTypeRecipeTrim 

recipe trim

ConstraintTypePattern 

pattern

ConstraintTypeMinorAngularDim 

minor angular dim

ConstraintTypeMajorAngularDim 

major angular dim

ConstraintTypeLastConType 

The last constraint type indicator; NOT to be used.

◆ CreateDimensionOption

用于圆角,指示是否由圆角创建半径尺寸

枚举值
CreateDimensionOptionFalse 

不创建半径尺寸

CreateDimensionOptionTrue 

创建半径尺寸

◆ CreateInferConstraintSetting

指示是否创建推断约束

枚举值
CreateInferConstraintSettingOn 

创建推断约束

CreateInferConstraintSettingOff 

不创建推断约束

◆ DeleteThirdCurveOption

Indicates whether the 3rd curve should be deleted when doing a 3 curve fillet

枚举值
DeleteThirdCurveOptionFalse 

不删除第三条曲线

DeleteThirdCurveOptionTrue 

删除第三条曲线

◆ DimensionOption

Used by NXOpen::Sketch::CreateDimension , NXOpen::Sketch::CreateRadialDimension NXOpen::Sketch::CreateDiameterDimension and NXOpen::Sketch::CreatePerimeterDimension to determine whether to create driving, constant, or reference dimension

枚举值
DimensionOptionCreateAsDriving 

Create dimension as driving

DimensionOptionCreateAsReference 

Create dimension as reference

DimensionOptionCreateAsAutomatic 

Create dimension as automatic

DimensionOptionCreateAsConstant 

Create dimension as constant

◆ InferConstraintsOption

添加点或曲线到草图时使用。 指定是否推断新添加几何与草图中已有几何之间的重合约束。如果选择推断约束, 当新添加几何的端点与草图中其他端点在系统容差范围内位置相同时,将创建重合约束。

枚举值
InferConstraintsOptionInferNoConstraints 

不推断约束

InferConstraintsOptionInferCoincidentConstraints 

推断约束

◆ PlaneOption

指定草图使用的平面类型

枚举值
PlaneOptionInferred 

使用推断平面

PlaneOptionExistingPlane 

使用现有平面

PlaneOptionNewPlane 

使用新平面

PlaneOptionNewCsys 

使用新坐标系

◆ PointType

Sketch operations can involve an entire geometric object, such as a NXOpen::Line , or a control point of the geometry, such as a start point or center point.

枚举值
PointTypeNone 

none

PointTypeStartPoint 

start point

PointTypeEndPoint 

end point

PointTypeCenter 

center

PointTypeSplineDefiningPoint 

spline defining point

PointTypeAnchor 

anchor

PointTypeSplinePole 

spline pole

PointTypeMidPoint 

mid point

PointTypeQuadrant 

quadrant

◆ Status

表示草图的状态

枚举值
StatusUnknown 

未知

StatusNotEvaluated 

未评估

StatusUnderConstrained 

需要更多约束以完全约束草图

StatusWellConstrained 

草图已完全约束

StatusOverConstrained 

草图约束过多

StatusInconsistentlyConstrained 

草图存在冲突约束

◆ TrimInputOption

Indicates whether the input curves should be trimmed when doing a fillet

枚举值
TrimInputOptionFalse 

Do not trim the input curves

TrimInputOptionTrue 

Trim the input curves

◆ UpdateLevel

用于指示更新的程度

枚举值
UpdateLevelSketchOnly 

仅更新草图

UpdateLevelModel 

更新完整模型和草图

◆ ViewReorient

用于指示激活草图时是否重新定向视图

枚举值
ViewReorientFalse 

不重新定向视图到草图

ViewReorientTrue 

重新定向视图到草图

成员函数说明

◆ Activate()

void NXOpen::Sketch::Activate ( NXOpen::Sketch::ViewReorient orientView)

重新附着草图。

弃用
已在 NX11.0.0 中弃用。请使用 NXOpen::SketchInPlaceBuilder 替代。
创建于 NX3.0.0。
许可证要求:solid_modeling ("SOLIDS MODELING") 或 drafting ("DRAFTING") 或 geometric_tol ("GDT")

草图将附着到的面或基准平面。必须是平面。 可以是基准轴、边、基准平面、面或 NULL。 如果是边,该边必须是线段。如果是面, 该面必须是平面。如果为 NULL,则使用 reference_direction。 如果 reference_axis 为 NULL, 此参数设置草图的参考方向。 此时,该参数不能为 (0,0,0)。 如果 reference_axis 不为 NULL 且此参数不为 (0,0,0),此参数 确定参考方向是与 reference_axis 同向 还是反向。如果此参数为 (0,0,0), 则不使用此参数。 指示参考轴是水平还是垂直。 除非 reference_direction 为 (0,0,0) 且 reference_axis 是边或基准轴,否则忽略。 此参数指示参考轴应与 reference_axis 同向还是反向。 草图的 Z 轴应向外还是向内。 草图局部坐标系的原点。 Activates the sketch
Created in NX3.0.0.

License requirements : solid_modeling ("SOLIDS MODELING") OR drafting ("DRAFTING") OR geometric_tol ("GDT") OR nx_freeform_1 ("basic freeform modeling")

参数
orientViewIndicates whether to orient the view to the sketch during activation

◆ AddGeometry() [1/4]

void NXOpen::Sketch::AddGeometry ( NXOpen::Curve * crv,
NXOpen::Sketch::InferConstraintsOption inferCoincidentConstraints,
NXOpen::Sketch::AddEllipseOption ellipseOption )

Adds a curve or point to a sketch.
Created in NX3.0.0.

License requirements : solid_modeling ("SOLIDS MODELING") OR drafting ("DRAFTING") OR geometric_tol ("GDT") OR nx_freeform_1 ("basic freeform modeling")

参数
crvMust be a curve or point
inferCoincidentConstraintsWhether to automatically create coincident constraints when adding the geometry. If this flag is true and there exists another curve or point in the sketch that has a vertex that is at the same location (within system tolerance) as one of the vertices for crv, a coincident constraint will be created
ellipseOptionIf you are adding an ellipse to the sketch, this parameter indicates whether the ellipse should be treated as an ellipse or general conic. If you are not adding an ellipse, the option is ignored. See the documentation for NXOpen::Sketch::AddEllipseOption for more details. The default value is NXOpen::Sketch::AddEllipseOptionTreatAsEllipse . In order to treat an ellipse as a conic, its end angle minus its start angle must be less than 180 degrees.

◆ AddGeometry() [2/4]

void NXOpen::Sketch::AddGeometry ( NXOpen::DisplayableObject * crv)

Adds a curve or point to the sketch. Infers coincident constraints with other geometry in the sketch
Created in NX3.0.0.

License requirements : solid_modeling ("SOLIDS MODELING") OR drafting ("DRAFTING") OR geometric_tol ("GDT") OR nx_freeform_1 ("basic freeform modeling")

参数
crvMust be a curve or point

◆ AddGeometry() [3/4]

void NXOpen::Sketch::AddGeometry ( NXOpen::DisplayableObject * crv,
NXOpen::Sketch::InferConstraintsOption inferCoincidentConstraints )

Adds a curve or point to the sketch
Created in NX3.0.0.

License requirements : solid_modeling ("SOLIDS MODELING") OR drafting ("DRAFTING") OR geometric_tol ("GDT") OR nx_freeform_1 ("basic freeform modeling")

参数
crvMust be a curve or point
inferCoincidentConstraintsWhether to automatically create coincident constraints when adding the geometry. If this flag is true and there exists another curve or point in the sketch that has a vertex that is at the same location (within system tolerance) as one of the vertices for crv, a coincident constraint will be created

◆ AddGeometry() [4/4]

void NXOpen::Sketch::AddGeometry ( NXOpen::Sketch::InferConstraintsOption inferCoincidentConstraints,
NXOpen::Sketch::AddEllipseOption ellipseOption,
const std::vector< NXOpen::SmartObject * > & curvesOrPoints )

Adds an array of curves or points to a sketch.
Created in NX6.0.1.

License requirements : solid_modeling ("SOLIDS MODELING") OR drafting ("DRAFTING") OR geometric_tol ("GDT") OR nx_freeform_1 ("basic freeform modeling")

参数
inferCoincidentConstraintsWhether to automatically create coincident constraints when adding the geometry. If this flag is true and there exists another curve or point in the sketch that has a vertex that is at the same location (within system tolerance) as one of the vertices for crv, a coincident constraint will be created
ellipseOptionIf you are adding an ellipse to the sketch, this parameter indicates whether the ellipse should be treated as an ellipse or general conic. If you are not adding an ellipse, the option is ignored. See the documentation for NXOpen::Sketch::AddEllipseOption for more details. The default value is NXOpen::Sketch::AddEllipseOptionTreatAsEllipse . In order to treat an ellipse as a conic, its end angle minus its start angle must be less than 180 degrees.
curvesOrPointsMust be a curve or point

◆ AttachPlane()

NXOpen::ISurface * NXOpen::Sketch::AttachPlane ( )

Returns the plane that the sketch is attached to
Created in NX3.0.0.

License requirements : None

◆ AutoConstrain()

std::vector< NXOpen::SketchConstraint * > NXOpen::Sketch::AutoConstrain ( double linearTolerance,
double angularTolerance,
bool allowRemoteConstraints,
const std::vector< NXOpen::SmartObject * > & geometries,
const std::vector< NXOpen::Sketch::ConstraintType > & autoconstraintTypes )

对输入的几何集创建自动约束。

返回
推导的约束数组
创建于 NX4.0.0。

许可要求:solid_modeling ("SOLIDS MODELING") 或 drafting ("DRAFTING") 或 geometric_tol ("GDT")
参数
linearTolerance捕捉距离
angularTolerance捕捉角度
allowRemoteConstraints是否允许远程约束
geometries几何数组
autoconstraintTypes约束类型数组

◆ BreakAssociativity()

void NXOpen::Sketch::BreakAssociativity ( const std::vector< NXOpen::NXObject * > & sketchGeoms)

断开草图中配方几何(投影或相交曲线和点)的关联性,使其成为常规草图几何。 忽略任何非配方几何。在草图更新前调用。
创建于 NX11.0.0。

许可要求:solid_modeling ("SOLIDS MODELING") 或 drafting ("DRAFTING") 或 geometric_tol ("GDT")

参数
sketchGeoms活动草图中的配方几何

◆ CalculateStatus()

void NXOpen::Sketch::CalculateStatus ( )

Calculate the sketch status to detect if the dimensions and persistent relations define the sketch properly. The calculated status is stored on the sketch and can be accessed using NXOpen::Sketch::GetStatus . The sketch should be active without the Work Region enabled to get the correct status.
Created in NX1980.0.0.

License requirements : solid_modeling ("SOLIDS MODELING") OR drafting ("DRAFTING") OR geometric_tol ("GDT") OR nx_freeform_1 ("basic freeform modeling")

◆ ConvertRadialDimension()

void NXOpen::Sketch::ConvertRadialDimension ( const std::vector< NXOpen::DisplayableObject * > & dimensions)

将半径尺寸转换为直径尺寸或直径尺寸转换为半径尺寸。 当尺寸是驱动尺寸且其表达式被其他表达式引用,或其值是引用表达式的公式时,转换将不执行。 转换半径到直径时,半径值加倍为直径值。 转换直径到半径时,直径值减半为半径值。
创建于 NX1899.0.0。

许可要求:solid_modeling ("SOLIDS MODELING") 或 drafting ("DRAFTING") 或 geometric_tol ("GDT")

参数
dimensions要转换的尺寸

◆ ConvertToNx10Spline()

void NXOpen::Sketch::ConvertToNx10Spline ( NXOpen::Spline * spline)

将旧版样条曲线转换为新的 NX10 样条曲线。输入样条曲线将升级为 NX10 样条曲线。不会创建新样条曲线来替换输入样条曲线。
创建于 NX10.0.0。

许可要求:solid_modeling ("SOLIDS MODELING") 或 drafting ("DRAFTING") 或 geometric_tol ("GDT")

参数
spline样条曲线

◆ CopyObjects()

std::vector< NXOpen::NXObject * > NXOpen::Sketch::CopyObjects ( const std::vector< NXOpen::NXObject * > & inputObjects)

创建输入对象及其之间约束的副本。

返回
副本对象
创建于 NX4.0.0。

许可要求:solid_modeling ("SOLIDS MODELING") OR drafting ("DRAFTING") OR geometric_tol ("GDT")
参数
inputObjects要复制的对象

◆ CopyObjectsWithDimensionOutput()

void NXOpen::Sketch::CopyObjectsWithDimensionOutput ( const std::vector< NXOpen::NXObject * > & inputObjects,
std::vector< NXOpen::NXObject * > & outputObjects,
std::vector< NXOpen::NXObject * > & outputDims )

创建输入对象及其之间约束的副本。此函数与 NXOpen::Sketch::CopyObjects 相同,只是返回新创建的尺寸数组
创建于 NX6.0.0。

许可要求:solid_modeling ("SOLIDS MODELING") OR drafting ("DRAFTING") OR geometric_tol ("GDT")

参数
inputObjects要复制的对象
outputObjects副本对象
outputDims副本尺寸

◆ CopyObjectsWithTracking()

std::vector< NXOpen::Sketch::CopyObjectData > NXOpen::Sketch::CopyObjectsWithTracking ( const std::vector< NXOpen::DisplayableObject * > & inputObjects)

复制输入对象和它们之间的约束。 仅当输入对象数组中显式包含时,才复制草图尺寸。

返回
原始输入对象与对应复制对象的映射
创建于 NX7.5.0。

许可要求:solid_modeling ("SOLIDS MODELING") 或 drafting ("DRAFTING") 或 geometric_tol ("GDT")
参数
inputObjects要复制的对象

◆ CreateCoincidentConstraint()

NXOpen::SketchGeometricConstraint * NXOpen::Sketch::CreateCoincidentConstraint ( const NXOpen::Sketch::ConstraintGeometry & geom1,
const NXOpen::Sketch::ConstraintGeometry & geom2 )

Creates a coincident constraint

返回
The coincident constraint
Created in NX3.0.0.

License requirements : solid_modeling ("SOLIDS MODELING") OR drafting ("DRAFTING") OR geometric_tol ("GDT")
参数
geom1Must be a vertex
geom2Must be a vertex

◆ CreateCollinearConstraint()

NXOpen::SketchGeometricConstraint * NXOpen::Sketch::CreateCollinearConstraint ( const NXOpen::Sketch::ConstraintGeometry & conGeom1,
const NXOpen::Sketch::ConstraintGeometry & conGeom2 )

Creates a collinear constraint. One of the input constraint geometries must be a line.

返回
The collinear constraint
Created in NX3.0.0.

License requirements : solid_modeling ("SOLIDS MODELING") OR drafting ("DRAFTING") OR geometric_tol ("GDT")
参数
conGeom1Must be a line, linear edge, datum axis, or datum plane
conGeom2Must be a line, linear edge, datum axis, or datum plane

◆ CreateConcentricConstraint()

NXOpen::SketchGeometricConstraint * NXOpen::Sketch::CreateConcentricConstraint ( const NXOpen::Sketch::ConstraintGeometry & conGeom1,
const NXOpen::Sketch::ConstraintGeometry & conGeom2 )

Creates a concentric constraint. One of the input constraint geometries must be a curve.

返回
The concentric constraint
Created in NX3.0.0.

License requirements : solid_modeling ("SOLIDS MODELING") OR drafting ("DRAFTING") OR geometric_tol ("GDT")
参数
conGeom1Must be an arc or ellipse or edge shaped as an arc or ellipse
conGeom2Must be an arc or ellipse or edge shaped as an arc or ellipse

◆ CreateConstantAngleConstraint()

NXOpen::SketchGeometricConstraint * NXOpen::Sketch::CreateConstantAngleConstraint ( const NXOpen::Sketch::ConstraintGeometry & conGeom)

Creates a constant angle constraint

返回
The constant angle constraint
Created in NX3.0.0.

License requirements : solid_modeling ("SOLIDS MODELING") OR drafting ("DRAFTING") OR geometric_tol ("GDT")
参数
conGeomMust be a line

◆ CreateConstantLengthConstraint()

NXOpen::SketchGeometricConstraint * NXOpen::Sketch::CreateConstantLengthConstraint ( const NXOpen::Sketch::ConstraintGeometry & conGeom)

Creates a constant length constraint

返回
The constant length constraint
Created in NX3.0.0.

License requirements : solid_modeling ("SOLIDS MODELING") OR drafting ("DRAFTING") OR geometric_tol ("GDT")
参数
conGeomMust be a line

◆ CreateDiameterDimension() [1/2]

NXOpen::SketchDimensionalConstraint * NXOpen::Sketch::CreateDiameterDimension ( const NXOpen::Sketch::DimensionGeometry & dimObject1,
const NXOpen::Point3d & dimOrigin,
NXOpen::Expression * expression )

Creates a diameter dimension constraint

返回
The diametral dimension constraint
Created in NX3.0.0.

License requirements : solid_modeling ("SOLIDS MODELING") OR drafting ("DRAFTING") OR geometric_tol ("GDT")
参数
dimObject1Should be an arc
dimOriginThe location where the dimension should be placed
expressionDefining expression for the dimension. Can be NULL

◆ CreateDiameterDimension() [2/2]

NXOpen::SketchDimensionalConstraint * NXOpen::Sketch::CreateDiameterDimension ( const NXOpen::Sketch::DimensionGeometry & dimObject1,
const NXOpen::Point3d & dimOrigin,
NXOpen::Expression * expression,
NXOpen::Sketch::DimensionOption refDim )

Creates a diameter dimension constraint. Accepts a flag to create the dim as driving or reference

返回
The diametral dimension constraint
Created in NX4.0.0.

License requirements : solid_modeling ("SOLIDS MODELING") OR drafting ("DRAFTING") OR geometric_tol ("GDT")
参数
dimObject1Should be an arc
dimOriginThe location where the dimension should be placed
expressionDefining expression for the dimension. Can be NULL
refDimoption for creating driving or reference dimension

◆ CreateDimension() [1/2]

NXOpen::SketchDimensionalConstraint * NXOpen::Sketch::CreateDimension ( NXOpen::Sketch::ConstraintType dimType,
const NXOpen::Sketch::DimensionGeometry & dimObject1,
const NXOpen::Sketch::DimensionGeometry & dimObject2,
const NXOpen::Point3d & dimOrigin,
NXOpen::Expression * expression )

Creates a dimension between two geometric objects. Do not use for radial, diameter, or perimeter dimensions. To create a radial or diameter constraint, use NXOpen::Sketch::CreateRadialDimension or NXOpen::Sketch::CreateDiameterDimension . To create a perimeter dimension, use NXOpen::Sketch::CreatePerimeterDimension

返回
The dimensional constraint
Created in NX3.0.0.

License requirements : solid_modeling ("SOLIDS MODELING") OR drafting ("DRAFTING") OR geometric_tol ("GDT")
参数
dimTypeMust be one of the dimension types and should not be a radial, diametral, or perimeter dimension
dimObject1First input geometry
dimObject2Second input geometry
dimOriginThe location where the dimension should be placed
expressionDefining expression for the dimension. Can be NULL

◆ CreateDimension() [2/2]

NXOpen::SketchDimensionalConstraint * NXOpen::Sketch::CreateDimension ( NXOpen::Sketch::ConstraintType dimType,
const NXOpen::Sketch::DimensionGeometry & dimObject1,
const NXOpen::Sketch::DimensionGeometry & dimObject2,
const NXOpen::Point3d & dimOrigin,
NXOpen::Expression * expression,
NXOpen::Sketch::DimensionOption refDim )

Creates a dimension between two geometric objects. Do not use for radial, diameter, or perimeter dimensions. To create a radial or diameter constraint, use NXOpen::Sketch::CreateRadialDimension or NXOpen::Sketch::CreateDiameterDimension . To create a perimeter dimension, use NXOpen::Sketch::CreatePerimeterDimension . This function takes in an argument to create the dimension as driving or reference.

返回
The dimensional constraint
Created in NX4.0.0.

License requirements : solid_modeling ("SOLIDS MODELING") OR drafting ("DRAFTING") OR geometric_tol ("GDT")
参数
dimTypeMust be one of the dimension types and should not be a radial, diametral, or perimeter dimension
dimObject1First input geometry
dimObject2Second input geometry
dimOriginThe location where the dimension should be placed
expressionDefining expression for the dimension. Can be NULL
refDimoption for creating driving or reference dimension

◆ CreateEqualLengthConstraint()

NXOpen::SketchGeometricConstraint * NXOpen::Sketch::CreateEqualLengthConstraint ( const NXOpen::Sketch::ConstraintGeometry & conGeom1,
const NXOpen::Sketch::ConstraintGeometry & conGeom2 )

Creates an equal length constraint. One of the input constraint geometries must be a line.

返回
The equal length constraint
Created in NX3.0.0.

License requirements : solid_modeling ("SOLIDS MODELING") OR drafting ("DRAFTING") OR geometric_tol ("GDT")
参数
conGeom1Must be a line or linear edge
conGeom2Must be a line or linear edge

◆ CreateEqualRadiusConstraint()

NXOpen::SketchGeometricConstraint * NXOpen::Sketch::CreateEqualRadiusConstraint ( const NXOpen::Sketch::ConstraintGeometry & conGeom1,
const NXOpen::Sketch::ConstraintGeometry & conGeom2 )

Creates an equal radius constraint. One of the input constraint geometries must be a curve.

返回
The equal radius constraint
Created in NX3.0.0.

License requirements : solid_modeling ("SOLIDS MODELING") OR drafting ("DRAFTING") OR geometric_tol ("GDT")
参数
conGeom1Must be an arc or edge shaped as an arc
conGeom2Must be an arc or edge shaped as an arc

◆ CreateFixedConstraint()

NXOpen::SketchGeometricConstraint * NXOpen::Sketch::CreateFixedConstraint ( const NXOpen::Sketch::ConstraintGeometry & geom)

Creates a fixed constraint

返回
The fixed constraint
Created in NX3.0.0.

License requirements : solid_modeling ("SOLIDS MODELING") OR drafting ("DRAFTING") OR geometric_tol ("GDT")
参数
geomCan be any curve, point, or vertex in the sketch

◆ CreateFullyFixedConstraints()

std::vector< NXOpen::SketchGeometricConstraint * > NXOpen::Sketch::CreateFullyFixedConstraints ( const NXOpen::Sketch::ConstraintGeometry & geom)

Creates enough fixed constraints on the curve and all of its vertices such that the geometry is fully fixed without any redundant fixed constraints.

返回
The fixed constraints
Created in NX5.0.0.

License requirements : solid_modeling ("SOLIDS MODELING") OR drafting ("DRAFTING") OR geometric_tol ("GDT")
参数
geomCan be any curve, point, or vertex in the sketch

◆ CreateHorizontalConstraint()

NXOpen::SketchGeometricConstraint * NXOpen::Sketch::CreateHorizontalConstraint ( const NXOpen::Sketch::ConstraintGeometry & geom)

Creates a horizontal constraint

返回
The horizontal constraint
Created in NX3.0.0.

License requirements : solid_modeling ("SOLIDS MODELING") OR drafting ("DRAFTING") OR geometric_tol ("GDT")
参数
geomMust be a line

◆ CreateInferConstraintsSetting()

NXOpen::Sketch::CreateInferConstraintSetting NXOpen::Sketch::CreateInferConstraintsSetting ( )

Returns the toggle that controls the creation of infer constraints in sketch
Created in NX4.0.0.

License requirements : None

◆ CreateMidpointConstraint()

NXOpen::SketchGeometricConstraint * NXOpen::Sketch::CreateMidpointConstraint ( const NXOpen::Sketch::ConstraintGeometry & conGeom1,
const NXOpen::Sketch::ConstraintGeometry & conGeom2 )

Creates a midpoint constraint. One of the input constraint geometries must be a vertex and the other must be a curve or edge.

返回
The midpoint constraint
Created in NX3.0.0.

License requirements : solid_modeling ("SOLIDS MODELING") OR drafting ("DRAFTING") OR geometric_tol ("GDT")
参数
conGeom1con geom1
conGeom2con geom2

◆ CreateNonUniformScaledConstraint()

NXOpen::SketchGeometricConstraint * NXOpen::Sketch::CreateNonUniformScaledConstraint ( const NXOpen::Sketch::ConstraintGeometry & conGeom)

Creates a non-uniform scale constraint

返回
The non-uniform scale constraint
Created in NX3.0.0.

License requirements : solid_modeling ("SOLIDS MODELING") OR drafting ("DRAFTING") OR geometric_tol ("GDT")
参数
conGeomMust be a spline

◆ CreateNormalConstraint()

NXOpen::SketchGeometricConstraint * NXOpen::Sketch::CreateNormalConstraint ( const NXOpen::Sketch::ConstraintGeometry & conGeom1,
const NXOpen::Sketch::ConstraintGeometryHelp & geom1Help,
const NXOpen::Sketch::ConstraintGeometry & conGeom2,
const NXOpen::Sketch::ConstraintGeometryHelp & geom2Help )

Creates a normal constraint. A normal constraint can be created between any two curve/edge type except between two linear objects. For linear objects, create a perpendicular constraint

返回
The normal constraint
Created in NX3.0.0.

License requirements : solid_modeling ("SOLIDS MODELING") OR drafting ("DRAFTING") OR geometric_tol ("GDT")
参数
conGeom1First input geometry for the constraint
geom1HelpHelp data for first geom
conGeom2Second input geometry for the constraint
geom2HelpHelp data for second geom

◆ CreateParallelConstraint()

NXOpen::SketchGeometricConstraint * NXOpen::Sketch::CreateParallelConstraint ( const NXOpen::Sketch::ConstraintGeometry & conGeom1,
const NXOpen::Sketch::ConstraintGeometry & conGeom2 )

Creates a parallel constraint. A parallel constraint can only be created between one of the following pairs: (line, line or linear edge), (line, datum axis or datum plane), (line or linear edge, ellipse), (line, ellipse or elliptical edge), (ellipse, ellipse or elliptical edge).

返回
The parallel constraint
Created in NX3.0.0.

License requirements : solid_modeling ("SOLIDS MODELING") OR drafting ("DRAFTING") OR geometric_tol ("GDT")
参数
conGeom1First input geometry for the constraint
conGeom2Second input geometry for the constraint

◆ CreatePerimeterDimension()

NXOpen::SketchDimensionalConstraint * NXOpen::Sketch::CreatePerimeterDimension ( const std::vector< NXOpen::Curve * > & curves,
const NXOpen::Point3d & dimOrigin,
NXOpen::Expression * expression )

Creates a perimeter dimension constraint

返回
The perimeter dimensional constraint
Created in NX3.0.0.

License requirements : solid_modeling ("SOLIDS MODELING") OR drafting ("DRAFTING") OR geometric_tol ("GDT")
参数
curvesThe curves that form the perimeter
dimOriginNot currently used
expressionDefining expression for the dimension. Can be NULL

◆ CreatePerpendicularConstraint()

NXOpen::SketchGeometricConstraint * NXOpen::Sketch::CreatePerpendicularConstraint ( const NXOpen::Sketch::ConstraintGeometry & conGeom1,
const NXOpen::Sketch::ConstraintGeometry & conGeom2 )

Creates a perpendicular constraint. A perpendicular constraint can only be created between one of the following pairs: (line, line or linear edge), (line, datum axis or datum plane), (line or linear edge, ellipse), (line, ellipse or elliptical edge), (ellipse, ellipse or elliptical edge).

返回
The perpendicular constraint
Created in NX3.0.0.

License requirements : solid_modeling ("SOLIDS MODELING") OR drafting ("DRAFTING") OR geometric_tol ("GDT")
参数
conGeom1First input geometry for the constraint
conGeom2Second input geometry for the constraint

◆ CreatePointOnCurveConstraint()

NXOpen::SketchHelpedGeometricConstraint * NXOpen::Sketch::CreatePointOnCurveConstraint ( const NXOpen::Sketch::ConstraintGeometry & conGeom1,
const NXOpen::Sketch::ConstraintGeometry & conGeom2,
const NXOpen::Sketch::ConstraintGeometryHelp & help )

Creates a point on curve constraint. One of the input geometries must be a vertex and the other must be a curve, edge, datum axis, or datum plane.

返回
The point on curve constraint
Created in NX3.0.0.

License requirements : solid_modeling ("SOLIDS MODELING") OR drafting ("DRAFTING") OR geometric_tol ("GDT")
参数
conGeom1con geom1
conGeom2con geom2
helphelp

◆ CreatePointOnStringConstraint() [1/2]

NXOpen::SketchHelpedGeometricConstraint * NXOpen::Sketch::CreatePointOnStringConstraint ( const NXOpen::Sketch::ConstraintGeometry & conGeom1,
const std::vector< NXOpen::Curve * > & curvesInString,
const NXOpen::Sketch::ConstraintGeometryHelp & helpData,
int curveWhichHelpParamAppliesTo )

Creates a point on string constraint.

返回
The point on string constraint
Created in NX3.0.0.

License requirements : solid_modeling ("SOLIDS MODELING") OR drafting ("DRAFTING") OR geometric_tol ("GDT")
参数
conGeom1Must be a vertex
curvesInStringMust all be part of the same string. (You can create a string of curves through the UI through the Edit -> Project command.)
helpDatahelp data
curveWhichHelpParamAppliesToIf helpData is a parameter, this parameter indicates which curve in the curvesInString that the help parameter applies to. Otherwise, this parameter is not used

◆ CreatePointOnStringConstraint() [2/2]

NXOpen::SketchHelpedGeometricConstraint * NXOpen::Sketch::CreatePointOnStringConstraint ( const NXOpen::Sketch::ConstraintGeometry & conGeom1,
NXOpen::Curve * curveInString,
const NXOpen::Sketch::ConstraintGeometryHelp & helpData )

Creates a point on string constraint. The string is specified using a single curve in the string. The constraint is created on the entire string that curveInString belongs to.

返回
The point on string constraint
Created in NX3.0.0.

License requirements : solid_modeling ("SOLIDS MODELING") OR drafting ("DRAFTING") OR geometric_tol ("GDT")
参数
conGeom1Must be a vertex
curveInStringA curve in the string that you want to create the constraint on. The constraint is created on the entire string that this curve belongs to. (You can create a string of curves through the UI through the Edit -> Project command.)
helpDatahelp data

◆ CreateRadialDimension() [1/2]

NXOpen::SketchDimensionalConstraint * NXOpen::Sketch::CreateRadialDimension ( const NXOpen::Sketch::DimensionGeometry & dimObject1,
const NXOpen::Point3d & dimOrigin,
NXOpen::Expression * expression )

Creates a radial dimension constraint

返回
The radial dimension constraint
Created in NX3.0.0.

License requirements : solid_modeling ("SOLIDS MODELING") OR drafting ("DRAFTING") OR geometric_tol ("GDT")
参数
dimObject1Should be an arc
dimOriginThe location where the dimension should be placed
expressionDefining expression for the dimension. Can be NULL

◆ CreateRadialDimension() [2/2]

NXOpen::SketchDimensionalConstraint * NXOpen::Sketch::CreateRadialDimension ( const NXOpen::Sketch::DimensionGeometry & dimObject1,
const NXOpen::Point3d & dimOrigin,
NXOpen::Expression * expression,
NXOpen::Sketch::DimensionOption refDim )

Creates a radial dimension constraint. Accepts a flag to create the dimension as driving or reference

返回
The radial dimension constraint
Created in NX4.0.0.

License requirements : solid_modeling ("SOLIDS MODELING") OR drafting ("DRAFTING") OR geometric_tol ("GDT")
参数
dimObject1Should be an arc
dimOriginThe location where the dimension should be placed
expressionDefining expression for the dimension. Can be NULL
refDimoption for creating driving or reference dimension

◆ CreateSlopeConstraint()

NXOpen::SketchGeometricConstraint * NXOpen::Sketch::CreateSlopeConstraint ( const NXOpen::Sketch::ConstraintGeometry & conGeom1,
const NXOpen::Sketch::ConstraintGeometry & conGeom2 )

Creates a slope constraint. One of the input constraint geometries must a spline defining point. The other must be datum axis, datum plane, or a curve or edge shaped as a line, arc, ellipse, conic, or spline.

返回
The slope constraint
Created in NX3.0.0.

License requirements : solid_modeling ("SOLIDS MODELING") OR drafting ("DRAFTING") OR geometric_tol ("GDT")
参数
conGeom1con geom1
conGeom2con geom2

◆ CreateTangentConstraint()

NXOpen::SketchTangentConstraint * NXOpen::Sketch::CreateTangentConstraint ( const NXOpen::Sketch::ConstraintGeometry & geom1,
const NXOpen::Sketch::ConstraintGeometryHelp & geom1Help,
const NXOpen::Sketch::ConstraintGeometry & geom2,
const NXOpen::Sketch::ConstraintGeometryHelp & geom2Help )

Creates a tangent constraint. Note: the input constraint geometries cannot both be linear.

返回
The tangent constraint
Created in NX3.0.0.

License requirements : solid_modeling ("SOLIDS MODELING") OR drafting ("DRAFTING") OR geometric_tol ("GDT")
参数
geom1A curve, edge, or datum axis
geom1Helpgeom1 help
geom2A curve, edge, or datum axis
geom2Helpgeom2 help

◆ CreateUniformScaledConstraint()

NXOpen::SketchGeometricConstraint * NXOpen::Sketch::CreateUniformScaledConstraint ( const NXOpen::Sketch::ConstraintGeometry & conGeom)

Creates a uniform scale constraint

返回
The uniform scale constraint
Created in NX3.0.0.

License requirements : solid_modeling ("SOLIDS MODELING") OR drafting ("DRAFTING") OR geometric_tol ("GDT")
参数
conGeomMust be a spline

◆ CreateVerticalConstraint()

NXOpen::SketchGeometricConstraint * NXOpen::Sketch::CreateVerticalConstraint ( const NXOpen::Sketch::ConstraintGeometry & geom)

Creates a vertical constraint

返回
The vertical constraint
Created in NX3.0.0.

License requirements : solid_modeling ("SOLIDS MODELING") OR drafting ("DRAFTING") OR geometric_tol ("GDT")
参数
geomMust be a line

◆ Deactivate()

void NXOpen::Sketch::Deactivate ( NXOpen::Sketch::ViewReorient orientView,
NXOpen::Sketch::UpdateLevel updateLevel )

Deactivates the sketch
Created in NX3.0.0.

License requirements : solid_modeling ("SOLIDS MODELING") OR drafting ("DRAFTING") OR geometric_tol ("GDT") OR nx_freeform_1 ("basic freeform modeling")

参数
orientViewIndicates whether to orient the view to the model during deactivation
updateLevelIndicates whether just the sketch should be updated or the entire model

◆ DeleteConstraintsOnGeometries() [1/3]

void NXOpen::Sketch::DeleteConstraintsOnGeometries ( const std::vector< NXOpen::NXObject * > & objects)

删除与对象及其所有顶点相关联的所有几何约束。将与对象及其顶点相关联的所有驱动尺寸转换为参考尺寸。
创建于 NX4.0.0。

许可要求:solid_modeling ("SOLIDS MODELING") OR drafting ("DRAFTING") OR geometric_tol ("GDT")

参数
objects需删除约束的对象

◆ DeleteConstraintsOnGeometries() [2/3]

void NXOpen::Sketch::DeleteConstraintsOnGeometries ( const std::vector< NXOpen::Sketch::ConstraintGeometry > & objects)

删除与对象及其所有顶点相关联的所有几何约束。将与对象及其顶点相关联的所有驱动尺寸转换为参考尺寸。用户可以传入一个顶点,对提供的顶点执行相同操作。
创建于 NX8.5.0。

许可要求:solid_modeling ("SOLIDS MODELING") OR drafting ("DRAFTING") OR geometric_tol ("GDT")

参数
objects需删除约束的对象

◆ DeleteConstraintsOnGeometries() [3/3]

void NXOpen::Sketch::DeleteConstraintsOnGeometries ( NXOpen::Sketch::ConstraintClass conClass,
const std::vector< NXOpen::Sketch::ConstraintGeometry > & objects )

根据约束类删除与输入草图几何和顶点相关联的约束,例如:


创建于 NX11.0.0。

许可要求:solid_modeling ("SOLIDS MODELING") OR drafting ("DRAFTING") OR geometric_tol ("GDT")

参数
conClass如果不想按约束类筛选,请使用 NXOpen::Sketch::ConstraintClassAny
objects需删除约束的对象

◆ DeleteObjects()

NXOpen::ErrorList * NXOpen::Sketch::DeleteObjects ( const std::vector< NXOpen::NXObject * > & objects)

从草图中删除对象

返回
删除过程中遇到的错误列表
创建于 NX3.0.0。
许可证要求:solid_modeling ("SOLIDS MODELING") 或 drafting ("DRAFTING") 或 geometric_tol ("GDT")
参数
objects要删除的对象

◆ DOFDisplay()

bool NXOpen::Sketch::DOFDisplay ( )

Returns a flag indicating whether the degree of freedom arrows are currently being displayed
Created in NX3.0.0.

License requirements : None

◆ EditSplineDefiningPoints()

void NXOpen::Sketch::EditSplineDefiningPoints ( NXOpen::Spline * spline,
const std::vector< double > & points )

更改样条曲线的定义点位置。points 数组长度需足够覆盖现有定义点。无法通过此调用添加/删除点或更改节点序列。
创建于 NX10.0.0。

许可要求:solid_modeling ("SOLIDS MODELING") 或 drafting ("DRAFTING") 或 geometric_tol ("GDT")

参数
spline样条曲线
points定义点位置。大小为点数的三倍。

◆ EditSplinePoles()

void NXOpen::Sketch::EditSplinePoles ( NXOpen::Spline * spline,
const std::vector< double > & poles )

更改样条曲线的控制点位置。poles 数组长度需足够覆盖现有控制点。无法通过此调用添加/删除控制点或更改节点序列。poles 数组中的数据顺序为 x、y、z、权重。可通过此函数编辑任意或所有这四个值。
创建于 NX10.0.0。

许可要求:solid_modeling ("SOLIDS MODELING") 或 drafting ("DRAFTING") 或 geometric_tol ("GDT")

参数
spline样条曲线
poles控制点位置。大小为点数的四倍。

◆ Feature()

NXOpen::Features::Feature * NXOpen::Sketch::Feature ( )

返回与此草图关联的特征
创建于 NX3.0.0。

许可要求:无

◆ Fillet() [1/4]

std::vector< NXOpen::Arc * > NXOpen::Sketch::Fillet ( NXOpen::Curve * curve1,
NXOpen::Curve * curve2,
const NXOpen::Point3d & helpPoint1,
const NXOpen::Point3d & helpPoint2,
const NXOpen::Point3d & pointOnArc,
double radius,
NXOpen::Sketch::TrimInputOption doTrim,
NXOpen::Sketch::CreateDimensionOption createRadiusDim,
NXOpen::Sketch::AlternateSolutionOption alternateSolution,
std::vector< NXOpen::SketchConstraint * > & constraints )

Fillets curves and creates appropriate constraints. If the input curves have mirror constraints, the fillet is also performed on the mirror curves.

返回
The fillet arcs that are created. If the input curves do not have any mirror constraints, the number of fillet arcs will always be one. If the input curves have mirror constraints, fillets will be created on the mirrored curves, and all the fillet arcs that were created are returned
Created in NX7.5.0.

License requirements : solid_modeling ("SOLIDS MODELING") OR drafting ("DRAFTING") OR geometric_tol ("GDT")
参数
curve1First curve for the fillet
curve2Second curve for the fillet
helpPoint1Should be a point on the first curve. Indicates where the fillet should be created
helpPoint2Should be a point on the second curve. Indicates where the fillet should be created
pointOnArcPoint on fillet arc
radiusRadius of the fillet
doTrimIndicates whether the input curves should get trimmed by the fillet
createRadiusDimIndicates whether a radius dimension should be created
alternateSolutionIndicates whether the alternate solution should be used instead of the regular solution. The alternate solution for an arc is the portion of the full circle that is left out of the regular solution.
constraintsThe constraints that were created by the fillet. If the input curves get trimmed, coincident and tangent constraints are created. If the input curves do not get trimmed, point on curve and tangent constraints are created.

◆ Fillet() [2/4]

std::vector< NXOpen::Arc * > NXOpen::Sketch::Fillet ( NXOpen::Curve * curve1,
NXOpen::Curve * curve2,
const NXOpen::Point3d & helpPoint1,
const NXOpen::Point3d & helpPoint2,
double radius,
NXOpen::Sketch::TrimInputOption doTrim,
NXOpen::Sketch::CreateDimensionOption createRadiusDim,
NXOpen::Sketch::AlternateSolutionOption alternateSolution,
std::vector< NXOpen::SketchConstraint * > & constraints )

Fillets curves and creates appropriate constraints. If the input curves have mirror constraints, the fillet is also performed on the mirror curves.

返回
The fillet arcs that are created. If the input curves do not have any mirror constraints, the number of fillet arcs will always be one. If the input curves have mirror constraints, fillets will be created on the mirrored curves, and all the fillet arcs that were created are returned
Created in NX3.0.0.

License requirements : solid_modeling ("SOLIDS MODELING") OR drafting ("DRAFTING") OR geometric_tol ("GDT")
参数
curve1First curve for the fillet
curve2Second curve for the fillet
helpPoint1Should be a point on the first curve. Indicates where the fillet should be created
helpPoint2Should be a point on the second curve. Indicates where the fillet should be created
radiusRadius of the fillet
doTrimIndicates whether the input curves should get trimmed by the fillet
createRadiusDimIndicates whether a radius dimension should be created
alternateSolutionIndicates whether the alternate solution should be used instead of the regular solution. The alternate solution for an arc is the portion of the full circle that is left out of the regular solution.
constraintsThe constraints that were created by the fillet. If the input curves get trimmed, coincident and tangent constraints are created. If the input curves do not get trimmed, point on curve and tangent constraints are created.

◆ Fillet() [3/4]

std::vector< NXOpen::Arc * > NXOpen::Sketch::Fillet ( NXOpen::Curve * curve1,
NXOpen::Curve * curve2,
NXOpen::Curve * curve3,
const NXOpen::Point3d & helpPoint1,
const NXOpen::Point3d & helpPoint2,
const NXOpen::Point3d & helpPoint3,
const NXOpen::Point3d & pointOnArc,
double radius,
NXOpen::Sketch::TrimInputOption doTrim,
NXOpen::Sketch::DeleteThirdCurveOption doDelete,
NXOpen::Sketch::CreateDimensionOption createRadiusDim,
NXOpen::Sketch::AlternateSolutionOption alternateSolution,
std::vector< NXOpen::SketchConstraint * > & constraints )

Fillets curves and creates appropriate constraints. If the input curves have mirror constraints, the fillet is also performed on the mirror curves.

返回
The fillet arcs that are created. If the input curves do not have any mirror constraints, the number of fillet arcs will always be one. If the input curves have mirror constraints, fillets will be created on the mirrored curves, and all the fillet arcs that were created are returned
Created in NX7.5.0.

License requirements : solid_modeling ("SOLIDS MODELING") OR drafting ("DRAFTING") OR geometric_tol ("GDT")
参数
curve1First curve for the fillet
curve2Second curve for the fillet
curve3Third curve for the fillet
helpPoint1Should be a point on the first curve. Indicates where the fillet should be created
helpPoint2Should be a point on the second curve. Indicates where the fillet should be created
helpPoint3Should be a point on the third curve. Indicates where the fillet should be created
pointOnArcPoint on fillet arc
radiusRadius of the fillet
doTrimIndicates whether the input curves should get trimmed by the fillet
doDeleteIndicates whether the third curve should be deleted
createRadiusDimIndicates whether a radius dimension should be created
alternateSolutionIndicates whether the alternate solution should be used instead of the regular solution. The alternate solution for an arc is the portion of the full circle that is left out of the regular solution.
constraintsThe constraints that were created by the fillet. If the input curves get trimmed, coincident and tangent constraints are created. If the input curves do not get trimmed, point on curve and tangent constraints are created.

◆ Fillet() [4/4]

std::vector< NXOpen::Arc * > NXOpen::Sketch::Fillet ( NXOpen::Curve * curve1,
NXOpen::Curve * curve2,
NXOpen::Curve * curve3,
const NXOpen::Point3d & helpPoint1,
const NXOpen::Point3d & helpPoint2,
const NXOpen::Point3d & helpPoint3,
double radius,
NXOpen::Sketch::TrimInputOption doTrim,
NXOpen::Sketch::DeleteThirdCurveOption doDelete,
NXOpen::Sketch::CreateDimensionOption createRadiusDim,
NXOpen::Sketch::AlternateSolutionOption alternateSolution,
std::vector< NXOpen::SketchConstraint * > & constraints )

Fillets curves and creates appropriate constraints. If the input curves have mirror constraints, the fillet is also performed on the mirror curves.

返回
The fillet arcs that are created. If the input curves do not have any mirror constraints, the number of fillet arcs will always be one. If the input curves have mirror constraints, fillets will be created on the mirrored curves, and all the fillet arcs that were created are returned
Created in NX3.0.0.

License requirements : solid_modeling ("SOLIDS MODELING") OR drafting ("DRAFTING") OR geometric_tol ("GDT")
参数
curve1First curve for the fillet
curve2Second curve for the fillet
curve3Third curve for the fillet
helpPoint1Should be a point on the first curve. Indicates where the fillet should be created
helpPoint2Should be a point on the second curve. Indicates where the fillet should be created
helpPoint3Should be a point on the third curve. Indicates where the fillet should be created
radiusRadius of the fillet
doTrimIndicates whether the input curves should get trimmed by the fillet
doDeleteIndicates whether the third curve should be deleted
createRadiusDimIndicates whether a radius dimension should be created
alternateSolutionIndicates whether the alternate solution should be used instead of the regular solution. The alternate solution for an arc is the portion of the full circle that is left out of the regular solution.
constraintsThe constraints that were created by the fillet. If the input curves get trimmed, coincident and tangent constraints are created. If the input curves do not get trimmed, point on curve and tangent constraints are created.

◆ FlipNormal()

void NXOpen::Sketch::FlipNormal ( )

Flips the outward normal vector of the sketch
Created in NX3.0.0.

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

◆ FlipReferenceDirection()

void NXOpen::Sketch::FlipReferenceDirection ( )

Flips the reference direction of the sketch
Created in NX3.0.0.

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

◆ GetAllConstraintsOfType()

std::vector< NXOpen::SketchConstraint * > NXOpen::Sketch::GetAllConstraintsOfType ( NXOpen::Sketch::ConstraintClass conClass,
NXOpen::Sketch::ConstraintType conType )

Gets all constraints in the sketch of a particular type

返回
All the constraints in the sketch of the specified type
Created in NX3.0.0.

License requirements : None
参数
conClassOptional filter. Use NXOpen::Sketch::ConstraintClassAny if you do not want to filter by constraint class
conTypeOptional filter. Use NXOpen::Sketch::ConstraintTypeNoCon if you do not want to filter by constraint type

◆ GetAllExpressions()

std::vector< NXOpen::Expression * > NXOpen::Sketch::GetAllExpressions ( )

Returns all the expressions in the sketch

返回
All the expressions in the sketch
Created in NX3.0.0.

License requirements : None

◆ GetAllGeometry()

std::vector< NXOpen::NXObject * > NXOpen::Sketch::GetAllGeometry ( )

Returns all the curves and points in the sketch

返回
All the curves and points in the sketch
Created in NX3.0.0.

License requirements : None

◆ GetConstraintFromDimension()

NXOpen::SketchDimensionalConstraint * NXOpen::Sketch::GetConstraintFromDimension ( NXOpen::Annotations::Dimension * dimension)

Get the constraint associated with the input sketch dimension. The dimension must be owned by this sketch, which means that NXOpen::Sketch::IsSketchDimension returns true. To get the dimension from a constraint, use NXOpen::SketchDimensionalConstraint::AssociatedDimension

返回
The dimensional constraint
Created in NX2312.0.0.

License requirements : None
参数
dimensionSketch dimension

◆ GetConstraintsForGeometry()

std::vector< NXOpen::SketchConstraint * > NXOpen::Sketch::GetConstraintsForGeometry ( NXOpen::SmartObject * geometry,
NXOpen::Sketch::ConstraintClass conClass )

Gets all the constraints associated with a particular geometric item

返回
All the constraints associated with the geometry that is input
Created in NX3.0.0.

License requirements : None
参数
geometryMust be a curve or point
conClassOptional filter. Use NXOpen::Sketch::ConstraintClassAny if you do not want to filter by constraint class

◆ GetIgnoredRelationsOfGeometry()

std::vector< NXOpen::SketchRelation * > NXOpen::Sketch::GetIgnoredRelationsOfGeometry ( const NXOpen::Sketch::ConstraintGeometry & geometry)

方法返回几何上的忽略关系

返回
输入几何上的忽略关系
创建于 NX1899.0.0。

许可要求:无
参数
geometry几何

◆ GetParentOfIncludedGeometry()

NXOpen::NXObject * NXOpen::Sketch::GetParentOfIncludedGeometry ( NXOpen::SmartObject * geometry)

返回包含几何的父对象。

返回
父对象
创建于 NX2206.0.0。

许可要求:无
参数
geometry必须是包含几何

◆ GetReferenceDirection()

NXOpen::Vector3d NXOpen::Sketch::GetReferenceDirection ( NXOpen::IReferenceAxis ** referenceAxis,
NXOpen::AxisOrientation * referenceAxisOrientation,
NXOpen::Sense * referenceAxisSense )

Gets the reference direction of the sketch

返回

Created in NX3.0.0.

License requirements : None
参数
referenceAxisAn edge, datum axis, datum plane, or face that the sketch uses as a reference. May be NULL.
referenceAxisOrientationIndicates whether the reference axis is horizontal or vertical
referenceAxisSenseIf reference axis is an edge or datum axis, this parameter indicates whether the reference axis is in the same direction as the edge or datum axis or in the opposite direction. If reference axis is not an edge or datum axis, this parameter is not used.

◆ GetRemoteFindingCurves()

std::vector< NXOpen::SmartObject * > NXOpen::Sketch::GetRemoteFindingCurves ( )

返回草图中所有启用远程查找的曲线。

返回
所有启用远程查找的草图曲线
创建于 NX2212.0.0。

许可要求:无

◆ GetStatus()

NXOpen::Sketch::Status NXOpen::Sketch::GetStatus ( int * dofNeeded)

Gets the status of the sketch and the number of degrees of freedom that remain in the sketch. The status of the sketch indicates whether the sketch is fully constrained or under, over, or inconsistently constrained.

返回
The sketch's status, which indicates how well constrained the sketch is
Created in NX3.0.0.

License requirements : None
参数
dofNeededThe number of degrees of freedom left in the sketch

◆ GetVirtualPoints()

std::vector< NXOpen::SketchVirtualPoint * > NXOpen::Sketch::GetVirtualPoints ( )

返回草图中的所有虚拟点

返回
草图中的所有虚拟点
创建于 NX1899.0.0。

许可要求:无

◆ HideDimensions() [1/3]

void NXOpen::Sketch::HideDimensions ( )

隐藏输入草图的所有尺寸
创建于 NX6.0.1。

许可要求:solid_modeling ("SOLIDS MODELING") OR drafting ("DRAFTING") OR geometric_tol ("GDT")

◆ HideDimensions() [2/3]

void NXOpen::Sketch::HideDimensions ( const std::vector< NXOpen::DisplayableObject * > & inputObjects)

隐藏活动草图中与输入草图几何相关联的尺寸。
创建于 NX4.0.0。

许可要求:solid_modeling ("SOLIDS MODELING") OR drafting ("DRAFTING") OR geometric_tol ("GDT")

参数
inputObjects活动草图中的几何和组

◆ HideDimensions() [3/3]

void NXOpen::Sketch::HideDimensions ( const std::vector< NXOpen::Sketch::ConstraintGeometry > & objects)

隐藏活动草图中与输入草图几何相关联的尺寸。此函数可接受顶点
创建于 NX8.5.0。

许可要求:solid_modeling ("SOLIDS MODELING") 或 drafting ("DRAFTING") 或 geometric_tol ("GDT")

参数
objects活动草图中的几何和顶点

◆ HorizontalAxis()

NXOpen::InfiniteLine * NXOpen::Sketch::HorizontalAxis ( )

Returns the infinite horizontal axis of the sketch, if one exists. This axis is internal to the sketch and should not be edited or deleted.
Created in NX2306.3000.0.

License requirements : None

◆ IsActive()

bool NXOpen::Sketch::IsActive ( )

Returns true if the sketch is active
Created in NX3.0.0.

License requirements : None

◆ IsDraftingSketch()

bool NXOpen::Sketch::IsDraftingSketch ( )

如果是工程图草图则返回 true
创建于 NX6.0.0。

许可要求:无

◆ IsIncludedGeometry()

bool NXOpen::Sketch::IsIncludedGeometry ( NXOpen::SmartObject * geometry)

判断输入几何是否为包含的曲线或点,是则返回true。

返回
若几何是包含的曲线或点则返回true
创建于 NX2206.0.0。

许可要求:无
参数
geometry必须是曲线或点

◆ IsInternal()

bool NXOpen::Sketch::IsInternal ( )

返回草图是否为内部。
创建于 NX6.0.0。

许可要求:solid_modeling ("SOLIDS MODELING") 或 geometric_tol ("GDT")

◆ IsSketchConstraint()

bool NXOpen::Sketch::IsSketchConstraint ( NXOpen::SketchConstraint * constraint)

Determine if the input constraint is owned by the sketch. Returns true for the constraints returned by NXOpen::Sketch::GetAllConstraintsOfType .

返回
True if the constraint belongs to this sketch
Created in NX2312.0.0.

License requirements : None
参数
constraintCandidate constraint

◆ IsSketchDimension()

bool NXOpen::Sketch::IsSketchDimension ( NXOpen::Annotations::Dimension * dimension)

Determine if the input dimension is owned by the sketch. Returns true for a dimension whose associated constraint is returned by NXOpen::Sketch::GetAllConstraintsOfType .

返回
True if the dimension belongs to this sketch
Created in NX2312.0.0.

License requirements : None
参数
dimensionCandidate dimension

◆ IsSketchGeometry()

bool NXOpen::Sketch::IsSketchGeometry ( NXOpen::SmartObject * geometry)

Determine if the input curve or point is owned by the sketch. Returns true for the sketch origin, sketch axes, and the sketch geometry returned by NXOpen::Sketch::GetAllGeometry .

返回
True if the geometry belongs to the sketch
Created in NX1980.0.0.

License requirements : None
参数
geometryMust be a curve or point

◆ LocalUpdate()

void NXOpen::Sketch::LocalUpdate ( )

Update the sketch and not the sketch children. If a different sketch is active the SKETCH_NOT_INITIALIZED error will return. The function works even if the sketch is not active.
Created in NX3.0.0.

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

◆ MakeDatumsExternal2()

void NXOpen::Sketch::MakeDatumsExternal2 ( )

将内部草图放置面和方向参考基准设为外部。仅当内部基准不是基准 CSYS 或不是 PlaneAxisPoint 类型的基准 CSYS 时才调用此函数。
创建于 NX11.0.0。

许可要求:solid_modeling ("SOLIDS MODELING") 或 geometric_tol ("GDT")

◆ MakeRelationPersistent()

std::vector< NXOpen::SketchConstraint * > NXOpen::Sketch::MakeRelationPersistent ( const std::vector< NXOpen::NXObject * > & foundRelations)

将所有输入的 NXOpen::SketchFoundRelation 类型对象转换为 NXOpen::SketchConstraint 。 此过程中会终止任何活动操作。不支持圆角、槽和偏置关系。同时按任意顺序获取新的持久关系。
创建于 NX2406.0.0。

许可要求:实体建模("SOLIDS MODELING")或工程图("DRAFTING")或几何公差("GDT")

参数
foundRelations待转换的关系对象

◆ ManageConstraintsAfterEdit()

void NXOpen::Sketch::ManageConstraintsAfterEdit ( const std::vector< NXOpen::NXObject * > & sketchGeoms,
bool preserveComplexConstraints )

删除或调整几何编辑后不兼容的输入几何约束。在草图更新前调用
创建于 NX11.0.0。

许可要求:solid_modeling ("SOLIDS MODELING") 或 drafting ("DRAFTING") 或 geometric_tol ("GDT")

参数
sketchGeomssketchgeoms
preserveComplexConstraints复杂约束包括Pattern、Mirror和Offset

◆ MechanismMode()

bool NXOpen::Sketch::MechanismMode ( )

返回草图是否处于机构模式的标志
创建于 NX2206.0.0。

许可要求:无

◆ NX_DEPRECATED() [1/2]

NXOpen::Sketch::NX_DEPRECATED ( "Deprecated in NX11.0.0. None." )

如果草图放置面和方向参考基准仅被草图引用,则将其设为草图内部。

弃用
于 NX11.0.0 已弃用。无。

创建于 NX5.0.0。

许可要求:solid_modeling ("SOLIDS MODELING") 或 geometric_tol ("GDT")

◆ NX_DEPRECATED() [2/2]

NXOpen::Sketch::NX_DEPRECATED ( "Deprecated in NX11.0.0. Please use NXOpen::Sketch::MakeDatumsExternal2 instead." )

将内部草图放置面和方向参考基准设为外部。

弃用
于 NX11.0.0 已弃用。请使用 NXOpen::Sketch::MakeDatumsExternal2 替代。

创建于 NX5.0.0。

许可要求:solid_modeling ("SOLIDS MODELING") 或 geometric_tol ("GDT")

◆ Orientation()

NXOpen::NXMatrix * NXOpen::Sketch::Orientation ( )

Returns the orientation matrix of the local coordinate system of the sketch
Created in NX3.0.0.

License requirements : None

◆ Origin()

NXOpen::Point3d NXOpen::Sketch::Origin ( )

Returns the location of the origin of the local coordinate system for the sketch
Created in NX3.0.0.

License requirements : None

◆ OriginPoint()

NXOpen::Point * NXOpen::Sketch::OriginPoint ( )

Returns the origin point of the sketch, if one exists. This point is internal to the sketch and should not be edited or deleted.
Created in NX2306.3000.0.

License requirements : None

◆ Preferences()

NXOpen::Preferences::SketchPreferences * NXOpen::Sketch::Preferences ( )

包含草图的首选项设置
创建于 NX3.0.0。

◆ RemoveRedundantVertices()

void NXOpen::Sketch::RemoveRedundantVertices ( const std::vector< NXOpen::NXObject * > & geoms)

移除给定草图几何的冗余顶点
创建于 NX11.0.0。

许可要求:solid_modeling ("SOLIDS MODELING") 或 drafting ("DRAFTING") 或 geometric_tol ("GDT")

参数
geoms几何数组

◆ RenewDraftingSketch()

void NXOpen::Sketch::RenewDraftingSketch ( )

更新工程图草图至最新求解器版本。更新草图特征需使用 NXOpen::GeometricUtilities::RenewFeatureBuilder
创建于 NX2306.0.0。

许可要求:工程图("DRAFTING")

◆ RotateDragMode()

bool NXOpen::Sketch::RotateDragMode ( )

返回控制活动草图中旋转拖动模式的开关。
创建于 NX1899.0.0。

许可要求:无

◆ RunAutoDimension()

void NXOpen::Sketch::RunAutoDimension ( )

Run auto dimensioning.
Created in NX7.5.0.

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

◆ Scale()

void NXOpen::Sketch::Scale ( double scaleFactor)

按给定比例因子缩放草图实体。如果存在配方曲线、外部约束/尺寸或控制草图中一个或多个几何尺寸的约束/尺寸,则无法缩放草图。草图最多可包含一个非角度驱动尺寸,且该尺寸的表达式值必须按比例因子缩放。
创建于 NX11.0.0。

许可要求:solid_modeling ("SOLIDS MODELING") 或 drafting ("DRAFTING") 或 geometric_tol ("GDT")

参数
scaleFactor比例因子必须大于零

◆ SetCreateInferConstraintsSetting()

void NXOpen::Sketch::SetCreateInferConstraintsSetting ( NXOpen::Sketch::CreateInferConstraintSetting createInferCon)

Sets the toggle that controls the creation of infer constraints in sketch
Created in NX4.0.0.

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

参数
createInferConcreate infer con

◆ SetDOFDisplay()

void NXOpen::Sketch::SetDOFDisplay ( bool displayDof)

Sets a flag indicating whether the degree of freedom arrows are currently being displayed
Created in NX3.0.0.

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

参数
displayDofdisplay dof

◆ SetMechanismMode()

void NXOpen::Sketch::SetMechanismMode ( bool isMechanismMode)

设置草图是否处于机构模式,true为是,false为否
创建于 NX2206.0.0。

许可要求:实体建模("SOLIDS MODELING")

参数
isMechanismMode机构模式状态:true表示草图处于机构模式。

◆ SetReferenceDirection()

void NXOpen::Sketch::SetReferenceDirection ( NXOpen::IReferenceAxis * referenceAxis,
const NXOpen::Vector3d & referenceDirection,
NXOpen::AxisOrientation referenceAxisOrientation,
NXOpen::Sense referenceAxisSense )

Sets the reference direction of the sketch.
Created in NX3.0.0.

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

参数
referenceAxisCan be a datum axis, edge, datum plane, face, or NULL. If it is an edge, the edge must be a line segment. If it is a face, the face must be a plane. If NULL, the reference_direction is used instead.
referenceDirectionIf reference_axis is NULL, this parameter sets the reference direction of the sketch. In this case, this parameter must not be (0,0,0). If reference_axis is not NULL and this parameter is not (0,0,0), this parameter determines whether the reference direction should be in the same direction as reference_axis or in the opposite direction. If this parameter is (0,0,0), this parameter is not used.
referenceAxisOrientationIndicates whether the reference axis is horizontal or vertical.
referenceAxisSenseIgnored unless reference_direction is (0,0,0) and reference_axis is an edge or datum axis. This parameter indicates whether the reference axis should be in the same direction as reference_axis or in the opposite direction.

◆ SetRotateDragMode()

void NXOpen::Sketch::SetRotateDragMode ( bool rotateDrag)

设置控制活动草图中旋转拖动模式的开关。
创建于 NX1899.0.0。

许可要求:solid_modeling ("SOLIDS MODELING") 或 drafting ("DRAFTING") 或 geometric_tol ("GDT")

参数
rotateDragrotatedrag

◆ SetRotationOrigin()

void NXOpen::Sketch::SetRotationOrigin ( const NXOpen::Point3d & center)

设置旋转原点
创建于 NX1899.0.0。

许可要求:solid_modeling ("SOLIDS MODELING") 或 drafting ("DRAFTING") 或 geometric_tol ("GDT")

参数
centercenter

◆ SetTextHeight()

void NXOpen::Sketch::SetTextHeight ( double textHeight)

设置给定草图中所有尺寸的文字高度。 如果零件类型为公制,则文字高度单位为毫米。 如果零件类型为英制,则文字高度单位为英寸。 注意:只有当 NXOpen::Preferences::SketchPreferences::SetTextSizeMode 设置为可变模式时,才能更改高度。
创建于 NX1899.0.0。

许可要求:solid_modeling ("SOLIDS MODELING") 或 drafting ("DRAFTING") 或 geometric_tol ("GDT")

参数
textHeight文字高度必须大于零

◆ SetUpdateScope()

void NXOpen::Sketch::SetUpdateScope ( NXOpen::Sketch::UpdateLevel updateScope)

设置当前更新范围。用于直接草图中控制更新
创建于 NX8.0.0。

许可要求:solid_modeling ("SOLIDS MODELING") 或 drafting ("DRAFTING") 或 geometric_tol ("GDT")

参数
updateScope更新范围

◆ SetUpgradeUponActivation()

void NXOpen::Sketch::SetUpgradeUponActivation ( bool upgrade)

设置导致草图在激活时升级的标志
创建于 NX1926.0.0。

许可要求:solid_modeling ("SOLIDS MODELING") 或 drafting ("DRAFTING") 或 geometric_tol ("GDT")

参数
upgrade当为true时,草图激活时将升级。

◆ ShowDimensions() [1/3]

void NXOpen::Sketch::ShowDimensions ( )

取消隐藏输入草图的所有尺寸
创建于 NX6.0.1。

许可要求:solid_modeling ("SOLIDS MODELING") OR drafting ("DRAFTING") OR geometric_tol ("GDT")

◆ ShowDimensions() [2/3]

void NXOpen::Sketch::ShowDimensions ( const std::vector< NXOpen::DisplayableObject * > & inputObjects)

取消隐藏活动草图中与输入草图几何相关联的尺寸
创建于 NX4.0.0。

许可要求:solid_modeling ("SOLIDS MODELING") OR drafting ("DRAFTING") OR geometric_tol ("GDT")

参数
inputObjects活动草图中的几何和组

◆ ShowDimensions() [3/3]

void NXOpen::Sketch::ShowDimensions ( const std::vector< NXOpen::Sketch::ConstraintGeometry > & objects)

取消隐藏活动草图中与输入草图几何相关联的尺寸。此函数可以接受顶点。
创建于 NX8.5.0。

许可要求:solid_modeling ("SOLIDS MODELING") OR drafting ("DRAFTING") OR geometric_tol ("GDT")

参数
objects活动草图中的几何和顶点

◆ Update() [1/2]

void NXOpen::Sketch::Update ( )

Updates the sketch
Created in NX3.0.0.

License requirements : solid_modeling ("SOLIDS MODELING") OR drafting ("DRAFTING") OR geometric_tol ("GDT") OR nx_freeform_1 ("basic freeform modeling")

◆ Update() [2/2]

void NXOpen::Sketch::Update ( const std::vector< NXOpen::NXObject * > & geoms)

Updates the given set of geometries in the sketch
Created in NX4.0.0.

License requirements : solid_modeling ("SOLIDS MODELING") OR drafting ("DRAFTING") OR geometric_tol ("GDT") OR nx_freeform_1 ("basic freeform modeling")

参数
geomsGeoms that need to be updated

◆ UpdateConstraintDisplay() [1/2]

void NXOpen::Sketch::UpdateConstraintDisplay ( )

Updates the constraint display without updating the sketch
Created in NX3.0.0.

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

◆ UpdateConstraintDisplay() [2/2]

void NXOpen::Sketch::UpdateConstraintDisplay ( const std::vector< NXOpen::SmartObject * > & geoms)

Updates the constraint display of given set of geoms without updating the sketch
Created in NX4.0.0.

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

参数
geomsGeoms for which cons must be re-displayed

◆ UpdateDimensionDisplay() [1/3]

void NXOpen::Sketch::UpdateDimensionDisplay ( )

Updates the dimension display without updating the sketch
Created in NX4.0.0.

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

◆ UpdateDimensionDisplay() [2/3]

void NXOpen::Sketch::UpdateDimensionDisplay ( const std::vector< NXOpen::NXObject * > & dims)

Updates the dimension display of given set of dims without updating the sketch
Created in NX4.0.0.

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

参数
dimsDims for which cons must be re-displayed

◆ UpdateDimensionDisplay() [3/3]

void NXOpen::Sketch::UpdateDimensionDisplay ( const std::vector< NXOpen::SmartObject * > & geoms)

Updates the dimension display of given set of geoms without updating the sketch
Created in NX4.0.0.

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

参数
geomsGeoms for which cons must be re-displayed

◆ UpdateGeometryDisplay() [1/2]

void NXOpen::Sketch::UpdateGeometryDisplay ( )

Updates the geometry display without updating the sketch
Created in NX4.0.0.

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

◆ UpdateGeometryDisplay() [2/2]

void NXOpen::Sketch::UpdateGeometryDisplay ( const std::vector< NXOpen::SmartObject * > & geoms)

Updates the geometry display of given set of geoms without updating the sketch
Created in NX4.0.0.

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

参数
geomsGeoms for which cons must be re-displayed

◆ UpdateNavigator()

void NXOpen::Sketch::UpdateNavigator ( )

更新草图导航器。若输入草图不是活动草图,将返回 SKETCH_NOT_INITIALIZED 错误。
创建于 NX2406.0.0。

许可要求:实体建模("SOLIDS MODELING")或工程图("DRAFTING")或几何公差("GDT")

◆ UpdateScope()

NXOpen::Sketch::UpdateLevel NXOpen::Sketch::UpdateScope ( )

返回当前更新范围。用于直接草图中控制更新
创建于 NX8.0.0。

许可要求:无

◆ UpgradeUponActivation()

bool NXOpen::Sketch::UpgradeUponActivation ( )

返回导致草图在激活时升级的标志
创建于 NX1926.0.0。

许可要求:无

◆ UsesLegacySolver()

bool NXOpen::Sketch::UsesLegacySolver ( )

返回草图是否使用旧版求解器或无求解器的标志。
创建于 NX1980.0.0。

许可要求:无

◆ VerticalAxis()

NXOpen::InfiniteLine * NXOpen::Sketch::VerticalAxis ( )

Returns the infinite vertical axis of the sketch, if one exists. This axis is internal to the sketch and should not be edited or deleted.
Created in NX2306.3000.0.

License requirements : None

◆ View()

NXOpen::View * NXOpen::Sketch::View ( )

返回与草图对应的视图
创建于 NX6.0.0。

许可要求:无