Merge two sketchup models using C SDK



Hi all,

I am trying to merge 2 sketchup models using C sdk.

consider model A and model B.
I am recursively copying all entities from model B to model A, and then save A using SUModelSave().

This works with few models, but sometimes crashes.

Any idea how to merge multiple models using C sdk ?

Thank you.


What kind of ‘crash’ are you experiencing?


I would create a new model.
Then load each import model as a component.
Create an instance of each using the identity transform.

Other than this, you cannot get specific help without posting an example of failing code.