Issue with Fields (referencing another attribute value) changing location and not updating in Attribute Text of block
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Im making some PLCIO blocks for our company, and while doing so with our wire numbering scheme we use I want to use the remote rack slot number on the terminal wire label marker next to the PLC (part of the PLC block). I seem to be encountering two issues while doing this:
- The slot number that I used as a field text is swapping places with another number somehow when I insert the block, but in the block editor AND in the file for the block it shows the field in the correct location.
- The fields don't want to update most of the time? Sometimes when I try to regen, updatefields, or attsync the field doesn't update to whatever I change the SLOT_NUMBER attribute to. Sometimes it has worked, but it isn't consistent.
I made the slot number an attribute so the user can change it as needed, and I want the Wire/Terminal labels to update to reflect the new slot number after a regen / updatefields command. I created the block, made the attributes, used ctrl+f to insert field, selected "object, pick object (selected the SLOT_NUMBER attribute), then selected Value".
When inserting the block into a fresh drawing, the field text swaps places with the remote rack number (which is just regular text in the attribute). I have no clue how this is possible, it seems to also be happening to other blocks I have created like this. trying the "attsync", "regen", and "updatefields" commands don't correct the placement of the field text. If I change the SLOT_NUMBER attribute and regen the drawing the field text only sometimes updates but is still in the wrong location (and I cant figure out what causes the fields to NOT update most of the time.