这是SketchUp API Class里面的说明:
import
The import method is used to load a file by recognizing the file extension and calling appropriate importer.
Syntax 语法
status = model.import "filename", show_summary
Arguments
“filename” – the name of the file to import.
show_summary - true if you want to show a summary window, false if you do not want to show a summary window.
Return Value 回传值
status – true if successful, false if unsuccessful
知道其语法,写进Ruby程序中,载入SU的Ruby Console试验一下。 |