01-14-2019 10:39 PM
Hi Friends,
Is there any option for zoom in of highlighted objects with highlight_objects ?
Any help or suggestions are appreciated.
Thank You
S Sampath
01-14-2019 11:14 PM
I think you can try below commands:
marked_objects
get_highlighted_objects
get_marked_objects
-vivian
01-15-2019 02:05 AM
HI @viviany,
Thank You,
But i tried all but no use,
i searched for clock pin in the bank 33 and highlighted, and they used commands what you mentioned. But device view same as previous, i want like zoom into that device with commands.
Thank You
S Sampath
01-31-2019 04:29 AM
Unfortunately, there seems to be no documented API to modify the viewport. However, you can select objects to change the view to zoom in, provided "Autofit selection" is enabled
try:
select_objects [get_highlighted_objects]
If you want to zoom in without changing the selection you could try (again I am not aware of an API to change viewport behaviour)
#Manually turn on Autofit selection set originalSelection [get_selected_objects] select_objects [get_highlighted_objects] #Manually turn of Autofit selection select_objects $originalSelection
02-01-2019 05:38 AM
HI ,
Tool is automatically exited if i enter those commands.
Thank You
S Sampath
02-01-2019 08:21 AM
Try only the following command, it will get rid of your original selection though, that should not crash
select_objects [get_highlighted_objects]
I do not see why the other command sequence crashes vivado, but I am assuming it is this bug showing its face again (Vivado crashes when using the result of [get_selected_objects] in other commands quite a lot, I hope Xilinx fixes this, but am unable to open a case).