Explanation for ONX_Model api

Hi All,

I am trying extract components by name from an ONX_Modelusing their name

       ONX_Model model;
       model.ComponentFromName(ON_ModelComponent::Type::ModelGeometry, component_parent_id, L"some_name");

It is not clear to me how I could get the component_parent_id, could someone please point me in the right direction.

Thanks
Sunayana

Hi @sghosh,

Most model components do not have a parent. In these cases, you can just pass a ON_nil_uuid as the component_parent_id parameter.

– Dale