geth3ddatatypebind

Gets data binding in a datatype.

Syntax

R = geth3ddatatypebind(fid, [, datatype])

Inputs

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

Outputs

R
Data binding as the datatype was defined. For example, "node", "elem".
Type: string

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');

% datattypes
datatypes = geth3ddatatypes(idx)
	
for it = 1:length(datatypes)
	bind = geth3ddatatypebind(idx, it)
end
	
closeh3dfile(idx);

Comments

It returns “undefined” if an existing datatype is not supported for writing using the OMLH3D Toolbox. This can be true for some datatypes coming from a solver.