NX Open C++ Reference Guide
|
Represents the spreadsheet. More...
Public Types | |
enum | KeywordType { KeywordTypeObjectAttribute = 1, KeywordTypePartAttribute, KeywordTypeExpression = 4 } |
Represents the different attribute or expression section in spreadsheet. More... | |
enum | ParameterStatus { ParameterStatusLock = 1, ParameterStatusSystemKey, ParameterStatusUserKey = 4, ParameterStatusHideStatus = 8, ParameterStatusScaleItem = 16, ParameterStatusReadOnly = 32, ParameterStatusModified = 64, ParameterStatusForceColor = 128, ParameterStatusHiddenValue = 256, ParameterStatusOptionValue = 512 } |
Represents the different spreadsheet parameter status. More... | |
Public Member Functions | |
void | AddAssociatedObject (NXOpen::NXObject *associatedObject) |
Add object to be updated according to the spreadsheet data Created in NX8.0.0. | |
void | Close () |
Close the spreadsheet and exit excel App Created in NX8.0.1. | |
void | EditParameter (const NXString ¶meterName, const NXString ¶meterValue) |
Modify the spreadsheet parameter. | |
void | EditParameter (const char *parameterName, const char *parameterValue) |
Modify the spreadsheet parameter. | |
void | GetDefinedAttributesExpressions (NXOpen::Tooling::SpreadsheetData::KeywordType keywordType, std::vector< NXString > &objOrPartAttrNames, std::vector< NXString > &attrNames, std::vector< NXString > &attrValues) |
Get the object, part attributes or expressions defined in spreadsheet Created in NX8.0.0. | |
void | GetParameterValue (std::vector< NXOpen::Tooling::SpreadsheetDataParameter * > ¶meters) |
Get the parameters with current select/input value Created in NX8.0.0. | |
void | ReadData (const NXString &spreadsheetFileName) |
Load the data from given spreadsheet file Created in NX8.0.0. | |
void | ReadData (const char *spreadsheetFileName) |
Load the data from given spreadsheet file Created in NX8.0.0. | |
void | ReadData (NXOpen::NXObject *familyPart) |
Load the data from part family part Created in NX8.0.0. | |
void | SearchRecords (const NXString &searchConditions) |
Search the spreadsheet by the given conditions. | |
void | SearchRecords (const char *searchConditions) |
Search the spreadsheet by the given conditions. | |
void | SelectPrimaryParameter (const NXString ¶meterName, const NXString ¶meterValue) |
Change the primary parameter of the spreadsheet Created in NX8.0.0. | |
void | SelectPrimaryParameter (const char *parameterName, const char *parameterValue) |
Change the primary parameter of the spreadsheet Created in NX8.0.0. | |
void | SetParameterStatus (const NXString ¶meterName, int parameterStatus, bool isAdd) |
Sets the Lock/Hide or other status of spreadsheet parameter. | |
void | SetParameterStatus (const char *parameterName, int parameterStatus, bool isAdd) |
Sets the Lock/Hide or other status of spreadsheet parameter. | |
void | Update () |
Update the associated objects according to the spreadsheet data Created in NX8.0.0. | |
virtual | ~SpreadsheetData () |
Dispose the spreadsheet object Created in NX8.0.0. | |
![]() | |
void * | GetHandle () |
Handle of the internal object represented by this object. | |
Represents the spreadsheet.
Created in NX8.0.0.
Represents the different attribute or expression section in spreadsheet.
KeywordTypePartAttribute |
Part attribute defined in spreadsheet. |
|
virtual |
Dispose the spreadsheet object
Created in NX8.0.0.
License requirements : None
void NXOpen::Tooling::SpreadsheetData::AddAssociatedObject | ( | NXOpen::NXObject * | associatedObject | ) |
Add object to be updated according to the spreadsheet data
Created in NX8.0.0.
License requirements : None
associatedObject | the object to be updated according to the spreadsheet data |
void NXOpen::Tooling::SpreadsheetData::Close | ( | ) |
Close the spreadsheet and exit excel App
Created in NX8.0.1.
License requirements : None
void NXOpen::Tooling::SpreadsheetData::EditParameter | ( | const NXString & | parameterName, |
const NXString & | parameterValue | ||
) |
Modify the spreadsheet parameter.
Created in NX8.0.0.
License requirements : None
parameterName | the parameter name |
parameterValue | the parameter value |
void NXOpen::Tooling::SpreadsheetData::EditParameter | ( | const char * | parameterName, |
const char * | parameterValue | ||
) |
Modify the spreadsheet parameter.
Created in NX8.0.0.
License requirements : None
parameterName | the parameter name |
parameterValue | the parameter value |
void NXOpen::Tooling::SpreadsheetData::GetDefinedAttributesExpressions | ( | NXOpen::Tooling::SpreadsheetData::KeywordType | keywordType, |
std::vector< NXString > & | objOrPartAttrNames, | ||
std::vector< NXString > & | attrNames, | ||
std::vector< NXString > & | attrValues | ||
) |
Get the object, part attributes or expressions defined in spreadsheet
Created in NX8.0.0.
License requirements : None
keywordType | keywordtype |
objOrPartAttrNames | Object name or part attribute to find part |
attrNames | attrnames |
attrValues | Array of structures with the object attributes data. |
void NXOpen::Tooling::SpreadsheetData::GetParameterValue | ( | std::vector< NXOpen::Tooling::SpreadsheetDataParameter * > & | parameters | ) |
Get the parameters with current select/input value
Created in NX8.0.0.
License requirements : None
parameters | Array of structures with the parameter data. |
void NXOpen::Tooling::SpreadsheetData::ReadData | ( | const NXString & | spreadsheetFileName | ) |
Load the data from given spreadsheet file
Created in NX8.0.0.
License requirements : None
spreadsheetFileName | Spreadsheet file name, give CLI name in NX/Manager environment |
void NXOpen::Tooling::SpreadsheetData::ReadData | ( | const char * | spreadsheetFileName | ) |
Load the data from given spreadsheet file
Created in NX8.0.0.
License requirements : None
spreadsheetFileName | Spreadsheet file name, give CLI name in NX/Manager environment |
void NXOpen::Tooling::SpreadsheetData::ReadData | ( | NXOpen::NXObject * | familyPart | ) |
Load the data from part family part
Created in NX8.0.0.
License requirements : None
familyPart | the part family part |
void NXOpen::Tooling::SpreadsheetData::SearchRecords | ( | const NXString & | searchConditions | ) |
Search the spreadsheet by the given conditions.
Created in NX8.0.0.
License requirements : None
searchConditions | the search conditions |
void NXOpen::Tooling::SpreadsheetData::SearchRecords | ( | const char * | searchConditions | ) |
Search the spreadsheet by the given conditions.
Created in NX8.0.0.
License requirements : None
searchConditions | the search conditions |
void NXOpen::Tooling::SpreadsheetData::SelectPrimaryParameter | ( | const NXString & | parameterName, |
const NXString & | parameterValue | ||
) |
Change the primary parameter of the spreadsheet
Created in NX8.0.0.
License requirements : None
parameterName | the parameter name |
parameterValue | the parameter value |
void NXOpen::Tooling::SpreadsheetData::SelectPrimaryParameter | ( | const char * | parameterName, |
const char * | parameterValue | ||
) |
Change the primary parameter of the spreadsheet
Created in NX8.0.0.
License requirements : None
parameterName | the parameter name |
parameterValue | the parameter value |
void NXOpen::Tooling::SpreadsheetData::SetParameterStatus | ( | const NXString & | parameterName, |
int | parameterStatus, | ||
bool | isAdd | ||
) |
Sets the Lock/Hide or other status of spreadsheet parameter.
Created in NX8.0.1.
License requirements : None
parameterName | the parameter name |
parameterStatus | the parameter status as defined in SpreadsheetData::ParameterStatus . |
isAdd | Specifies whether the parameter status should be added or removed. If true, then the status is added, else it is removed. |
void NXOpen::Tooling::SpreadsheetData::SetParameterStatus | ( | const char * | parameterName, |
int | parameterStatus, | ||
bool | isAdd | ||
) |
Sets the Lock/Hide or other status of spreadsheet parameter.
Created in NX8.0.1.
License requirements : None
parameterName | the parameter name |
parameterStatus | the parameter status as defined in SpreadsheetData::ParameterStatus . |
isAdd | Specifies whether the parameter status should be added or removed. If true, then the status is added, else it is removed. |
void NXOpen::Tooling::SpreadsheetData::Update | ( | ) |
Update the associated objects according to the spreadsheet data
Created in NX8.0.0.
License requirements : None