Jump to content

Rearranging struct items / tags


Kpotmake

Recommended Posts

Is there a way to rearrange struct items within a struct, and also is the same possible for the global tags? I know we can sort the tags by name but if we open Unilogic the default sort is first tag created is first in the row

 

the same would come in handy for function inputs and outputs. I have created several C functions which are verry similar, and my program has become verry confusing because a lot of these function blocks have the same inputs and outputs, but they are not arranged the same and I would like to change this, but haven't found out how to do that yet...

Link to comment
Share on other sites

Hello @Kpotmake,

There is no built-in way to achieve your goal... but there are workarounds.

For rearranging Function in / out, I would

1) add to function In  / out parameters the tags you want to appear in the right order, with other names that resemble original ones

2) use the find and replace feature with scope set as current function,

3)  delete Function in / out tags that were not in right order

4) Rename added tags to the original names.

 

You can do the same for rearranging global tags although it is probably much more work...

 

For arranging tags in struct, it is a real headache... Since there is no Find and replace feature on the struct member itself, but only on members of the struct instances... Unless you have some structs that have only one instance or very few, then it is doable relatively simply.

I understand those solutions are not ideal, but for a one time operation it  can make sense to work hard (think well of the order you really want before doing so, you'd not be happy doing that all over again after a good night of sleep!)

Hope that helps you

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...