11-24-2021 10:49 AM
I'm creating an array of enums constant on a block diagram using scripting.
When created, this constant isn't wide enough to show all of the enum text.
I can't seem to find a property that allows me to resize this constant using scripting.
Any suggestions?
11-24-2021 11:15 AM
There's no law that things are possible.
In this case, it could be very hard...
11-24-2021 11:20 AM - edited 11-24-2021 11:20 AM
I guess you can save the VI with XML format, parse the VI to get the heap, deflate the heap, modify the XML, put it back in the file, resign the PW hash, and reload the VI...
The splitter tool (that changes splitter style) does this.
Definitely easier to let it go.
11-24-2021 12:19 PM
This seems to be something easily handled during runtime.
11-25-2021 03:18 AM
@billko wrote:
This seems to be something easily handled during runtime.
Yes, which in itself is weird as an enum constant can't be resized.
There are no (obvious) scripting stubs to do this.
11-25-2021 10:03 AM
wiebe@CARYA wrote:
@billko wrote:
This seems to be something easily handled during runtime.
Yes, which in itself is weird as an enum constant can't be resized.
There are no (obvious) scripting stubs to do this.
Oh, Jeez - TOTALLY misinterpreted the issue. I thought they were trying to resize the ARRAY, not the ENUM. 😅
11-26-2021 02:58 AM
@billko wrote:
wiebe@CARYA wrote:
@billko wrote:
This seems to be something easily handled during runtime.
Yes, which in itself is weird as an enum constant can't be resized.
There are no (obvious) scripting stubs to do this.
Oh, Jeez - TOTALLY misinterpreted the issue. I thought they were trying to resize the ARRAY, not the ENUM. 😅
We never would have known. Both are easily handled during runtime.