geth3ddatatypes

Gets defined datatypes inside an open instance.

Syntax

R = geth3ddatatypes(fid, [, subcase])

Inputs

fid
Integer representing the file ID, returned from createh3dfile().
Type: double | integer
subcase
A subcase name or index.
Type: string | int

Outputs

R
Cell containing all datatype names in an H3D file with correct indexing, or datatype names in a subcase if name/index was given.
Type: double | cell

Example

% file: test.oml
clear all; close all; clc;
cd(fileparts(omlfilename('fullpath')));

modelFile = 'test1.h3d';
resultFile = 'test1_query.h3d';
delete(resultFile); 
copyfile(modelFile, resultFile, 'f');
idx = createh3dfile(resultFile, 'append');

% Subcases
datatypes = geth3ddatatypes(idx)
closeh3dfile(idx);