Is it possible with Autodesk Forge?

家住魔仙堡 提交于 2021-01-29 09:02:40

问题


Is it possible with Autodesk Forge?

  1. Upload the DWG file and view it on the web. Maybe I can use Forge's viwer API. Is that right?

  2. And the web has a button. Can I move the focus to a specific object when I click that button? Using Javascript. (I will assign ID values to objects while working in Autodesk CAD.)

  3. Similar to Question 2. Can I change the color of a specific object using JavaScript?

I'm not good at English. Please politely understand. Help!


回答1:


Upload the DWG file and view it on the web. Maybe I can use Forge's viwer API. Is that right?

Yes follow the tutorial here

And the web has a button. Can I move the focus to a specific object when I click that button? Using Javascript.

Try viewer.isolate(dbid) or viewer.fitToView(dbid)

Can I change the color of a specific object using JavaScript?

Try viewer.setThemingColor

You can find doc/usage details for these methods on our official website



来源:https://stackoverflow.com/questions/59453559/is-it-possible-with-autodesk-forge

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!