Announcements
Attention for Customers without Multi-Factor Authentication or Single Sign-On - OTP Verification rolls out April 2025. Read all about it here.

Need Help with Dynamic Block

jtinawin
Enthusiast

Need Help with Dynamic Block

jtinawin
Enthusiast
Enthusiast

I've looked and looked. Honestly, no exaggeration, spent half a day trying to make this work.

 

I want it so at a certain angle, I'll use one visibility state. I'm out of idea as to how to make this work.

 

My base block is the GRADING.NEW and the one I'm working on is the GRADING.TEST

 

I'm actually gonna use 4 visibility state, but I want to learn how to do it, so If someone could make this work, that'd be nice. And please let me know what I was doing wrong.

 

Thank you.

0 Likes
Reply
Accepted solutions (2)
595 Views
11 Replies
Replies (11)

Mike.M.Carlson
Advisor
Advisor

Hi-

 

I think I got this to work.  You were just missing a "on" visibility state for the Lookup symbol itself for the RIGHT side condition.  I added that and I think this will work.  Let me know if you have further questions.

 

GIF911.gif  

 

There are two toggle visibility switches for On and Off.  Please see below for the "On" one.  I switched the Visibility State to RIGHT and then clicked the button below and selected the Lookup symbol that was turned off.

 

Capture111.PNG 




Michael M. Carlson
Senior Civil Designer
CADD Manager
AutoCAD Civil 3D Professional
AutoCAD Professional

0 Likes

jtinawin
Enthusiast
Enthusiast

I'm sorry I might have worded my post wrong. I actually wanted it to automatically switch visibility state at certain angle. I'm attaching a block I found in this forum that's close to what I want my block to do. There are two of them in this file. Both does the same, as a block, but is setup differently. I think the one on the right is easier. It uses visibility and lookup. The other is much more complex.

 

Thanks for quick response

0 Likes

Jeff_M
Consultant
Consultant
Accepted solution

@jtinawin, give this a try. It uses a Double Lookup table, which I had never done before but found THIS post that really helped. It also uses a technique I found in another post for dynamic blocks, so the attributes update correctly.

Jeff_M, also a frequent Swamper
EESignature

jtinawin
Enthusiast
Enthusiast

This is exactly how I wanted it. And this double look up is something I never came across in my search. Now that I understand how it works. Thank you!

 

But while we're at it, how do you make that "Do not edit"? "Tag: VALUE" ?

0 Likes

Jeff_M
Consultant
Consultant
Accepted solution
The Left & Right attributes use a Field to get the Value from the Invisible attribute with the Value tag. When the Value AttRef is edited, and a regen is performed, the Left & Right AttRefs will update with the value from the Value AttRef.
Jeff_M, also a frequent Swamper
EESignature

MMcCall402
Mentor
Mentor

Just another option.  This block uses a similar double lookup with the rotation but this one operates a flip action and uses a single attribute.

 

 

I too had to search around for how to make a double lookup,  Thank you Jeff_M for posting the info and providing a solution I could dissect. 

Mark Mccall 
CAD Mangler



Hammer Land Engineering


Linkedin

Jeff_M
Consultant
Consultant

Nice, @MMcCall402. I did a bit more playing with your solution. I added a second Flip action and modified the Angles in the Rotation parameter to get this:

2018-03-13_16-48-51.png

 

 

Jeff_M, also a frequent Swamper
EESignature

Jeff_M
Consultant
Consultant

I grabbed the wrong image in that last post...this should better show what my edits allow:

 

2018-03-13_16-56-53.png

Jeff_M, also a frequent Swamper
EESignature
0 Likes

MMcCall402
Mentor
Mentor

Very nice!

Mark Mccall 
CAD Mangler



Hammer Land Engineering


Linkedin

0 Likes

jtinawin
Enthusiast
Enthusiast

Very nice indeed. I wanted to go with the rotation/flip at first but i didn't like how it looks off center when flipped. I know this is because my text is angled. Any solution on this?

 

Also, just a general curiosity question to all, would any of you actually use this? I am using this now on a grading sheet.

0 Likes

Jeff_M
Consultant
Consultant
I adjusted the location of the attribute so it was at the center of the outline and it looked better.

As for me using it, not likely. I prefer to use a surface and surface labels. To have labels react similarly to this block, I use the Sincpac's labeling tool to auto-switch between label styles.

http://quuxsoft.com/SincpacC3D_Help/SP_AddLabels.htm
Jeff_M, also a frequent Swamper
EESignature
0 Likes