C++ Adding Block to Rhino

Hi,

I am following how to create blocks tutorial:

I would like to ask if this tutorial is supposed to block existing objects in rhino?
The issue is that when I run this code and select for instance cube and cone it does not convert them to blocks. However there is a block instance in block manager (But no physical object on rhino canvas).

So I would like to ask how to add block object to rhino? What additional code I have to write?

The guide says so in the note at the end. Did you browse to the link about dynamically adding instances at the very end?

Also, you porbably want

https://developer.rhino3d.com/api/cpp/class_c_rhino_instance_definition_table.html#ab291de9a32dd64793022fe72fc2be0f4

1 Like