External Data
External Data
This container holds data to expose external results or data files within the Workbench project.
Methods
AddDataFile
Adds a data file to the outline
-
Return
Returns the reference to the FileData object - Type DataReference
Required Arguments
- FilePath The data file path
- Type string
GetExternalLoadData
Query to return the reference to the container's ExternalLoadData data entity.
-
Return
A reference to the requested ExternalLoadData data entity. - Type DataReference
GetExternalLoadOutput
Query to return the reference to the container's ExternalDataOutput data entity.
-
Return
A reference to the requested ExternalLoadData data entity. - Type DataReference
InsertDataFile
Adds a data file to the outline
-
Return
Returns the reference to the FileData object - Type DataReference
Required Arguments
InsertRegisteredFile
Adds a data file to the outline
Required Arguments
- AllowDuplicates No details are provided for this entry.
- Type bool
- File The file
- Type DataReference
InsertSupportFile
Inserts a support file to the associated FileData
Required Arguments
- FileData ExternalLoadFileData reference to add the support file
- Type DataReference
- FilePath The support file path
- Type string
ModifySupportFile
Updates a support file to the associated FileData
Required Arguments
- FileData ExternalLoadFileData reference to add the support file
- Type DataReference
- FilePath The support file path
- Type string
Data Entities
ExternalDataSetup
This is the DataObject which represents the data transfer provider for the External Data setup container.
Properties
DisplayText
The general property that defines the user-visible name of an entity. This property is defined for all data entities but is used only in those entities that present a label in the user interface.
- Type string
- Read Only No
TransferDataObject
The data transfer object provided by this provider
- Type DataReference
- Read Only No
ExternalLoadColumnData
This entity contains information about the column data
Properties
DisplayText
The general property that defines the user-visible name of an entity. This property is defined for all data entities but is used only in those entities that present a label in the user interface.
- Type string
- Read Only No
Identifier
Identifier of this column data. This will be used by the down stream applications
- Type string
- Read Only No
ExternalLoadData
This is the root level entity for the external data add-in
Properties
DisplayText
The general property that defines the user-visible name of an entity. This property is defined for all data entities but is used only in those entities that present a label in the user interface.
- Type string
- Read Only No
Methods
DeleteFileData
Removes a data file from the outline
Required Arguments
- FileData Reference to the FileData
- Type DataReference
DuplicateFileData
Removes a data file from the outline
Required Arguments
- FileData Reference to the FileData
- Type DataReference
GetExternalLoadFileData
Query to return the reference to the container's ExternalLoadFileData data entity.
-
Return
A reference to the requested ExternalLoadFileData data entity. - Type DataReference
Required Arguments
- Name Name of the ExternalLoadFileData entity
- Type string
ExternalLoadFileData
This entity contains information for the DataFile added to the outline
Properties
DisplayText
The general property that defines the user-visible name of an entity. This property is defined for all data entities but is used only in those entities that present a label in the user interface.
- Type string
- Read Only No
Master
Makes the Data file as a Master or not. Only one Data file can be a Master.
- Type bool
- Read Only No
Output
Contains the reference to the Translated FileData output object
- Type DataReference
- Read Only No
Methods
GetDataProperty
Query to return the reference to the container's ExternalLoadFileDataProperty data entity.
-
Return
A reference to the requested ExternalLoadFileData data entity. - Type DataReference
ModifyFileData
Changes the file path of the existing FileData
Required Arguments
- FilePath FilePath to be modified in the FileData
- Type string
SetAsMaster
Changes the Master property on the FileData
Required Arguments
- Master controls the whether to make it as Master or not
- Type bool
SetDelimiterCharacter
Changes the Delimited Character on the FileDataProperty
Required Arguments
- Delimiter New Delimiter for the FileDataProperty
- Type string
- FileDataProperty FileDataProperty that needs to be modified
- Type DataReference
SetDelimiterType
Changes the DelimiterType on the FileDataProperty
Required Arguments
- Delimiter New DelimiterType for the FileDataProperty
- Type DelimiterType
- DelimiterString New Delimiter string for the FileDataProperty
- Type string
- FileDataProperty FileDataProperty that needs to be modified
- Type DataReference
- Example
solution1.SetDelimiterType( FileData=fileData, FileDataProperty=fileDataProperty, Delimiter=DelimiterType.Comma, DelimiterString=",")
SetDummyNetData
Sets the Material Field Data property
Required Arguments
- FileDataProperty FileDataProperty that needs to be modified
- Type DataReference
- ImportDummyNetData New DelimiterType for the FileDataProperty
- Type bool
SetFormatType
Changes the FormatType on the FileDataProperty
Required Arguments
- FileDataProperty FileDataProperty that needs to be modified
- Type DataReference
- Type New Format Type for the FileDataProperty
- Type FormatType
SetMaterialFieldData
Sets the Material Field Data property
Required Arguments
- MaterialData New DelimiterType for the FileDataProperty
- Type bool
SetStartImportAtLine
Changes the Start Import at Line on the FileDataProperty
Required Arguments
- FileDataProperty FileDataProperty that needs to be modified
- Type DataReference
- LineNumber New LineNumber for the FileDataProperty
- Type int
ExternalLoadFileDataOutput
This entity contains information about each supporting file
Properties
DisplayText
The general property that defines the user-visible name of an entity. This property is defined for all data entities but is used only in those entities that present a label in the user interface.
- Type string
- Read Only No
TranslationIdentifier
Contains the reference to the unique translation identifier
- Type string
- Read Only No
ExternalLoadFileDataProperty
Contains information displayed on the Properties pane
Properties
ConversionOption
Contains the option on how to convert the data
- Type VariableConversionOption
- Read Only No
CoordinateSystemType
Specifies whether to use the Cartesian or Cylindrical coordinate system. The default value is Cartesian
- Type CoordinateSystemType
- Read Only No
DelimiterCharacter
Contains the delimiter character. Based on this value, number of columns are calculated
- Type string
- Read Only No
DelimiterType
Contains either the predefined delimiter or the user defined delimiter type
- Type DelimiterType
- Read Only No
Dimensions
You can choose to either import data from 2D or 3D models. If the 2D option is selected, you will be able to import data only at the X and Y coordinates. The Z coordinate is not supported for the 2D option.
- Type DimensionsType
- Read Only No
DisplayText
The general property that defines the user-visible name of an entity. This property is defined for all data entities but is used only in those entities that present a label in the user interface.
- Type string
- Read Only No
FileIdentifier
A string that can be used to identify the file in the downstream Mechanical application. The data identifiers, from the Table pane, are appended to this string so that you can pick the correct source data in the downstream Mechanical application.
- Type string
- Read Only No
FormatString
Contains the FormatString. Based on this value, number of columns are calculated
- Type string
- Read Only No
FormatType
This can be either Delimited or User-Defined. If the value is Delimited - Delimiter Character field is valid If the value is User-Defined - FormatString field is valid
- Type FormatType
- Read Only No
StartImportAtLine
The line number at which you want the data import to start. Line numbers start at 1.
- Type int
- Read Only No
SupportingFiles
Contains the list to all additional Supporting files
- Type List<DataReference>
- Read Only No
Methods
GetColumnData
Query to return the reference to the container's ExternalLoaColumndData data entity.
-
Return
A reference to the requested ExternalLoadFileData data entity. - Type DataReference
Required Arguments
- Name Name of the ExternalLoadColumnData entity
- Type string
SetColumnDataType
Changes the column data type of the given ColumnData
Required Arguments
- ColumnData ColumnData to be mofied
- Type DataReference
- DataType New DataType for the ColumnData
- Type string
SetCoordinateSystemType
Changes the CoordinateSystem type in the FileDataProperty
Required Arguments
- Type New Coordinate System Type for the FileDataProperty
- Type CoordinateSystemType
SetDimensionType
Changes the DimensionsType on the FileDataProperty
Required Arguments
- Dimensions New DimensionsType for the FileDataProperty
- Type DimensionsType
SetFormatString
Changes the FormatString on the FileDataProperty
Required Arguments
- Format New Format string for the FileDataProperty
- Type string
SetLengthUnit
Changes the Length Unit on the FileDataProperty
Required Arguments
- Unit New Length Unit for the FileDataProperty
- Type string
ExternalLoadSupportingFileData
This entity contains information about each supporting file
Properties
DisplayText
The general property that defines the user-visible name of an entity. This property is defined for all data entities but is used only in those entities that present a label in the user interface.
- Type string
- Read Only No