NX Open C++ Reference Guide
|
Represents a Annotations::TextWithSymbolsBuilder which collects internationalized text strings from the user for processing on an annotation object. More...
Public Types | |
enum | SymbolPreferencesType { SymbolPreferencesTypeUseCurrent, SymbolPreferencesTypeUseDefinition } |
Enum for the symbol preferences. More... | |
enum | SymbolSizingMethod { SymbolSizingMethodScaleAndAspectRatio, SymbolSizingMethodLengthAndHeight } |
sizing method for embedded user-defined symbols More... | |
Public Member Functions | |
void | AddAttributeReference (NXOpen::NXObject *ownerTag, const NXString &title, bool displayTokens, int lineNo, int cursorPos) |
Adds an attribute reference Created in NX8.0.0. | |
void | AddAttributeReference (NXOpen::NXObject *ownerTag, const char *title, bool displayTokens, int lineNo, int cursorPos) |
Adds an attribute reference Created in NX8.0.0. | |
void | AddExpressionReference (const NXString &expName, const NXString &format, int lineNo, int cursorPos) |
Adds an expression reference Created in NX8.0.0. | |
void | AddExpressionReference (const char *expName, const char *format, int lineNo, int cursorPos) |
Adds an expression reference Created in NX8.0.0. | |
void | AddSymbol (NXOpen::NXObject *newObject, const NXString &name, int lineNo, int cursorPos) |
Adds a symbol Created in NX7.0.0. | |
void | AddSymbol (NXOpen::NXObject *newObject, const char *name, int lineNo, int cursorPos) |
Adds a symbol Created in NX7.0.0. | |
double | CustomSymbolScale () |
Returns the scale of the custom symbols Created in NX7.5.0. | |
std::vector< NXString > | GetText () |
Returns the text of the annotation. | |
void | RemoveSymbol (const NXString &path) |
Removes specified symbol Created in NX7.0.0. | |
void | RemoveSymbol (const char *path) |
Removes specified symbol Created in NX7.0.0. | |
void | SetCustomSymbolScale (double customSymbolScale) |
Sets the scale of the custom symbols Created in NX7.5.0. | |
void | SetSymbolAspectRatio (double symbolAspectRatio) |
Sets the aspect ratio of the embedded user-defined symbols if the symbol size method is Annotations::TextWithSymbolsBuilder::SymbolSizingMethodScaleAndAspectRatio Created in NX6.0.0. | |
void | SetSymbolHeight (double symbolHeight) |
Sets the height of the embedded user-defined symbols if the symbol size method is Annotations::TextWithSymbolsBuilder::SymbolSizingMethodLengthAndHeight Created in NX6.0.0. | |
void | SetSymbolLength (double symbolLength) |
Sets the length of the embedded user-defined symbols if the symbol size method is Annotations::TextWithSymbolsBuilder::SymbolSizingMethodLengthAndHeight Created in NX6.0.0. | |
void | SetSymbolPreferences (NXOpen::Annotations::TextWithSymbolsBuilder::SymbolPreferencesType symbolPreferences) |
Sets the symbol preferences Created in NX8.0.0. | |
void | SetSymbolScale (double symbolScale) |
Sets the scale of the embedded user-defined symbols if the symbol size method is Annotations::TextWithSymbolsBuilder::SymbolSizingMethodScaleAndAspectRatio Created in NX6.0.0. | |
void | SetSymbolSizeMethod (NXOpen::Annotations::TextWithSymbolsBuilder::SymbolSizingMethod symbolSizeMethod) |
Sets the method in which embedded user-defined symbols are scaled Created in NX6.0.0. | |
void | SetText (const std::vector< NXString > &text) |
Sets the text of the annotation Created in NX6.0.0. | |
double | SymbolAspectRatio () |
Returns the aspect ratio of the embedded user-defined symbols if the symbol size method is Annotations::TextWithSymbolsBuilder::SymbolSizingMethodScaleAndAspectRatio Created in NX6.0.0. | |
double | SymbolHeight () |
Returns the height of the embedded user-defined symbols if the symbol size method is Annotations::TextWithSymbolsBuilder::SymbolSizingMethodLengthAndHeight Created in NX6.0.0. | |
double | SymbolLength () |
Returns the length of the embedded user-defined symbols if the symbol size method is Annotations::TextWithSymbolsBuilder::SymbolSizingMethodLengthAndHeight Created in NX6.0.0. | |
NXOpen::Annotations::TextWithSymbolsBuilder::SymbolPreferencesType | SymbolPreferences () |
Returns the symbol preferences Created in NX8.0.0. | |
double | SymbolScale () |
Returns the scale of the embedded user-defined symbols if the symbol size method is Annotations::TextWithSymbolsBuilder::SymbolSizingMethodScaleAndAspectRatio Created in NX6.0.0. | |
NXOpen::Annotations::TextWithSymbolsBuilder::SymbolSizingMethod | SymbolSizeMethod () |
Returns the method in which embedded user-defined symbols are scaled Created in NX6.0.0. | |
virtual bool | Validate () |
Validate whether the inputs to the component are sufficient for commit to be called. | |
![]() | |
tag_t | GetTag () const |
<b>Deprecated</b>:<br> Use Tag instead. | |
tag_t | Tag () const |
Returns the tag of this object. | |
Represents a Annotations::TextWithSymbolsBuilder which collects internationalized text strings from the user for processing on an annotation object.
<br> This is a sub-builder class and cannot be directly instantiated <br>
Created in NX6.0.0.
void NXOpen::Annotations::TextWithSymbolsBuilder::AddAttributeReference | ( | NXOpen::NXObject * | ownerTag, |
const NXString & | title, | ||
bool | displayTokens, | ||
int | lineNo, | ||
int | cursorPos | ||
) |
Adds an attribute reference
Created in NX8.0.0.
License requirements : drafting ("DRAFTING")
ownerTag | object that owns the attribute. If we are trying to reference a part attribute then this should be the part object |
title | title of attribute |
displayTokens | True to display using TC tokens. False to display as plain text. |
lineNo | line number to insert token with index from 1 |
cursorPos | cursor position in the line with index from 1 |
void NXOpen::Annotations::TextWithSymbolsBuilder::AddAttributeReference | ( | NXOpen::NXObject * | ownerTag, |
const char * | title, | ||
bool | displayTokens, | ||
int | lineNo, | ||
int | cursorPos | ||
) |
Adds an attribute reference
Created in NX8.0.0.
License requirements : drafting ("DRAFTING")
ownerTag | object that owns the attribute. If we are trying to reference a part attribute then this should be the part object |
title | title of attribute |
displayTokens | True to display using TC tokens. False to display as plain text. |
lineNo | line number to insert token with index from 1 |
cursorPos | cursor position in the line with index from 1 |
void NXOpen::Annotations::TextWithSymbolsBuilder::AddExpressionReference | ( | const NXString & | expName, |
const NXString & | format, | ||
int | lineNo, | ||
int | cursorPos | ||
) |
Adds an expression reference
Created in NX8.0.0.
License requirements : drafting ("DRAFTING")
expName | expression name |
format | format to use for displaying an expression. 'A' for displaying the expression formula, or 'm.n' where 'm' is the minimum number of characters displayed and 'n' is the number of decimal places to display |
lineNo | line number to insert token with index from 1 |
cursorPos | cursor position in the line with index from 1 |
void NXOpen::Annotations::TextWithSymbolsBuilder::AddExpressionReference | ( | const char * | expName, |
const char * | format, | ||
int | lineNo, | ||
int | cursorPos | ||
) |
Adds an expression reference
Created in NX8.0.0.
License requirements : drafting ("DRAFTING")
expName | expression name |
format | format to use for displaying an expression. 'A' for displaying the expression formula, or 'm.n' where 'm' is the minimum number of characters displayed and 'n' is the number of decimal places to display |
lineNo | line number to insert token with index from 1 |
cursorPos | cursor position in the line with index from 1 |
void NXOpen::Annotations::TextWithSymbolsBuilder::AddSymbol | ( | NXOpen::NXObject * | newObject, |
const NXString & | name, | ||
int | lineNo, | ||
int | cursorPos | ||
) |
Adds a symbol
Created in NX7.0.0.
License requirements : drafting ("DRAFTING")
newObject | symbol instance object |
name | symbol name |
lineNo | line number to insert token with index from 1 |
cursorPos | cursor position in the line with index from 1 |
void NXOpen::Annotations::TextWithSymbolsBuilder::AddSymbol | ( | NXOpen::NXObject * | newObject, |
const char * | name, | ||
int | lineNo, | ||
int | cursorPos | ||
) |
Adds a symbol
Created in NX7.0.0.
License requirements : drafting ("DRAFTING")
newObject | symbol instance object |
name | symbol name |
lineNo | line number to insert token with index from 1 |
cursorPos | cursor position in the line with index from 1 |
double NXOpen::Annotations::TextWithSymbolsBuilder::CustomSymbolScale | ( | ) |
Returns the scale of the custom symbols
Created in NX7.5.0.
License requirements : None
std::vector<NXString> NXOpen::Annotations::TextWithSymbolsBuilder::GetText | ( | ) |
Returns the text of the annotation.
void NXOpen::Annotations::TextWithSymbolsBuilder::RemoveSymbol | ( | const NXString & | path | ) |
Removes specified symbol
Created in NX7.0.0.
License requirements : drafting ("DRAFTING")
path | Symbol name |
void NXOpen::Annotations::TextWithSymbolsBuilder::RemoveSymbol | ( | const char * | path | ) |
Removes specified symbol
Created in NX7.0.0.
License requirements : drafting ("DRAFTING")
path | Symbol name |
void NXOpen::Annotations::TextWithSymbolsBuilder::SetCustomSymbolScale | ( | double | customSymbolScale | ) |
Sets the scale of the custom symbols
Created in NX7.5.0.
License requirements : drafting ("DRAFTING") OR geometric_tol ("GDT")
customSymbolScale | customsymbolscale |
void NXOpen::Annotations::TextWithSymbolsBuilder::SetSymbolAspectRatio | ( | double | symbolAspectRatio | ) |
Sets the aspect ratio of the embedded user-defined symbols if the symbol size method is Annotations::TextWithSymbolsBuilder::SymbolSizingMethodScaleAndAspectRatio
Created in NX6.0.0.
License requirements : drafting ("DRAFTING") OR geometric_tol ("GDT")
symbolAspectRatio | symbolaspectratio |
void NXOpen::Annotations::TextWithSymbolsBuilder::SetSymbolHeight | ( | double | symbolHeight | ) |
Sets the height of the embedded user-defined symbols if the symbol size method is Annotations::TextWithSymbolsBuilder::SymbolSizingMethodLengthAndHeight
Created in NX6.0.0.
License requirements : drafting ("DRAFTING") OR geometric_tol ("GDT")
symbolHeight | symbolheight |
void NXOpen::Annotations::TextWithSymbolsBuilder::SetSymbolLength | ( | double | symbolLength | ) |
Sets the length of the embedded user-defined symbols if the symbol size method is Annotations::TextWithSymbolsBuilder::SymbolSizingMethodLengthAndHeight
Created in NX6.0.0.
License requirements : drafting ("DRAFTING") OR geometric_tol ("GDT")
symbolLength | symbollength |
void NXOpen::Annotations::TextWithSymbolsBuilder::SetSymbolPreferences | ( | NXOpen::Annotations::TextWithSymbolsBuilder::SymbolPreferencesType | symbolPreferences | ) |
Sets the symbol preferences
Created in NX8.0.0.
License requirements : drafting ("DRAFTING")
symbolPreferences | symbolpreferences |
void NXOpen::Annotations::TextWithSymbolsBuilder::SetSymbolScale | ( | double | symbolScale | ) |
Sets the scale of the embedded user-defined symbols if the symbol size method is Annotations::TextWithSymbolsBuilder::SymbolSizingMethodScaleAndAspectRatio
Created in NX6.0.0.
License requirements : drafting ("DRAFTING") OR geometric_tol ("GDT")
symbolScale | symbolscale |
void NXOpen::Annotations::TextWithSymbolsBuilder::SetSymbolSizeMethod | ( | NXOpen::Annotations::TextWithSymbolsBuilder::SymbolSizingMethod | symbolSizeMethod | ) |
Sets the method in which embedded user-defined symbols are scaled
Created in NX6.0.0.
License requirements : drafting ("DRAFTING") OR geometric_tol ("GDT")
symbolSizeMethod | symbolsizemethod |
void NXOpen::Annotations::TextWithSymbolsBuilder::SetText | ( | const std::vector< NXString > & | text | ) |
Sets the text of the annotation
Created in NX6.0.0.
License requirements : drafting ("DRAFTING") OR geometric_tol ("GDT")
text | text |
double NXOpen::Annotations::TextWithSymbolsBuilder::SymbolAspectRatio | ( | ) |
Returns the aspect ratio of the embedded user-defined symbols if the symbol size method is Annotations::TextWithSymbolsBuilder::SymbolSizingMethodScaleAndAspectRatio
Created in NX6.0.0.
License requirements : None
double NXOpen::Annotations::TextWithSymbolsBuilder::SymbolHeight | ( | ) |
Returns the height of the embedded user-defined symbols if the symbol size method is Annotations::TextWithSymbolsBuilder::SymbolSizingMethodLengthAndHeight
Created in NX6.0.0.
License requirements : None
double NXOpen::Annotations::TextWithSymbolsBuilder::SymbolLength | ( | ) |
Returns the length of the embedded user-defined symbols if the symbol size method is Annotations::TextWithSymbolsBuilder::SymbolSizingMethodLengthAndHeight
Created in NX6.0.0.
License requirements : None
NXOpen::Annotations::TextWithSymbolsBuilder::SymbolPreferencesType NXOpen::Annotations::TextWithSymbolsBuilder::SymbolPreferences | ( | ) |
Returns the symbol preferences
Created in NX8.0.0.
License requirements : None
double NXOpen::Annotations::TextWithSymbolsBuilder::SymbolScale | ( | ) |
Returns the scale of the embedded user-defined symbols if the symbol size method is Annotations::TextWithSymbolsBuilder::SymbolSizingMethodScaleAndAspectRatio
Created in NX6.0.0.
License requirements : None
NXOpen::Annotations::TextWithSymbolsBuilder::SymbolSizingMethod NXOpen::Annotations::TextWithSymbolsBuilder::SymbolSizeMethod | ( | ) |
Returns the method in which embedded user-defined symbols are scaled
Created in NX6.0.0.
License requirements : None
|
virtual |
Validate whether the inputs to the component are sufficient for commit to be called.
If the component is not in a state to commit then an exception is thrown. For example, if the component requires you to set some property, this method will throw an exception if you haven't set it. This method throws a not-yet-implemented NXException for some components.
Implements NXOpen::GeometricUtilities::IComponentBuilder.