Access site limits via API

Access site limits via API

Paul.KnokeYUP67
Explorer Explorer
236 Views
1 Reply
Message 1 of 2

Access site limits via API

Paul.KnokeYUP67
Explorer
Explorer

Hey,

 

is it planned to access and add site limits via api. Much like the Floorstack API.

 

This would be super nice!

 

Paul

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

md_amjad_hossain
Autodesk
Autodesk

Hei @Paul.KnokeYUP67, Thanks for your question. 

If I have understood you correctly, I believe you can create and add `site_limits` by our existing methods. For example:

 

const siteLimitPaths = await Forma.geometry.getPathsByCategory({ category: "site_limit" })
const siteLimitFootprint = await Forma.geometry.getFootprint({ path: siteLimitPaths[0] })

 

And then to create, you can add an `integreatedElements` Like - `

Forma.integrateElements.createElementHierarchy`. 

Though, it will not exactly behave as a `site_limit`, but, you can trace that geometry and make it a `site_limit`. I know this is a bit cumbersome.


But, right now, we are not planning to create an api for `site limits` specific. But, I will raise an internal feature request, to see if we can prioritise this. 

Thanks



Md Amjad Hossain
Software Development Engineer