Community
Forma Developer Forum
Welcome to Autodesk Forma Developer Forum. Share your knowledge, ask questions, and explore popular Forma API topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

draw lines in 3d scene

1 REPLY 1
SOLVED
Reply
Message 1 of 2
jose_loaiza5W6L6
278 Views, 1 Reply

draw lines in 3d scene

Hi guys, I need to create a polygons and lines in 3d scene with the Forma API, but I don't want use the desingTool, I only want to pass some coordinates and draw it. do you have any suggestions?.

1 REPLY 1
Message 2 of 2

Hi you have two options. 

You either do a visualization or you add an element. The visualization would be removed when you exit the extension and cannot be interacted with. While the element would be a persistent design element in the model.

 

So visualization would be [`Forma.render.geojson`](https://app.autodeskforma.com/forma-embedded-view-sdk/docs/classes/render.RenderGeojsonApi.html) and the element would be [`Forma.integrateElements.createElementHierarchy`](https://app.autodeskforma.com/forma-embedded-view-sdk/docs/classes/integrate_elements.IntegrateApi.h...
The second is a bit complex to implement but you can see [this example](https://github.com/spacemakerai/forma-dynamo-extension/blob/8f5dbce7d180398308bf8759f0c6f593d713799d... from our Dynamo extension.

These will draw a 2d line draped on the terrain, if you are looking for 3d line in space then the answer is a bit more complex. Let me know if that was what you where looking for and I'll help you along 🙂

- Håvard

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Forma Design Contest


Autodesk Design & Make Report