Using SUModelSaveToFile


#1

When using SUModelSaveToFile(model, “untitled.skp”);
Is there a way to save the model to the current view that is open in sketchup?


#2

Maybe this question was a little unclear.
I have a skp file open “MyTest.skp”

In my extension I use:

SUModelSaveToFile(model, "MyTest.skp";

but it does not add the model I built. If I send it somewhere else:

SUModelSaveToFile(model, "test.skp";

It creates test.skp with the model I created inside. I want to be able to create my model inside the skp file I have open and not a seperate skp file.


#3

The C API is currently only for read and writing SKP files to and from disk. It does not work inside SketchUp like the Ruby API does.