Create nested block definitions in C++

hi

i’m already creating blocks according to the sample https://developer.rhino3d.com/guides/cpp/creating-blocks/

But now i’m struggling to add block instances into the block definition. How do i add a instance object to another definition? Because the AddInstanceObject from the CRhinoInstanceDefinitionTable does not have a switch to add as definition like the AddObject from CRhinoDoc?

Thanks

Hi @dsw,

See of the attached sample is helpful.

cmdTestWolfgang.cpp (3.2 KB)

– Dale

1 Like

That’s exactly what i needed. @dale you are the best! :ok_hand: