codcoder Posted Friday at 02:47 PM Report Share Posted Friday at 02:47 PM Hi, So I have this project with a lot of vi's which are saved with block diagram windows somewhat larger than the actual block diagram. I am looking for a way to programmatically go through all these vi's and resize the block diagram window size to the size of the actual block diagram (plus some margin). Has anyone done this? I'm looking at the different properties: BDWin.Bounds, Diagram.Bounds, but I can't really make heads or tails of it. Quote Link to comment
Popular Post Darren Posted Friday at 03:28 PM Popular Post Report Share Posted Friday at 03:28 PM The 'Arrange VI Window' Quick Drop keyboard shortcut does this. With the diagram open, Press Ctrl-Space, then once Quick Drop appears, press Ctrl-F. If you want to look at the code that accomplishes this, see here... it should be a good resource for writing your own tool: [LabVIEW 20xx]\resource\dialog\QuickDrop\plugins\_Arrange VIWin SubVIs\Arrange VIWin - Arrange BD.vi 3 Quote Link to comment
crossrulz Posted Friday at 07:21 PM Report Share Posted Friday at 07:21 PM (edited) I have had this in my toolbox for a long time to do what you are asking. It is part of a QuickDrop plugin I made to "fix up" a VI, similar to Darren's Nattify plugin. Size Diagram Window.vi Edited Friday at 07:22 PM by crossrulz 2 Quote Link to comment
codcoder Posted Monday at 08:26 AM Author Report Share Posted Monday at 08:26 AM Wow, thanks! This is exactly what I was looking for! Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.