🌓
搜索
 找回密码
 立即注册

请问一下Sketchup的API中Model.import能够导入一个外部模型?

winzard 2009-5-26 15:44:19 28215
请问一下,Sketchup的API中Model.import能够导入一个外部模型?有知道的,帮帮忙解答下!感谢了!

扫一扫

2 回复

这是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试验一下。
winzard
2009-5-26 15:44:19
楼主
这个我看了,但是是不是好要使用其他的方法?如果只用这个,不能够导入外部的模型。
高级模式
游客
返回顶部