问题
Is it possible with Autodesk Forge?
Upload the DWG file and view it on the web. Maybe I can use Forge's viwer API. Is that right?
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.)
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