Managing building usage functions via SDK

Managing building usage functions via SDK

ferenc_daniel
Explorer Explorer
393 Views
2 Replies
Message 1 of 3

Managing building usage functions via SDK

ferenc_daniel
Explorer
Explorer

Dear Forma Team,


Is there a way to extend, or manage the list of available building usage functions (residential, commercial) via the SDK?


I'm trying to assign custom functionIds to various elements when using `createElementHierarchy`, but obviously that only works with the built-in functionIds. Custom values are discarded.

 



Additionally, I'm curious if it will be possible to set `functionId` on Floors when utilizing `Forma.elements.floorStack.createFromFloors`.


Thank you for your assistance!
Daniel

0 Likes
394 Views
2 Replies
Replies (2)
Message 2 of 3

havard.hoiby
Autodesk
Autodesk

Hi 🙂 

No there is no current way to add these through the SDK. Could you describe why your extension would need to do so? What is your use case here?

There is a way to add custom functions in the UI of Forma, and they should work in the functionId field of the createElementHierarchy.

 

For the FloorStack elements we have not added this option just yet. We are in the process of reiterating on our entire API surface to make it more consistent and complete, and I'll bring this concern into this work 🙂 Essentially I think this will be possible and consistent. 

0 Likes
Message 3 of 3

ferenc_daniel
Explorer
Explorer

Hi Havard,

 

Thank you for your response!
Our usecase is as follows:
We are developing Codesign, a sketch based conceptual app for architects.
Users can create concept models with real-time reporting for early-stage design.

 

As we work on seamless BIM integration, we're developing export options to bring Codesign projects directly into established architectural design software. This ensures users can effortlessly continue developing their concepts into detailed BIM models.

 

In our use case, usages (functions) are already assigned to model elements, and we aim to transfer them with the model during the export process.

 

Appreciate your support,
Daniel