mphgetselection
Get information about a selection node.
Syntax
info = mphgetselection(selnode)
Description
info = mphgetselection(selnode) returns the selection data of the selection node selnode.
The output info is a MATLAB® structure defined with the following fields:
dimension, the space dimension of the geometric entity selected.
geom, the geometry tag.
entities, the indices of the selected entities.
isGlobal, a Boolean expression that indicates if the selection is global.
Example
Add a selection node to the model busbar.mph and retrieve its information:
model = mphopen('model_tutorial_llmatlab.mph');
ball = model.selection.create('ball','Ball');
ball.set('entitydim',2);
ball.set('posz',11e-3');
ball.set('r',1e-5);
info = mphgetselection(model.selection('ball'))
See also
mphgetexpressions, mphgetproperties, mphmodel, mphnavigator, mphsearch