Forge Edit2D customize toolset

Viewed 26

I'm using the Edit2D extension to draw a Polyline over the 2D model then the path of the polyline is sent to the designautomation API to draw the same polyline in the revit file. The problem I'm having is that the designautomation is drawing the polyline correctly but the scale is incorrect, it doesn't match with what i'm seeing in the browser. The shape is fine, but the scale is not. I assume that I need to customize the toolset to set the unithandler to use feet instead of inches. The documentation says to register a custom toolset this way:

edit2d.registerTools(MyToolSetName);

But there is no documentation on how to create the MyToolSetName toolset (i saw it's a complex object doing reverse engineering) Any clue how can I set the unithandler and register it with the registerTools function?

Or any clue on how to make my 2D view in forge match the same coordinates as revit?

Thanks

0 Answers
Related