How to realize the two-dimensional and three-dimensional position linkage of forge

how to realize the spatial position linkage (switching) between 2D and 3D in forge, instead of the mapping relationship between 2D and 3D components in the official example?

Feb.18,2022

refer to
https://github.com/Autodesk-F.

.

there is no better interface in this area for the time being


currently 2D to 3D linkage, we use the revitId of the same component to find its respective dbId, in both modes to achieve select () and fitToView in 3D;
and 3D to 2D linkage, as above, the select () method is not affected, but the fitToView () method in 2D is not valid, so we need to find out the component geometry information and then implement it ourselves.

Menu