I have a question, about Model.import of sketchup API
-
I want to import a component or model by ruby,but I can't do that .so please give me a help,how I can do that?Thanks!
-
Do you get any errors?
What format are you trying to import? .skp? -
f = UI.openpanel("select a file", nil, ".skp") Sketchup.active_model.import f
pretty simple to understand in the doc
http://code.google.com/intl/fr/apis/sketchup/docs/ourdoc/model.html#import -
It's wonderful ,I will do that at once.Thanks for the help.
-
@thomthom said:
Do you get any errors?
What format are you trying to import? .skp?I can not get information from the screen.The format is .skp.Can it be imported?
-
What information?
-
@thomthom said:
What information?
I'm sorry,I do some tests on the import method previously.I want to have a replacement on components
in model by the ruby script at the same time.Can it be to achieve?thanks! -
@thomthom said:
Do you get any errors?
What format are you trying to import? .skp?I import a dae file to sketchup by api. but i need to click to position. is there a way to position it automatically?
Advertisement