LabVIEW Idea Exchange

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

Programmatic Control of Grid Alignment Properties

Status: Completed

Available in LabVIEW 2019. There are two new properties of the VI class: Block Diagram Window:Alignment Grid Size and Front Panel Window:Alignment Grid Size.

I am not happy when I inherit legacy code where VIs have inconsistent alignment grid options, as shown in the image below.Inconsistent Alignment Grids.jpg

 

My team has coding standards we follow, and those standards include alignment grid options. It is labor-intensive to change alignment grid options on legacy VIs because you have to do it by hand, and clicks quickly add up. I wish I could automate such changes.

 

I’d like to see a few new properties to expose settings available in the editor, as shown below.Alignment Grid Property Nodes.jpg

These properties need to support both read and write.

Kosta
23 Comments
wiebe@CARYA
Knight of NI

Actually I was hoping for a decent API to set the global environment properties (e.g. "Get Environment Property.vi" / "Set Environment Property.vi"). But indeed, changing the ini file will do that... It ain't pretty though.

 

Setting properties by name, returning an error if it's not there, can be made. So although having this build in would be nice, it's not a necessity for NI to provide.

Darren
Proven Zealot
Status changed to: Completed

Available in LabVIEW 2019. There are two new properties of the VI class: Block Diagram Window:Alignment Grid Size and Front Panel Window:Alignment Grid Size.

Kosta
Member

Thank you!

 

It so happens that I recently inherited some VIs with inconsistent grid sizes. I'm looking forward to writing scripting tools to harmonize them.

Kosta