NX Open C++ Reference Guide
|
Represents dimension data
Created in NX4.0.0.
More...
Public Member Functions | |
NXOpen::Annotations::AngularTolerance * | GetAngularTolerance () |
Returns the angular tolerances. | |
NXOpen::Annotations::AppendedText * | GetAppendedText () |
Returns the appended text. | |
std::vector < NXOpen::Annotations::Associativity * > | GetAssociativity (int associativityIndex) |
Returns the associativity at specified index. | |
NXOpen::Annotations::DimensionPreferences * | GetDimensionPreferences () |
Returns the dimension preferences. | |
NXOpen::Xform * | GetInferredPlane (NXOpen::Annotations::PmiDefaultPlane jaDefaultPlane, NXOpen::Annotations::DimensionType dimType) |
Get inferred annotation plane. | |
NXOpen::Annotations::LetteringPreferences * | GetLetteringPreferences () |
Returns the lettering preferences. | |
NXOpen::Annotations::LineAndArrowPreferences * | GetLineAndArrowPreferences () |
Returns the line and arrow preferences. | |
NXOpen::Annotations::LinearTolerance * | GetLinearTolerance () |
Returns the linear tolerances. | |
NXOpen::Annotations::UserSymbolPreferences * | GetUserSymbolPreferences () |
Returns the user defined symbol preferences. | |
NXOpen::Annotations::LeaderOrientation | LeaderOrientation () |
Returns the leader orientation for the dimension Created in NX4.0.0. | |
NXOpen::Direction * | MeasurementDirection () |
Returns the measurement direction Created in NX7.5.0. | |
NXOpen::View * | MeasurementDirectionView () |
Returns the measurement direction view Created in NX7.5.0. | |
void | SetAngularTolerance (NXOpen::Annotations::AngularTolerance *tolerance) |
Sets the angular tolerances Created in NX4.0.0. | |
void | SetAppendedText (NXOpen::Annotations::AppendedText *appendedText) |
Sets the appended text Created in NX4.0.0. | |
void | SetAssociativity (int associativityIndex, const std::vector< NXOpen::Annotations::Associativity * > &associativity) |
Sets the associativity at specified index. | |
void | SetDimensionPreferences (NXOpen::Annotations::DimensionPreferences *preferences) |
Sets the dimension preferences Created in NX4.0.0. | |
void | SetLeaderOrientation (NXOpen::Annotations::LeaderOrientation leaderOrientation) |
Sets the leader orientation for the dimension Created in NX4.0.0. | |
void | SetLetteringPreferences (NXOpen::Annotations::LetteringPreferences *letteringPrefs) |
Sets the lettering preferences Created in NX4.0.0. | |
void | SetLineAndArrowPreferences (NXOpen::Annotations::LineAndArrowPreferences *prefs) |
Sets the line and arrow preferences Created in NX4.0.0. | |
void | SetLinearTolerance (NXOpen::Annotations::LinearTolerance *tolerance) |
Sets the linear tolerances Created in NX4.0.0. | |
void | SetMeasurementDirection (NXOpen::Direction *vector) |
Sets the measurement direction Created in NX7.5.0. | |
void | SetMeasurementDirectionView (NXOpen::View *view) |
Sets the measurement direction view Created in NX7.5.0. | |
void | SetUserSymbolPreferences (NXOpen::Annotations::UserSymbolPreferences *userSymbolPrefs) |
Sets the user defined symbol preferences Created in NX4.0.0. | |
virtual | ~DimensionData () |
Frees the object from memory. | |
![]() | |
void * | GetHandle () |
Handle of the internal object represented by this object. | |
Represents dimension data
Created in NX4.0.0.
|
virtual |
Frees the object from memory.
After this method is called, it is illegal to use the object. In .NET, this method is automatically called when the object is deleted by the garbage collector.
Created in NX4.0.0.
License requirements : None
NXOpen::Annotations::AngularTolerance* NXOpen::Annotations::DimensionData::GetAngularTolerance | ( | ) |
Returns the angular tolerances.
NXOpen::Annotations::AppendedText* NXOpen::Annotations::DimensionData::GetAppendedText | ( | ) |
Returns the appended text.
std::vector<NXOpen::Annotations::Associativity *> NXOpen::Annotations::DimensionData::GetAssociativity | ( | int | associativityIndex | ) |
Returns the associativity at specified index.
Valid index values are {1, 2, 3}.
For ordinate dimensions, -
the associativity at index 1 stores the ordinate origin dimension associativity data. -
the associativity at index 2 stores the ordinate dimension associativity data.
The associativity at index 3 stores the following -
1. Fold location for the folded radius dimension
2. Margin data for the ordinate dimensions
associativityIndex | Associativity index |
NXOpen::Annotations::DimensionPreferences* NXOpen::Annotations::DimensionData::GetDimensionPreferences | ( | ) |
Returns the dimension preferences.
NXOpen::Xform* NXOpen::Annotations::DimensionData::GetInferredPlane | ( | NXOpen::Annotations::PmiDefaultPlane | jaDefaultPlane, |
NXOpen::Annotations::DimensionType | dimType | ||
) |
Get inferred annotation plane.
Before calling this method, you must fill in the associativities for the Dimension by calling @link Annotations::DimensionData::SetAssociativity Annotations::DimensionData::SetAssociativity@endlink for the correct number of objects based on the type of Dimension you wish to create. Also, you must specify the particular type of Dimension to be created as the inferred Dimension plane depends on the type of the Dimension as well as the geometry being measured. @return
Created in NX4.0.0.
License requirements : None
jaDefaultPlane | ja default plane |
dimType | dim type |
NXOpen::Annotations::LetteringPreferences* NXOpen::Annotations::DimensionData::GetLetteringPreferences | ( | ) |
Returns the lettering preferences.
NXOpen::Annotations::LineAndArrowPreferences* NXOpen::Annotations::DimensionData::GetLineAndArrowPreferences | ( | ) |
Returns the line and arrow preferences.
NXOpen::Annotations::LinearTolerance* NXOpen::Annotations::DimensionData::GetLinearTolerance | ( | ) |
Returns the linear tolerances.
NXOpen::Annotations::UserSymbolPreferences* NXOpen::Annotations::DimensionData::GetUserSymbolPreferences | ( | ) |
Returns the user defined symbol preferences.
NXOpen::Annotations::LeaderOrientation NXOpen::Annotations::DimensionData::LeaderOrientation | ( | ) |
Returns the leader orientation for the dimension
Created in NX4.0.0.
License requirements : None
NXOpen::Direction* NXOpen::Annotations::DimensionData::MeasurementDirection | ( | ) |
Returns the measurement direction
Created in NX7.5.0.
License requirements : None
NXOpen::View* NXOpen::Annotations::DimensionData::MeasurementDirectionView | ( | ) |
Returns the measurement direction view
Created in NX7.5.0.
License requirements : None
void NXOpen::Annotations::DimensionData::SetAngularTolerance | ( | NXOpen::Annotations::AngularTolerance * | tolerance | ) |
Sets the angular tolerances
Created in NX4.0.0.
License requirements : None
tolerance | New angular tolerance |
void NXOpen::Annotations::DimensionData::SetAppendedText | ( | NXOpen::Annotations::AppendedText * | appendedText | ) |
Sets the appended text
Created in NX4.0.0.
License requirements : None
appendedText | New appended text |
void NXOpen::Annotations::DimensionData::SetAssociativity | ( | int | associativityIndex, |
const std::vector< NXOpen::Annotations::Associativity * > & | associativity | ||
) |
Sets the associativity at specified index.
Valid index values are {1, 2, 3}.
For ordinate dimensions, the associativity at index 1 stores the ordinate origin data.
The associativity at index 3 stores the following -
1. Fold location for the folded radius dimension
2. Margin data for the ordinate dimensions
Created in NX4.0.0.
License requirements : None
associativityIndex | Associativity index |
associativity | List of new associativity objects |
void NXOpen::Annotations::DimensionData::SetDimensionPreferences | ( | NXOpen::Annotations::DimensionPreferences * | preferences | ) |
Sets the dimension preferences
Created in NX4.0.0.
License requirements : None
preferences | New dimension preferences |
void NXOpen::Annotations::DimensionData::SetLeaderOrientation | ( | NXOpen::Annotations::LeaderOrientation | leaderOrientation | ) |
Sets the leader orientation for the dimension
Created in NX4.0.0.
License requirements : None
leaderOrientation | New leader orientation |
void NXOpen::Annotations::DimensionData::SetLetteringPreferences | ( | NXOpen::Annotations::LetteringPreferences * | letteringPrefs | ) |
Sets the lettering preferences
Created in NX4.0.0.
License requirements : None
letteringPrefs | New lettering preferences |
void NXOpen::Annotations::DimensionData::SetLineAndArrowPreferences | ( | NXOpen::Annotations::LineAndArrowPreferences * | prefs | ) |
Sets the line and arrow preferences
Created in NX4.0.0.
License requirements : None
prefs | New line and arrow preferences |
void NXOpen::Annotations::DimensionData::SetLinearTolerance | ( | NXOpen::Annotations::LinearTolerance * | tolerance | ) |
Sets the linear tolerances
Created in NX4.0.0.
License requirements : None
tolerance | New linear tolerance |
void NXOpen::Annotations::DimensionData::SetMeasurementDirection | ( | NXOpen::Direction * | vector | ) |
Sets the measurement direction
Created in NX7.5.0.
License requirements : None
vector | Direction |
void NXOpen::Annotations::DimensionData::SetMeasurementDirectionView | ( | NXOpen::View * | view | ) |
Sets the measurement direction view
Created in NX7.5.0.
License requirements : None
view | Measurement direction view |
void NXOpen::Annotations::DimensionData::SetUserSymbolPreferences | ( | NXOpen::Annotations::UserSymbolPreferences * | userSymbolPrefs | ) |
Sets the user defined symbol preferences
Created in NX4.0.0.
License requirements : None
userSymbolPrefs | New user symbol preferences |