Merge two sketchup models using C SDK

sdk

#1

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.


#2

What kind of ‘crash’ are you experiencing?


#3

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.


#4

Thanks Dan, this worked.


#5

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.