We are having difficulty with obtaining geometry from ComponentInstances through the C API in SketchUp SDK 2016. We can query all the component definitions in the Model, but:
There are component definitions with 0 instances. We’d like to skip these
We want to import all the instances of a component definition. We need to enumerate the instances of a definition for this, and fetch the transformation from the component instance.
Thank you! This is exactly how we did it and works fine!
Just a note:
We used SUEntityGetID to distinguish component definitions, because we could not interpret the GUIDs of component definitions. We used .NET C# and PInvoke.