zoom extent for object
Zoom extent API call for objects can be useful.
Comments (5)
-
reporter -
If you set an object active using AppObjectSetActive(), followed by AppGraphicsZoomExtent() call, you should be able to see that the graphics view zoom extends to (focus on) the active object. Does this not work for your use case?
-
reporter When you look at the following screenshot, you can understand why I need that functionality.
Function names that you said seems wrong -> they are ObjectSetActive&GraphicsZoomExtent with my current connecter. Should I download the new version? Overall the thing that you said can work but with my current version, it cannot do what you said. I have to use objectsetactive more than once(as you can see below) then I can use GraphicsZoomExtent but nothing happens.
Public Sub setActive() Dim sList = slabList For i = 0 To sList.Count - 1 AECprj.conn.ObjectSetActive(sList(i).brim.ID, True) Next Dim clist = columnList For i = 0 To clist.Count - 1 AECprj.conn.ObjectSetActive(clist(i).brim.ID, True) Next Dim flist = foundationWallList For i = 0 To flist.Count - 1 AECprj.conn.ObjectSetActive(flist(i).brim.ID, True) Next End Sub
-
Try the latest OpenBrIM Connect. You will be able to send an array of object IDs and those objects will be activated together. Let me know if you still cannot get GraphicsZoomExtent to the objects you want. If you can submit a test project, that would be great.
Here is the link to the latest OpenBrIM Connect library: https://openbrim.org/file?id=74f0a1c4d82449a9817d494920bd6b0c
-
- changed status to resolved
- Log in to comment
I want isolate some objects and focus on them. This becomes a critical issue especially when I have many (100) stories. I just want to put camera angle and position such that user can understand the activated story.