LabVIEW Idea Exchange

cancel
Showing results for 
Search instead for 
Did you mean: 
M_Peeker

Lock BD object position wrt structure corner

Status: New

Whenever I'm working on let's say a state machine I find that I need to resize the case structure now and then. Mostly make it larger, then I clean up my code and want to make it smaller again. Often when I do this, the constants (usually) pointing out the next case either get longer wires since they get further away from the border (when making the structure larger), become hidden (structure made smaller and no auto-grow) or prevent the resize (auto-grow enabled).

A solution to this would be to be able to lock BD objects with respect to the nearest corner of an owning structure, in the same way the loop index terminal is locked wrt to the corner of a for or while loop.

 

LockToCorner.png



CLA
www.dvel.se
7 Comments
crossrulz
Knight of NI

Great, another thing to make my OCD worse.  I like the idea, but it would be low on my list of stuff to have.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
TiTou
Trusted Enthusiast

I think you're better off using the "control + drag" in that case - instead of resizing the loop.

Though you'd also need an option to restrict the effect of the "control + drag" to the structure inside of which you're dragging, that would be cool and solve you problem, no?


We have two ears and one mouth so that we can listen twice as much as we speak.

Epictetus

Antoine Chalons

M_Peeker
Member

The ctrl+drag is indeed the way i usually make the structures bigger, and if I'm careful with where I start the drag that solves some of the problem in that case. What I really miss is to replicate the behaviour of e.g. the loop index terminal when making the structure smaller. Going from bigger to smaller BDs have always been tedious with LV. The clean-up functionality has made it better, but I don't wan't to clean the entire structure in these cases.



CLA
www.dvel.se
JB
Trusted Enthusiast
Trusted Enthusiast

Fully agree with TiTou's option to restrict the effect of the "control + drag" to the structure inside of which you're dragging. I rarely use "Ctrl + drag" in a diagram with several "layers" (eg state machine) because I then need much more time to rearrange the code in the other "layers" than to resize one "layer" manually.

TiTou
Trusted Enthusiast

here we go


We have two ears and one mouth so that we can listen twice as much as we speak.

Epictetus

Antoine Chalons

Thoric
Trusted Enthusiast

I can sympathise that once a structure is enlarged and you manually move all your constants to the right hand border, it then becomes a pain to shrink it again. I'd prefer an "opposite to CTRL+Drag" that skrinks a block diagram without rearranging the general arrangement of the code. This would assist greatly when shrinking structures like this.

Thoric (CLA, CLED, CTD and LabVIEW Champion)


elset191
Active Participant

@Thoric wrote:

I can sympathise that once a structure is enlarged and you manually move all your constants to the right hand border, it then becomes a pain to shrink it again. I'd prefer an "opposite to CTRL+Drag" that skrinks a block diagram without rearranging the general arrangement of the code. This would assist greatly when shrinking structures like this.


Though I suspect you are already aware, you commented on it after all, here is an existing idea.  There are also a few duplicates of it around.


http://forums.ni.com/t5/LabVIEW-Idea-Exchange/Contraction-shortcut-opposite-of-Ctrl-Shift-drag/idi-p...

--
Tim Elsey
Certified LabVIEW Architect