Hi everyone,
We start using Forge API to load .rvt files in the Forge Viewer and we are looking for a way to load only specific list of elements.
The method loadFile(url, options, ....) with the field options.ids specified seems to be the solution to our problem (isn't it ?).
We tried different ids but none of them works :
In Revit we have an element with id = 1426299, so we tried :
int or decimal string with and without padding :
options.ids = 1426299
options.ids = "1426299"
options.ids = 01426299
options.ids = "01426299"
in hexadecimal with and without padding :
options.ids = "15c37b"
options.ids = "0015c37b"
options.ids = "15C37B"
options.ids = "0015C37B"
options.ids = "0015C37B"
with GUID find in object_ids.json.gz :
options.ids = "2a4577e1-1534-4806-85f3-3f29d53053eb-0015c37b"
In the example of the doc (here : https://developer.autodesk.com/en/docs/viewer/v2/reference/javascript/document/ ), the id is "XXX02UUEs", we can't figure out where we can find this type of ids.
Thks for your help !
Pierre B
Hi Pierre,
Exciting to read that you are using Forge Viewer!
It's not Revit element ID. It's id specific to a "viewable". You can get those id through searching element id.
For further inquiry, please use stackoverflow.
I wrote about options to ask questions about Forge, including how to use stackoverflow with tags:
https://fieldofviewblog.wordpress.com/2016/10/27/where-to-get-help-about-forge/
I don't mean to push you around. But there are more people from Forge team keeping eyes on stackoverflow.
They will be more quick to point to the solution that you are looking for.
(Interesting topic. So I'd love to write about it when I get a chance. but for the interest of your time. I better point to the more suitable forum.)