Community
Civil 3D Forum
Welcome to Autodesk’s Civil 3D Forums. Share your knowledge, ask questions, and explore popular AutoCAD Civil 3D topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Need Help with Dynamic Block

11 REPLIES 11
SOLVED
Reply
Message 1 of 12
jtinawin
579 Views, 11 Replies

Need Help with Dynamic Block

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.

11 REPLIES 11
Message 2 of 12
Mike.M.Carlson
in reply to: jtinawin

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

Message 3 of 12
jtinawin
in reply to: Mike.M.Carlson

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

Message 4 of 12
Jeff_M
in reply to: jtinawin

@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
Message 5 of 12
jtinawin
in reply to: Jeff_M

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" ?

Message 6 of 12
Jeff_M
in reply to: jtinawin

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
Message 7 of 12
MMcCall402
in reply to: jtinawin

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

Message 8 of 12
Jeff_M
in reply to: MMcCall402

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
Message 9 of 12
Jeff_M
in reply to: Jeff_M

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
Message 10 of 12
MMcCall402
in reply to: Jeff_M

Very nice!

Mark Mccall 
CAD Mangler



Hammer Land Engineering


Linkedin

Message 11 of 12
jtinawin
in reply to: MMcCall402

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.

Message 12 of 12
Jeff_M
in reply to: jtinawin

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

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Rail Community


Autodesk Design & Make Report