Can sketchup components be saved as other versions via ruby?

Can sketchup components be saved as other versions via ruby?

I would like a clear answer, please.

Yes. But only if you are using SketchUp version 2022.0 or newer.
See here: #save_as method.

2 Likes

There is an unclear answer as well, but since you are refused, I can not tell you what is a workaround for older SketchUp versions … you have to search in a forum yourself. :wink:

1 Like

It would be great if the old version can also solve this problem, can you tell me your method, thank you

You can check other post on that topic too.

1 Like

saveFile = d.save_as (tempPath, Sketchup::Model::VERSION_8) Help me see what’s wrong here

saveFile = d.save_as (tempPath, Sketchup::Model::VERSION_8)

微信图片_20220511052013

1 Like

Can you point me out where I am wrong, thanks

can you help me find out

There is a space after save_as which is causing the syntax error.

saveFile = d.save_as (tempPath, Sketchup::Model::VERSION_8)

Please read the following post. It will make communicating easier

thank you very much