Warm tip: This article is reproduced from stackoverflow.com, please click
autodesk-designautomation forge

Is it possible to modify dimensions of revit model through design automation api? if yes how?

发布于 2020-03-27 10:18:44

currently im trying to modify my model from viewer with help of design automation api, it is possible to get properties of revit file but how to modify those properties and view back to the viewer

Questioner
Dipak G
Viewed
45
Bryan Huang 2019-07-03 21:40

Yes of course - possible workflow would be:

  • Create a plugin to modify your model - see this code sample here

  • Bundle your plugin to upload to Forge and define an activity for execution - see tutorial here

  • Load the model into Viewer after translating it with Model Derivative

  • Collect the data/parameter from user input and/or model properties/metadata

  • Call a workitem with the parameters and execute the plugin, can upload the modified output as versioned items to track changes

  • Use webhooks to get notified of new version being added and trigger a translation of it, or you can upload the output to your own app and trigger upload and translation with your own workflow

  • Load the modified model back into Viewer

See here for our official tutorial on Design Automation.