Modifying a Dynamic Block with Lookup Tables

Modifying a Dynamic Block with Lookup Tables

DM2-fire
Enthusiast Enthusiast
929 Views
7 Replies
Message 1 of 8

Modifying a Dynamic Block with Lookup Tables

DM2-fire
Enthusiast
Enthusiast

I can't remember how I created this block but now I'm trying to add 2 additional visibility states to the block.

  • "Module With Shield"
  • "Module Without Sheld"

I'm screwing something up with the Lookup Tables and Can't figure out to add the two visibility states...

0 Likes
930 Views
7 Replies
Replies (7)
Message 2 of 8

Libbya
Mentor
Mentor
Post the block.
0 Likes
Message 3 of 8

DM2-fire
Enthusiast
Enthusiast

Sorry...thought I did...

0 Likes
Message 4 of 8

Libbya
Mentor
Mentor

The file didn't initially show with your first post.  It shows now, though.  

 

I'm not sure why you use a double lookup for SW Options.  Double lookups are for times when a change in one parameter (that does not have a pulldown) needs to cause a corresponding change in a second parameter.  That isn't the case here.  I think you could just place the visibility states in the same table as the other properties that you switch.  The same is true for the rotation angles/DIP positions.  Placing the visibility states on the same table as the move parameters seems to fix the visibility states issue.  It also simplifies the block.  I do the same for the rotation angles and then in the vid I delete all rows after 20.  You should not delete those rows and instead you should fill in the rotation values.  I just didn't feel like taking the time to fill in 255 rows and wanted to demonstrate the block working.  

 

See screencast. 

Message 5 of 8

DM2-fire
Enthusiast
Enthusiast

I'm not sure why you use a double lookup for SW Options. 

Ignorance on my part....

I'll have a go at this today...

I had a field that displayed the address (see picture)...but I think I can figure this out.

Mini Monitor Rev 0.png

The "DOT" in basically a wipeout to hide the decimal place because of the field.  I think with your suggestion the field would the the "Rotation"?

 

I think this would allow me to remove the wipeout?

0 Likes
Message 6 of 8

DM2-fire
Enthusiast
Enthusiast

No...i'm still struggling with what field to use for the Address.

I've tried selecting the OBJECT "ROTATION PARAMETER" / "ANGLE", but that doesn't seem to be correct.

I've also tried the the LOOKUP PARAMETER, but again this doesn't appear to be correct.

 

Can you offer a suggestion?

0 Likes
Message 7 of 8

DM2-fire
Enthusiast
Enthusiast

I've been able to get the Device Address to be reflected in the text string using a formula based on the angle of the LINE in the ROTATION PARAMETER.

 

Is it possible to force the value to use a leading "00" if the value is less than 10, and "0" if the value is less than "100"?

0 Likes
Message 8 of 8

Libbya
Mentor
Mentor

I would use an attribute and then reference the Address lookup value.  You can then make it whatever you want.  If you want to prevent others from editing the value and wiping out the field, then lock the layer although that means that the 'edit attributes' window will not open and editing other attribute values needs to be done in properties.  See screencast.

 

 

0 Likes