NXOpen .NET Reference Guide
|
Represents the spreadsheet data which could be standalone spreadsheet file with special format or be the spreadsheet data from part family template part, the latter format will not have any other data except the name and value in class NXOpen.Tooling.SpreadsheetDataParameter , that means it might not return any result in some methods such as "GetDefinedAttributesExpressions". More...
Public Types | |
enum | KeywordType { ObjectAttribute = 1, PartAttribute, Expression = 4 } |
Represents the different attribute or expression section in spreadsheet More... | |
enum | ParameterStatus { Lock = 1, SystemKey, UserKey = 4, HideStatus = 8, ScaleItem = 16, ReadOnly = 32, Modified = 64, ForceColor = 128, HiddenValue = 256, OptionValue = 512 } |
Represents the different spreadsheet parameter status More... | |
Public Member Functions | |
unsafe void | AddAssociatedObject (NXOpen.NXObject associatedObject) |
Add object to be updated according to the spreadsheet data More... | |
unsafe void | Close () |
Close the spreadsheet and exit excel App More... | |
unsafe void | EditParameter (string parameterName, string parameterValue) |
Modify the spreadsheet parameter. More... | |
unsafe void | GetDefinedAttributesExpressions (NXOpen.Tooling.SpreadsheetData.KeywordType keywordType, out string[] objOrPartAttrNames, out string[] attrNames, out string[] attrValues) |
Get the object, part attributes or expressions defined in spreadsheet More... | |
unsafe void | GetParameterValue (out NXOpen.Tooling.SpreadsheetDataParameter[] parameters) |
Get the parameters with current select/input value More... | |
unsafe void | GetParameterValueList (string parameterName, out string[] paraValues) |
Get the list of values by giving a parameter name in spreadsheet More... | |
unsafe void | ReadData (string spreadsheetFileName) |
Load the data from given spreadsheet file More... | |
unsafe void | ReadData (NXOpen.NXObject familyPart) |
Load the data from part family part More... | |
unsafe void | SearchRecords (string searchConditions) |
Search the spreadsheet by the given conditions. More... | |
unsafe void | SelectPrimaryParameter (string parameterName, string parameterValue) |
Change the primary parameter of the spreadsheet More... | |
unsafe void | SetParameterStatus (string parameterName, int parameterStatus, bool isAdd) |
Sets the Lock/Hide or other status of spreadsheet parameter. More... | |
unsafe void | Update () |
Update the associated objects according to the spreadsheet data More... | |
unsafe void | UpdateModel (bool doUpdateImmediately, bool updatePartAttribute) |
Update the associated objects according to the spreadsheet data with the options More... | |
Public Member Functions inherited from NXOpen.TransientObject | |
void | Dispose () |
Frees the object from memory. More... | |
void | PrintTestData (String variableName) |
<exclude> More... | |
void | PrintTestData (String variableName, int lineNumber) |
<exclude> More... | |
new string | ToString () |
Returns a String that represents the current Object. More... | |
Public Member Functions inherited from NXOpen.Utilities.NXRemotableObject | |
IMessageCtrl | AsyncProcessMessage (IMessage msg, IMessageSink replySink) |
Asynchronously processes the given message. More... | |
IMessage | SyncProcessMessage (IMessage msg) |
Synchronously processes the given message. More... | |
Protected Member Functions | |
override void | FreeResource () |
Dispose the spreadsheet object More... | |
Additional Inherited Members | |
Properties inherited from NXOpen.TransientObject | |
IntPtr | Handle [get] |
Handle of the internal object represented by this object. More... | |
Represents the spreadsheet data which could be standalone spreadsheet file with special format or be the spreadsheet data from part family template part, the latter format will not have any other data except the name and value in class NXOpen.Tooling.SpreadsheetDataParameter , that means it might not return any result in some methods such as "GetDefinedAttributesExpressions".
About the standalone file format, it can refer to the sections below in NX Help: CAD->Shipbuilding->Installing templates and customizing the Ship Structure applications->Customizing the ship steel feature library->Steel feature parameter spreadsheet format CAD->Shipbuilding->Installing templates and customizing the Ship Structure applications->Customizing the standard parts library->Standard parts spreadsheet symbols
or the example files as below: $UGII_BASE_DIR/NXPARTS/Reuse Library/Reusable Object Library/Metric/Boss/Cross_Boss_01.xlsx $UGII_BASE_DIR/NXPARTS/Reuse Library/Reuse Examples/Standard Parts/DIN/Profile/Pipe-Tube/Cold-worked Welded Rect Steel Tube, DIN.xls
To create an instance of this class, call the method NXOpen.Tooling.ToolingSession.CreateSpreadsheetData .
Created in NX8.0.0
Represents the different spreadsheet parameter status
|
inline |
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 |
|
inline |
Close the spreadsheet and exit excel App
Created in NX8.0.1
License requirements: None.
|
inline |
Modify the spreadsheet parameter.
Created in NX8.0.0
License requirements: None.
parameterName | the parameter name |
parameterValue | the parameter value |
|
inlineprotectedvirtual |
Dispose the spreadsheet object
Created in NX8.0.0
License requirements: None.
Implements NXOpen.TransientObject.
|
inline |
Get the object, part attributes or expressions defined in spreadsheet
Created in NX8.0.0
License requirements: None.
keywordType | |
objOrPartAttrNames | Object name or part attribute to find part |
attrNames | |
attrValues | Array of structures with the object attributes data. |
|
inline |
Get the parameters with current select/input value
Created in NX8.0.0
License requirements: None.
parameters | Array of structures with the parameter data. |
|
inline |
Get the list of values by giving a parameter name in spreadsheet
Created in NX10.0.0
License requirements: None.
parameterName | |
paraValues | The list of values |
|
inline |
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 |
|
inline |
Load the data from part family part
Created in NX8.0.0
License requirements: None.
familyPart | the part family part |
|
inline |
Search the spreadsheet by the given conditions.
Created in NX8.0.0
License requirements: None.
searchConditions | the search conditions |
|
inline |
Change the primary parameter of the spreadsheet
Created in NX8.0.0
License requirements: None.
parameterName | the parameter name |
parameterValue | the parameter value |
|
inline |
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. |
|
inline |
Update the associated objects according to the spreadsheet data
Created in NX8.0.0
License requirements: None.
|
inline |
Update the associated objects according to the spreadsheet data with the options
Created in NX9.0.3
License requirements: None.
doUpdateImmediately | Specifies whether to perform an update immediately. |
updatePartAttribute | Specifies whether part attributes should be updated. |