FindComponents:

Path: AerospaceUtils/CAD

% Find the indices of components containing a particular string
 For example:

   FindComponents(g,'class','generic')
--------------------------------------------------------------------------
   Form:
   [k,c] = FindComponents(g,field,str,caseSensitive,exact);
--------------------------------------------------------------------------

   ------
   Inputs
   ------
   g              CAD Model data structure, returned from BuildCADModel
   field          Field to search in, located at: g.component().FIELD
   str            String to search for
   caseSensitive  Flag. Case sensitive (1) or not (0) [default 0].
   exact          Flag. Search for exact string (1) or not (0) [default 0].
   
   -------
   Outputs
   -------
   k          Indices of components 
   c          Field value (ex. name, class)

--------------------------------------------------------------------------

Back to the AerospaceUtils Module page