Add geometry via the API -

Add geometry via the API -

Michel_van_Geel_DAQS
Explorer Explorer
113 Views
1 Reply
Message 1 of 2

Add geometry via the API -

Michel_van_Geel_DAQS
Explorer
Explorer

Is there any more information / documentation I can look at on how to create Geometry via the API? The current available info is a bit sparse:

https://aps.autodesk.com/en/docs/forma/v1/reference/http-reference/geometries-batchcreategeometries-...

My goal is to let the user add default buildings to the model (via the Forma UI). Or is there a better way to do that?

Thanks,

 

Michel

0 Likes
114 Views
1 Reply
Reply (1)
Message 2 of 2

havard.hoiby
Autodesk
Autodesk

With that API you can add GeoJSON (Polygons, Line) from a server/backend, or you can do GLB with Integrate

If you want to add stuff from a browser, I would suggest building a JS extension using our SDK. The docs for the SDK contains more usage examples. 

Getting started: https://aps.autodesk.com/en/docs/forma/v1/embedded-views/introduction/

Examples:
https://app.autodeskforma.com/forma-embedded-view-sdk/docs/classes/geodata.GeoDataApi.html
https://app.autodeskforma.com/forma-embedded-view-sdk/docs/classes/elements.FloorStackApi.html
https://app.autodeskforma.com/forma-embedded-view-sdk/docs/interfaces/integrate-elements.CreateEleme...

 

-Håvard

0 Likes