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

尺寸基类 更多...

#include <Annotations_Dimension.hxx>

类 NXOpen::Annotations::Dimension 继承关系图:
NXOpen::Annotations::Annotation NXOpen::Annotations::IAppendedText NXOpen::DisplayableObject NXOpen::INXObject NXOpen::NXObject NXOpen::IFitTo NXOpen::TaggedObject NXOpen::INXObject NXOpen::INXObject NXOpen::Annotations::BaseAngularDimension NXOpen::Annotations::BaseArcLengthDimension NXOpen::Annotations::BaseChamferDimension NXOpen::Annotations::BaseConcentricCircleDimension NXOpen::Annotations::BaseCylindricalDimension NXOpen::Annotations::BaseDiameterDimension NXOpen::Annotations::BaseFoldedRadiusDimension NXOpen::Annotations::BaseHoleDimension NXOpen::Annotations::BaseHorizontalDimension NXOpen::Annotations::BaseParallelDimension NXOpen::Annotations::BasePerpendicularDimension NXOpen::Annotations::BaseRadiusDimension NXOpen::Annotations::BaseVerticalDimension NXOpen::Annotations::OrdinateDimension NXOpen::Annotations::OrdinateOriginDimension

Public 类型

enum  MeasurementTypes { MeasurementTypesGeneral , MeasurementTypesDirected , MeasurementTypesFeatureOfSize }
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 成员函数

double ComputedSize ()
virtual NXOpen::Annotations::AppendedTextGetAppendedText ()
NXOpen::Annotations::DimensionPreferencesGetDimensionPreferences ()
void GetDimensionText (std::vector< NXString > &mainTextLines, std::vector< NXString > &dualTextLines)
NXOpen::Annotations::AssociativityGetFirstAssociativity ()
NXOpen::Annotations::Dimension::MeasurementTypes GetMeasurementType ()
NXOpen::Annotations::NarrowDimensionData GetNarrowDimensionPreferences ()
double GetNarrowDimensionTextOffset ()
NXOpen::Annotations::AssociativityGetSecondAssociativity ()
bool InspectionDimensionFlag ()
bool IsApproximate ()
bool IsDriving ()
bool IsOriginCentered ()
NXOpen::Annotations::FitAnsiHoleType LimitFitAnsiHoleType ()
NXString LimitFitDeviation ()
NXOpen::Annotations::FitDisplayStyle LimitFitDisplayStyle ()
NXOpen::Annotations::FitAnsiHoleType LimitFitEnhancedDisplayType ()
int LimitFitGrade ()
NXString LimitFitShaftDeviation ()
int LimitFitShaftGrade ()
double LowerMetricToleranceValue ()
double LowerToleranceValue ()
NXOpen::DirectionMeasurementDirection ()
NXOpen::ViewMeasurementDirectionView ()
int MetricNominalDecimalPlaces ()
int MetricToleranceDecimalPlaces ()
int NominalDecimalPlaces ()
 NX_DEPRECATED ("Deprecated in NX8.0.0. Use NXOpen::Annotations::Dimension::SetDimensionText instead.") void SetComputedSize(double computedSize)
bool ReferenceDimensionFlag ()
virtual void SetAppendedText (NXOpen::Annotations::AppendedText *appendedText)
void SetDimensionPreferences (NXOpen::Annotations::DimensionPreferences *preferences)
void SetDimensionText (std::vector< NXString > &mainTextLines)
void SetFirstAssociativity (NXOpen::Annotations::Associativity *newAssociativity)
void SetInspectionDimensionFlag (bool inspectionDimensionFlag)
void SetLimitFitAnsiHoleType (NXOpen::Annotations::FitAnsiHoleType fitHoleType)
void SetLimitFitDeviation (const char *fitDeviation)
void SetLimitFitDeviation (const NXString &fitDeviation)
void SetLimitFitDisplayStyle (NXOpen::Annotations::FitDisplayStyle fitDisplayStyle)
void SetLimitFitEnhancedDisplayType (NXOpen::Annotations::FitAnsiHoleType fitEnhancedDisplayType)
void SetLimitFitGrade (int fitGrade)
void SetLimitFitShaftDeviation (const char *fitShaftDeviation)
void SetLimitFitShaftDeviation (const NXString &fitShaftDeviation)
void SetLimitFitShaftGrade (int fitShaftGrade)
void SetLowerMetricToleranceValue (double toleranceValue)
void SetLowerToleranceValue (double upperToleranceValue)
void SetMeasurementDirection (NXOpen::Direction *direction)
void SetMeasurementDirectionView (NXOpen::View *view)
void SetMetricNominalDecimalPlaces (int decimalPlaces)
void SetMetricToleranceDecimalPlaces (int decimalPlaces)
void SetNarrowDimensionPreferences (const NXOpen::Annotations::NarrowDimensionData &narrowDimensionData)
void SetNarrowDimensionTextOffset (double narrowTextOffset)
void SetNominalDecimalPlaces (int decimalPlaces)
void SetOriginCentered (bool isOriginCentered)
void SetReferenceDimensionFlag (bool referenceDimensionFlag)
void SetSecondAssociativity (NXOpen::Annotations::Associativity *newAssociativity)
void SetToleranceDecimalPlaces (int decimalPlaces)
void SetToleranceType (NXOpen::Annotations::ToleranceType toleranceType)
void SetUpperMetricToleranceValue (double toleranceValue)
void SetUpperToleranceValue (double upperToleranceValue)
double ShaftLowerToleranceValue ()
double ShaftUpperToleranceValue ()
int ToleranceDecimalPlaces ()
NXOpen::Annotations::ToleranceType ToleranceType ()
void UnretainForInconsistentSilhouette (int index)
double UpperMetricToleranceValue ()
double UpperToleranceValue ()
Public 成员函数 继承自 NXOpen::Annotations::Annotation
NXOpen::Point3d AnnotationOrigin ()
NXOpen::XformAnnotationPlane ()
bool Freeze ()
NXOpen::Annotations::Annotation::AssociativeOriginData GetAssociativeOrigin (NXOpen::Point3d *origin)
NXOpen::Annotations::AssociativityGetAssociativity (int associativityIndex)
NXOpen::XformGetInferredAnnotationPlane (NXOpen::Annotations::PmiDefaultPlane jaDefaultPlane)
NXOpen::Annotations::LetteringPreferencesGetLetteringPreferences ()
NXOpen::Annotations::LineAndArrowPreferencesGetLineAndArrowPreferences ()
NXOpen::Annotations::SymbolPreferencesGetSymbolPreferences ()
std::vector< NXOpen::View * > GetViews ()
bool HasAssociativeOrigin ()
void InsertIntoStack (NXOpen::Annotations::Annotation *stack, NXOpen::Annotations::StackAlignmentPosition position)
bool IsOutOfDate ()
bool IsRetained ()
NXOpen::Annotations::LeaderOrientation LeaderOrientation ()
int NumberOfAssociativities ()
bool ParallelToScreen ()
void RemoveFromStack ()
void SetAnnotationOrigin (const NXOpen::Point3d &origin)
void SetAnnotationPlane (NXOpen::Xform *annotationPlane)
void SetAssociativeOrigin (const NXOpen::Annotations::Annotation::AssociativeOriginData &assocOrigin, const NXOpen::Point3d &origin)
void SetAssociativity (int associativityIndex, NXOpen::Annotations::Associativity *associativity)
void SetFreeze (bool freeze)
void SetLeaderOrientation (NXOpen::Annotations::LeaderOrientation leaderOrientation)
void SetLetteringPreferences (NXOpen::Annotations::LetteringPreferences *letteringPrefs)
void SetLineAndArrowPreferences (NXOpen::Annotations::LineAndArrowPreferences *lineArrowPrefs)
void SetParallelToScreen (bool parallelToScreen)
void SetSymbolPreferences (NXOpen::Annotations::SymbolPreferences *symbolPrefs)
void SetViews (const std::vector< NXOpen::View * > &modelViews)
bool Suppressed ()
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 _DimensionBuilder

额外继承的成员函数

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

详细描述

尺寸基类

表示一个尺寸
抽象类

创建于 NX3.0.0.

成员枚举类型说明

◆ MeasurementTypes

指定尺寸测量类型

枚举值
MeasurementTypesGeneral 

常规

MeasurementTypesDirected 

定向

MeasurementTypesFeatureOfSize 

特征尺寸

成员函数说明

◆ ComputedSize()

double NXOpen::Annotations::Dimension::ComputedSize ( )

返回尺寸的计算大小。
创建于NX5.0.0。

许可要求:无

◆ GetAppendedText()

virtual NXOpen::Annotations::AppendedText * NXOpen::Annotations::Dimension::GetAppendedText ( )
virtual

返回附加文本

返回
附加文本
创建于NX4.0.0。

许可要求:无

实现了 NXOpen::Annotations::IAppendedText.

◆ GetDimensionPreferences()

NXOpen::Annotations::DimensionPreferences * NXOpen::Annotations::Dimension::GetDimensionPreferences ( )

获取尺寸首选项

返回
尺寸首选项
创建于 NX4.0.0.

许可要求:无

◆ GetDimensionText()

void NXOpen::Annotations::Dimension::GetDimensionText ( std::vector< NXString > & mainTextLines,
std::vector< NXString > & dualTextLines )

返回尺寸文本 - 包括主文本和双文本。返回的文本可能仅包含计算的尺寸值,或包含控制字符的手动文本。
注意,该文本不包含公差文本、附加文本或标志(如检验/参考)的文本。

创建于NX6.0.0。

许可要求:无

参数
mainTextLines主文本行列表
dualTextLines双文本行列表

◆ GetFirstAssociativity()

NXOpen::Annotations::Associativity * NXOpen::Annotations::Dimension::GetFirstAssociativity ( )

返回第一个关联性数据。

返回

创建于NX5.0.0。

许可要求:无

◆ GetMeasurementType()

NXOpen::Annotations::Dimension::MeasurementTypes NXOpen::Annotations::Dimension::GetMeasurementType ( )

返回尺寸测量类型。

返回
尺寸测量类型。
创建于NX10.0.0。

许可要求:无

◆ GetNarrowDimensionPreferences()

NXOpen::Annotations::NarrowDimensionData NXOpen::Annotations::Dimension::GetNarrowDimensionPreferences ( )

返回给定线性尺寸的窄尺寸首选项。

返回
窄尺寸首选项
创建于NX5.0.0。

许可要求:无

◆ GetNarrowDimensionTextOffset()

double NXOpen::Annotations::Dimension::GetNarrowDimensionTextOffset ( )

返回给定链式尺寸的窄尺寸文本偏移量。

返回

创建于NX5.0.0。

许可要求:无

◆ GetSecondAssociativity()

NXOpen::Annotations::Associativity * NXOpen::Annotations::Dimension::GetSecondAssociativity ( )

返回第二个关联性数据。

返回

创建于NX5.0.0。

许可要求:无

◆ InspectionDimensionFlag()

bool NXOpen::Annotations::Dimension::InspectionDimensionFlag ( )

返回用于控制尺寸值周围显示的检验框的设置。 注意:不应使用set方法编辑只读对象(如镜像PMI对象)。 否则,在部件更新时,更改将被覆盖。
创建于NX5.0.0。

许可要求:无

◆ IsApproximate()

bool NXOpen::Annotations::Dimension::IsApproximate ( )

返回给定尺寸是否为近似尺寸。如果尺寸附着到没有精确数据的轻量化视图几何体上,则该尺寸为近似尺寸。

返回
TRUE,如果尺寸是近似的。 FALSE,如果尺寸不是近似的。
创建于NX9.0.0。

许可要求:无

◆ IsDriving()

bool NXOpen::Annotations::Dimension::IsDriving ( )

判断尺寸是否为驱动尺寸。驱动尺寸是用于约束制图中草图创建的几何体的尺寸。驱动尺寸也称为草图尺寸。

返回

创建于NX6.0.0。

许可要求:无

◆ IsOriginCentered()

bool NXOpen::Annotations::Dimension::IsOriginCentered ( )

返回一个标志,指示尺寸文本是否在尺寸界线之间居中。 注意:不应使用此设置方法来编辑只读对象(如镜像PMI对象)。 否则,在部件更新时,更改将被覆盖。
创建于NX5.0.0。

许可要求:无

◆ LimitFitAnsiHoleType()

NXOpen::Annotations::FitAnsiHoleType NXOpen::Annotations::Dimension::LimitFitAnsiHoleType ( )

返回公差极限配合ANSI孔类型。 注意:不应使用set方法编辑只读对象(如镜像PMI对象)。 否则,在部件更新时,更改将被覆盖。
创建于NX7.5.0。

许可要求:无

◆ LimitFitDeviation()

NXString NXOpen::Annotations::Dimension::LimitFitDeviation ( )

返回公差极限配合偏差。 注意:不可使用set方法编辑只读对象(如镜像PMI对象)。 否则,部件更新时将覆盖更改。
创建于NX7.5.0。

许可要求:无

◆ LimitFitDisplayStyle()

NXOpen::Annotations::FitDisplayStyle NXOpen::Annotations::Dimension::LimitFitDisplayStyle ( )

返回公差极限配合显示样式。 注意:不应使用set方法编辑只读对象(如镜像PMI对象)。 否则,在部件更新时,更改将被覆盖。
创建于NX7.5.0。

许可要求:无

◆ LimitFitEnhancedDisplayType()

NXOpen::Annotations::FitAnsiHoleType NXOpen::Annotations::Dimension::LimitFitEnhancedDisplayType ( )

返回增强的极限配合显示类型。用于确定公差表示形式是针对孔、轴还是配合公差(配合表示同时显示孔和轴公差)。 注意:不可使用设置方法编辑只读对象(如镜像PMI对象)。 否则,部件更新时将覆盖更改。
创建于NX9.0.0。

许可要求:无

◆ LimitFitGrade()

int NXOpen::Annotations::Dimension::LimitFitGrade ( )

返回公差极限配合等级。 注意:不可使用设置方法编辑只读对象(如镜像PMI对象)。 否则,部件更新时将覆盖更改。
创建于NX7.5.0。

许可要求:无

◆ LimitFitShaftDeviation()

NXString NXOpen::Annotations::Dimension::LimitFitShaftDeviation ( )

返回轴公差极限配合表示形式的偏差 注意:不可使用设置方法编辑只读对象(如镜像PMI对象)。 否则,部件更新时将覆盖更改。
创建于NX9.0.0。

许可要求:无

◆ LimitFitShaftGrade()

int NXOpen::Annotations::Dimension::LimitFitShaftGrade ( )

返回轴公差极限配合表示形式的等级 注意:不可使用设置方法编辑只读对象(如镜像PMI对象)。 否则,部件更新时将覆盖更改。
创建于NX9.0.0。

许可要求:无

◆ LowerMetricToleranceValue()

double NXOpen::Annotations::Dimension::LowerMetricToleranceValue ( )

获取控制尺寸公制下公差值的设置。 如果尺寸以等边双边公差类型显示,则下公差值将被忽略,此方法将返回默认公差值。 如果尺寸以单边正公差类型显示,则下公差值将被忽略,此方法将返回默认公差值。 注意:不应使用set方法编辑只读对象(如镜像PMI对象)。 否则,在部件更新时,更改将被覆盖。
创建于 NX5.0.0。

许可要求:无

◆ LowerToleranceValue()

double NXOpen::Annotations::Dimension::LowerToleranceValue ( )

获取控制尺寸下公差值的设置。 如果尺寸以等边双边公差类型显示,则下公差值将被忽略,此方法将返回默认公差值。 如果尺寸以单边正公差类型显示,则下公差值将被忽略,此方法将返回默认公差值。 注意:不应使用set方法编辑只读对象(如镜像PMI对象)。 否则,在部件更新时,更改将被覆盖。
创建于 NX5.0.0。

许可要求:无

◆ MeasurementDirection()

NXOpen::Direction * NXOpen::Annotations::Dimension::MeasurementDirection ( )

返回测量方向。 注意:不可使用set方法编辑只读对象(如镜像PMI对象)。 否则,部件更新时将覆盖更改。
创建于NX7.5.0。

许可要求:无

◆ MeasurementDirectionView()

NXOpen::View * NXOpen::Annotations::Dimension::MeasurementDirectionView ( )

返回测量方向视图。 注意:不可使用此方法编辑只读对象(如镜像PMI对象)。 否则,部件更新时将覆盖更改。
创建于NX7.5.0。

许可要求:无

◆ MetricNominalDecimalPlaces()

int NXOpen::Annotations::Dimension::MetricNominalDecimalPlaces ( )

返回控制公制尺寸公称值小数位数的设置。 注意:不可使用set方法编辑只读对象(如镜像PMI对象)。 否则,部件更新时将覆盖更改。
创建于NX5.0.0。

许可要求:无

◆ MetricToleranceDecimalPlaces()

int NXOpen::Annotations::Dimension::MetricToleranceDecimalPlaces ( )

返回用于控制尺寸公制公差值小数位数的设置。 注意:不应使用set方法编辑只读对象(如镜像PMI对象)。 否则,在部件更新时,更改将被覆盖。
创建于NX5.0.0。

许可要求:无

◆ NominalDecimalPlaces()

int NXOpen::Annotations::Dimension::NominalDecimalPlaces ( )

返回控制尺寸公称值小数位数的设置。 注意:不可使用set方法编辑只读对象(如镜像PMI对象)。 否则,部件更新时将覆盖更改。
创建于NX5.0.0。

许可要求:无

◆ NX_DEPRECATED()

NXOpen::Annotations::Dimension::NX_DEPRECATED ( "Deprecated in NX8.0.0. Use NXOpen::Annotations::Dimension::SetDimensionText instead." )
弃用
在NX8.0.0中弃用。请改用NXOpen::Annotations::Dimension::SetDimensionText

创建于NX5.0.0。

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

计算大小

◆ ReferenceDimensionFlag()

bool NXOpen::Annotations::Dimension::ReferenceDimensionFlag ( )

返回用于控制尺寸参考括号可见性的设置。 注意:不应使用set方法编辑只读对象(如镜像PMI对象)。 否则,在部件更新时,更改将被覆盖。
创建于NX5.0.0。

许可要求:无

◆ SetAppendedText()

virtual void NXOpen::Annotations::Dimension::SetAppendedText ( NXOpen::Annotations::AppendedText * appendedText)
virtual

设置附加文本
创建于NX4.0.0。

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

参数
appendedText附加文本

实现了 NXOpen::Annotations::IAppendedText.

◆ SetDimensionPreferences()

void NXOpen::Annotations::Dimension::SetDimensionPreferences ( NXOpen::Annotations::DimensionPreferences * preferences)

设置尺寸首选项
创建于 NX4.0.0.

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

参数
preferences新的尺寸首选项

◆ SetDimensionText()

void NXOpen::Annotations::Dimension::SetDimensionText ( std::vector< NXString > & mainTextLines)

设置主尺寸文本。 如果尺寸是手动非数值文本尺寸且具有双尺寸,则双尺寸文本也将设置为与主文本相同的文本。
创建于NX7.5.0。

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

参数
mainTextLines主文本行列表

◆ SetFirstAssociativity()

void NXOpen::Annotations::Dimension::SetFirstAssociativity ( NXOpen::Annotations::Associativity * newAssociativity)

设置第一个关联性数据。
创建于NX5.0.0。

许可要求:无

参数
newAssociativity新的关联性

◆ SetInspectionDimensionFlag()

void NXOpen::Annotations::Dimension::SetInspectionDimensionFlag ( bool inspectionDimensionFlag)

设置用于控制尺寸值周围显示的检验框的设置。 注意:不应使用set方法编辑只读对象(如镜像PMI对象)。 否则,在部件更新时,更改将被覆盖。
创建于NX5.0.0。

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

参数
inspectionDimensionFlag检验尺寸标志

◆ SetLimitFitAnsiHoleType()

void NXOpen::Annotations::Dimension::SetLimitFitAnsiHoleType ( NXOpen::Annotations::FitAnsiHoleType fitHoleType)

设置公差极限配合ANSI孔类型。 注意:不应使用set方法编辑只读对象(如镜像PMI对象)。 否则,在部件更新时,更改将被覆盖。
创建于NX7.5.0。

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

参数
fitHoleType新的极限配合ANSI孔类型

◆ SetLimitFitDeviation() [1/2]

void NXOpen::Annotations::Dimension::SetLimitFitDeviation ( const char * fitDeviation)

设置公差极限配合偏差。 注意:不可使用设置方法编辑只读对象(如镜像PMI对象)。 否则,部件更新时将覆盖更改。
创建于NX7.5.0。

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

参数
fitDeviation新的极限配合偏差

◆ SetLimitFitDeviation() [2/2]

void NXOpen::Annotations::Dimension::SetLimitFitDeviation ( const NXString & fitDeviation)

设置公差极限配合偏差。 注意:不可使用设置方法编辑只读对象(如镜像PMI对象)。 否则,部件更新时将覆盖更改。
创建于NX7.5.0。

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

参数
fitDeviation新的极限配合偏差

◆ SetLimitFitDisplayStyle()

void NXOpen::Annotations::Dimension::SetLimitFitDisplayStyle ( NXOpen::Annotations::FitDisplayStyle fitDisplayStyle)

设置公差极限配合显示样式。 注意:不应使用set方法编辑只读对象(如镜像PMI对象)。 否则,在部件更新时,更改将被覆盖。
创建于NX7.5.0。

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

参数
fitDisplayStyle新的极限配合公差显示样式

◆ SetLimitFitEnhancedDisplayType()

void NXOpen::Annotations::Dimension::SetLimitFitEnhancedDisplayType ( NXOpen::Annotations::FitAnsiHoleType fitEnhancedDisplayType)

设置增强的极限配合显示类型。用于确定公差表示形式是针对孔、轴还是配合公差(配合表示同时显示孔和轴公差)。 注意:不可使用设置方法编辑只读对象(如镜像PMI对象)。 否则,部件更新时将覆盖更改。
创建于NX9.0.0。

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

参数
fitEnhancedDisplayType新的极限配合增强公差显示样式

◆ SetLimitFitGrade()

void NXOpen::Annotations::Dimension::SetLimitFitGrade ( int fitGrade)

设置公差极限配合等级。 注意:不可使用设置方法编辑只读对象(如镜像PMI对象)。 否则,部件更新时将覆盖更改。
创建于NX7.5.0。

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

参数
fitGrade新的极限配合等级

◆ SetLimitFitShaftDeviation() [1/2]

void NXOpen::Annotations::Dimension::SetLimitFitShaftDeviation ( const char * fitShaftDeviation)

设置轴公差极限配合表示形式的偏差 注意:不可使用设置方法编辑只读对象(如镜像PMI对象)。 否则,部件更新时将覆盖更改。
创建于NX9.0.0。

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

参数
fitShaftDeviation新的极限配合轴偏差

◆ SetLimitFitShaftDeviation() [2/2]

void NXOpen::Annotations::Dimension::SetLimitFitShaftDeviation ( const NXString & fitShaftDeviation)

设置轴公差极限配合表示形式的偏差 注意:不可使用设置方法编辑只读对象(如镜像PMI对象)。 否则,部件更新时将覆盖更改。
创建于NX9.0.0。

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

参数
fitShaftDeviation新的极限配合轴偏差

◆ SetLimitFitShaftGrade()

void NXOpen::Annotations::Dimension::SetLimitFitShaftGrade ( int fitShaftGrade)

设置轴公差极限配合表示形式的等级 注意:不可使用设置方法编辑只读对象(如镜像PMI对象)。 否则,部件更新时将覆盖更改。
创建于NX9.0.0。

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

参数
fitShaftGrade新的极限配合轴等级

◆ SetLowerMetricToleranceValue()

void NXOpen::Annotations::Dimension::SetLowerMetricToleranceValue ( double toleranceValue)

设置控制尺寸公制下公差值的设置。 如果尺寸以等边双边公差类型显示,则下公差值将被忽略,此方法将返回默认公差值。 如果尺寸以单边正公差类型显示,则下公差值将被忽略,此方法将返回默认公差值。 注意:不应使用set方法编辑只读对象(如镜像PMI对象)。 否则,在部件更新时,更改将被覆盖。
创建于 NX5.0.0。

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

参数
toleranceValue公差值

◆ SetLowerToleranceValue()

void NXOpen::Annotations::Dimension::SetLowerToleranceValue ( double upperToleranceValue)

设置控制尺寸下公差值的设置。 如果尺寸以等边双边公差类型显示,则下公差值将被忽略,此方法将返回默认公差值。 如果尺寸以单边正公差类型显示,则下公差值将被忽略,此方法将返回默认公差值。 注意:不应使用set方法编辑只读对象(如镜像PMI对象)。 否则,在部件更新时,更改将被覆盖。
创建于 NX5.0.0。

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

参数
upperToleranceValue上公差值

◆ SetMeasurementDirection()

void NXOpen::Annotations::Dimension::SetMeasurementDirection ( NXOpen::Direction * direction)

设置测量方向。 注意:不可使用set方法编辑只读对象(如镜像PMI对象)。 否则,部件更新时将覆盖更改。
创建于NX7.5.0。

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

参数
direction方向对象

◆ SetMeasurementDirectionView()

void NXOpen::Annotations::Dimension::SetMeasurementDirectionView ( NXOpen::View * view)

设置测量方向视图。 注意:不可使用此方法编辑只读对象(如镜像PMI对象)。 否则,部件更新时将覆盖更改。
创建于NX7.5.0。

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

参数
view视图对象

◆ SetMetricNominalDecimalPlaces()

void NXOpen::Annotations::Dimension::SetMetricNominalDecimalPlaces ( int decimalPlaces)

设置控制公制尺寸公称值小数位数的设置。 注意:不可使用set方法编辑只读对象(如镜像PMI对象)。 否则,部件更新时将覆盖更改。
创建于NX5.0.0。

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

参数
decimalPlaces小数位数

◆ SetMetricToleranceDecimalPlaces()

void NXOpen::Annotations::Dimension::SetMetricToleranceDecimalPlaces ( int decimalPlaces)

设置用于控制尺寸公制公差值小数位数的设置。 注意:不应使用set方法编辑只读对象(如镜像PMI对象)。 否则,在部件更新时,更改将被覆盖。
创建于NX5.0.0。

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

参数
decimalPlaces小数位数

◆ SetNarrowDimensionPreferences()

void NXOpen::Annotations::Dimension::SetNarrowDimensionPreferences ( const NXOpen::Annotations::NarrowDimensionData & narrowDimensionData)

将窄尺寸首选项设置到给定的线性尺寸。
创建于NX5.0.0。

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

参数
narrowDimensionData新的窄尺寸首选项

◆ SetNarrowDimensionTextOffset()

void NXOpen::Annotations::Dimension::SetNarrowDimensionTextOffset ( double narrowTextOffset)

为给定的链式尺寸设置窄尺寸文本偏移量。
创建于NX5.0.0。

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

参数
narrowTextOffset窄文本偏移量

◆ SetNominalDecimalPlaces()

void NXOpen::Annotations::Dimension::SetNominalDecimalPlaces ( int decimalPlaces)

设置控制尺寸公称值小数位数的设置。 注意:不应使用set方法编辑只读对象(如镜像PMI对象)。 否则,在部件更新时,更改将被覆盖。
创建于 NX5.0.0。

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

参数
decimalPlaces小数位数

◆ SetOriginCentered()

void NXOpen::Annotations::Dimension::SetOriginCentered ( bool isOriginCentered)

设置一个标志,指示尺寸文本是否在尺寸界线之间居中。 注意:不应使用此设置方法来编辑只读对象(如镜像PMI对象)。 否则,在部件更新时,更改将被覆盖。
创建于NX5.0.0。

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

参数
isOriginCentered是否原点居中

◆ SetReferenceDimensionFlag()

void NXOpen::Annotations::Dimension::SetReferenceDimensionFlag ( bool referenceDimensionFlag)

设置一个用于控制尺寸参考括号可见性的设置。 注意:不应使用此设置方法来编辑只读对象(如镜像PMI对象)。 否则,在部件更新时,更改将被覆盖。
创建于NX5.0.0。

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

参数
referenceDimensionFlag参考尺寸标志

◆ SetSecondAssociativity()

void NXOpen::Annotations::Dimension::SetSecondAssociativity ( NXOpen::Annotations::Associativity * newAssociativity)

设置第二个关联性数据。
创建于NX5.0.0。

许可要求:无

参数
newAssociativity新的关联性

◆ SetToleranceDecimalPlaces()

void NXOpen::Annotations::Dimension::SetToleranceDecimalPlaces ( int decimalPlaces)

设置用于控制尺寸主公差值小数位数的设置。 注意:不应使用set方法编辑只读对象(如镜像PMI对象)。 否则,在部件更新时,更改将被覆盖。
创建于NX5.0.0。

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

参数
decimalPlaces小数位数

◆ SetToleranceType()

void NXOpen::Annotations::Dimension::SetToleranceType ( NXOpen::Annotations::ToleranceType toleranceType)

设置一个用于控制公差显示样式的设置。 注意:不应使用此设置方法来编辑只读对象(如镜像PMI对象)。 否则,在部件更新时,更改将被覆盖。
创建于NX5.0.0。

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

参数
toleranceType公差类型

◆ SetUpperMetricToleranceValue()

void NXOpen::Annotations::Dimension::SetUpperMetricToleranceValue ( double toleranceValue)

设置控制尺寸公制上公差值的设置。 如果尺寸以单边负公差类型显示,则上公差值将被忽略,此方法将返回默认公差值。 注意:不应使用set方法编辑只读对象(如镜像PMI对象)。 否则,在部件更新时,更改将被覆盖。
创建于 NX5.0.0。

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

参数
toleranceValue公差值

◆ SetUpperToleranceValue()

void NXOpen::Annotations::Dimension::SetUpperToleranceValue ( double upperToleranceValue)

设置用于控制尺寸上公差值的设置。 如果尺寸以单边负公差类型显示,则上公差值将被忽略,并且此方法将返回默认公差值。 注意:不应使用set方法编辑只读对象(如镜像PMI对象)。 否则,在部件更新时,更改将被覆盖。
创建于NX5.0.0。

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

参数
upperToleranceValue上公差值

◆ ShaftLowerToleranceValue()

double NXOpen::Annotations::Dimension::ShaftLowerToleranceValue ( )

获取控制尺寸轴公差下偏差值的设置。
创建于 NX10.0.1。

许可要求:无

◆ ShaftUpperToleranceValue()

double NXOpen::Annotations::Dimension::ShaftUpperToleranceValue ( )

获取控制尺寸轴公差上偏差值的设置。
创建于 NX10.0.1。

许可要求:无

◆ ToleranceDecimalPlaces()

int NXOpen::Annotations::Dimension::ToleranceDecimalPlaces ( )

返回用于控制尺寸主公差值小数位数的设置。 注意:不应使用set方法编辑只读对象(如镜像PMI对象)。 否则,在部件更新时,更改将被覆盖。
创建于NX5.0.0。

许可要求:无

◆ ToleranceType()

NXOpen::Annotations::ToleranceType NXOpen::Annotations::Dimension::ToleranceType ( )

返回一个用于控制公差显示样式的设置。 注意:不应使用此设置方法来编辑只读对象(如镜像PMI对象)。 否则,在部件更新时,更改将被覆盖。
创建于NX5.0.0。

许可要求:无

◆ UnretainForInconsistentSilhouette()

void NXOpen::Annotations::Dimension::UnretainForInconsistentSilhouette ( int index)

如果尺寸不再具有索引关联性所指示的不一致轮廓,则取消保留该尺寸。
创建于NX12.0.0。

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

参数
index索引

◆ UpperMetricToleranceValue()

double NXOpen::Annotations::Dimension::UpperMetricToleranceValue ( )

获取控制尺寸公制上公差值的设置。 如果尺寸以单边负公差类型显示,则上公差值将被忽略,此方法将返回默认公差值。 注意:不应使用set方法编辑只读对象(如镜像PMI对象)。 否则,在部件更新时,更改将被覆盖。
创建于 NX5.0.0。

许可要求:无

◆ UpperToleranceValue()

double NXOpen::Annotations::Dimension::UpperToleranceValue ( )

返回用于控制尺寸上公差值的设置。 如果尺寸以单边负公差类型显示,则上公差值将被忽略,并且此方法将返回默认公差值。 注意:不应使用set方法编辑只读对象(如镜像PMI对象)。 否则,在部件更新时,更改将被覆盖。
创建于NX5.0.0。

许可要求:无