How to get the transform (position) of a block instance object in C++?

@alexian007, I have updated the changequeue sample to use the ON_3dPoint method shown by @dale to get the position. I also do something similar with the z-axis. This gives you a new z-axis for the block instance.

A few lines down there I also print the entire transform.

You can use the sample with the attached RHP and 3DM for testing

SampleRdkChangeQueue.rhp (166.5 KB, built against 6SRC13, can rebuild if needed).

SampleRdkChangeQueue.rhp (169 KB, compiled against 6SR0).

SampleRdkChangeQueue.3dm (32.5 KB)

1 Like