TheSwamp

CAD Forums => CAD General => Dynamic Blocks => Topic started by: kim on June 05, 2007, 06:22:53 PM

Title: Visibility states - I don't get it
Post by: kim on June 05, 2007, 06:22:53 PM
 :ugly: I feel like a retard when it comes to dynamic blocks.  I just took and AUGI Cad Camp in Denver and learned alot about them, but this whole visibility thing is really getting on my nerves.  I am sure there is something really simple that I am overlooking here, but I am simply trying to create an elevation symbol block that I can have the top and bottom text showing, just the top text, or just the bottom text.  I created the block and the visibility states and it inserts fine but when I pick the grip to change the visibility, it just stays the same. What am I missing?

(Jonesy - edited thread title for future searches)
Title: Re: Visibility states - I don't get it
Post by: Birdy on June 05, 2007, 09:27:41 PM
In the dblock editor, you have to select what you want visible, and invisible, for each state.
Try toggling the visibility mode button. (highlighted).
The example shown is actually about a half dozen or so arrows all piled up on one another.  For each visibility state, only ONE is visible, the rest are set to invisible.

Not sure if this helps, but hopefully it's a start.

(Jonesy - edited thread title for future searches)
Title: Re: Visibility states - I don't get it
Post by: Mr Cory on June 06, 2007, 01:27:04 AM
Beautifully put Jim, also when you are in the b/editor if you select the text and right click, down the bottom there is a flyout for the selected object/s visibility.


(Jonesy - edited thread title for future searches)
Title: Re: Visibility states - I don't get it
Post by: kim on June 06, 2007, 10:24:46 AM
So are you saying that i need to have three blocks piled on top of each other?  I have three visibility states, one for both on, top only, and bot only, in each one i chose which line i wanted to be invisible. Can this not be done with just one block?
I am attaching an example of the result I am looking for. Thanks for the help
Title: Re: Visibility states - I don't get it
Post by: daron on June 06, 2007, 10:51:10 AM
No. You can set three states. One where everything is on. One where the top text is invisible and one where the bottom text is invisible. I'll look at the example.
Title: Re: Visibility states - I don't get it
Post by: daron on June 06, 2007, 11:01:22 AM
Of course, now that I look at it, attributes are a bit difficult to work with when it comes to Dynablocks. Your best bet is to just not have text in the attribute if you want it invisible. I think that was what the all knowing programmers at Autodesk were thinking when they made that bug... er, feature. Of course, they never think that someone might actually want the ability to do that. I'm using 2008, so in case you're not and were hoping it would be fixed in 2008, it's not.
Title: Re: Visibility states - I don't get it
Post by: David Hall on June 06, 2007, 11:14:53 AM
ditto, we tried to use Dyn blks w/ attributes, but found it impossible
Title: Re: Visibility states - I don't get it
Post by: kim on June 06, 2007, 11:46:38 AM
Great! Thanks! At least now I won't waste any more time on it.  I am using 2008 also, those guys at Augi made these look so easy so I was trying to turn some of my old wblocks into dynamic blocks. Thanks for the help.
Title: Re: Visibility states - I don't get it
Post by: whdjr on June 06, 2007, 01:53:41 PM
Of course, now that I look at it, attributes are a bit difficult to work with when it comes to Dynablocks. Your best bet is to just not have text in the attribute if you want it invisible. I think that was what the all knowing programmers at Autodesk were thinking when they made that bug... er, feature. Of course, they never think that someone might actually want the ability to do that. I'm using 2008, so in case you're not and were hoping it would be fixed in 2008, it's not.

ditto, we tried to use Dyn blks w/ attributes, but found it impossible

I'm not sure what you guys are smoking but we have tons of dynamic blocks with attributes.  What issues are you currently having?
Title: Re: Visibility states - I don't get it
Post by: Birdy on June 06, 2007, 02:37:37 PM
So do we. (well, not tons...) but none of the attributes have visibility states.
Title: Re: Visibility states - I don't get it
Post by: daron on June 06, 2007, 02:45:19 PM
The issue with this was that you couldn't change the visibility state of an attribute. Maybe it's possible, maybe it's not. I tried it only once on his drawing and it didn't work. Will, if you have a block that allows the toggling of visibility states, please, lend a tutorial or the block so we can dissect it.
Title: Re: Visibility states - I don't get it
Post by: LE on June 06, 2007, 02:54:52 PM
I'm not sure what you guys are smoking but we have tons of dynamic blocks with attributes.  What issues are you currently having?

 :oops: I only have done one and use it and that's it..... for windows in plan view....   :cry:
Title: Re: Visibility states - I don't get it
Post by: Mr Cory on June 06, 2007, 04:40:27 PM
Im with Will on this one, i have a table made form dynamic blocks that uses attribute, and i have a different vis state for the amount of line required, they hide fine. Just note that the attributes need to have different tags and names, otherwise thats when you get your problems
Title: Re: Visibility states - I don't get it
Post by: ronjonp on June 06, 2007, 05:13:00 PM
I'd like to see an example too....I could not get her block to work.
Title: Re: Visibility states - I don't get it
Post by: Mr Cory on June 06, 2007, 05:20:58 PM
You need to change the attributes to "lock position"

Dynamic blocks wont touch attributes that arent, id say that is where alot of problems are coming from. If you need them to be moved around freely create a point param with a move
Title: Re: Visibility states - I don't get it
Post by: Mr Cory on June 06, 2007, 05:33:34 PM
Great! Thanks! At least now I won't waste any more time on it.  I am using 2008 also, those guys at Augi made these look so easy so I was trying to turn some of my old wblocks into dynamic blocks. Thanks for the help.

Kim, you had set your block up perfectly you difinatly heading in the right direction :-) Just select all your attributes and under the properties change "lock in position" from no to yes, youll be sweet
Title: Re: Visibility states - I don't get it
Post by: kim on June 06, 2007, 05:39:32 PM
That did it!! Thank you so much!
Title: Re: Visibility states - I don't get it
Post by: Mr Cory on June 06, 2007, 05:41:22 PM
Happy to help  :-)
Title: Re: Visibility states - I don't get it
Post by: daron on June 06, 2007, 05:42:13 PM
I tried to lock them. That didn't work either.
Title: Re: Visibility states - I don't get it
Post by: Mr Cory on June 06, 2007, 05:48:45 PM
In kim's block or your own?
Title: Re: Visibility states - I don't get it
Post by: kim on June 06, 2007, 05:58:18 PM
Mine didn't work at first but I erased all the existing one's out of my drawing and re-inserted it and it worked fine. 
Title: Re: Visibility states - I don't get it
Post by: Mr Cory on June 06, 2007, 06:01:19 PM
Sorry i should of mentioned that tanks Kim, you need to re-insert the block for it to work, once a block is inserted with attributes they are set as they are, so if you change the attributes in block editor the attributes of the blocks already inserted wont take on the new changes
Title: Re: Visibility states - I don't get it
Post by: ronjonp on June 06, 2007, 06:13:40 PM
You need to change the attributes to "lock position"

Dynamic blocks wont touch attributes that arent, id say that is where alot of problems are coming from. If you need them to be moved around freely create a point param with a move

I thought that only applied to move\stretch parameters? With visibility states it has no effect.....unless I'm missing something obvious.

Ron
Title: Re: Visibility states - I don't get it
Post by: Mr Cory on June 06, 2007, 06:17:16 PM
I believe its the same for vis states, it worked fine @ my end and thats all i had to do

Kim, what in the point parameter for?
Title: Re: Visibility states - I don't get it
Post by: ronjonp on June 06, 2007, 06:19:18 PM
In the block editor it works over here...but when you go back into modelspace and test it, they are always on??
Title: Re: Visibility states - I don't get it
Post by: Mr Cory on June 06, 2007, 06:21:14 PM
O i c, you'll need to insert it again,
Sorry i should of mentioned that tanks Kim, you need to re-insert the block for it to work, once a block is inserted with attributes they are set as they are, so if you change the attributes in block editor the attributes of the blocks already inserted wont take on the new changes
Title: Re: Visibility states - I don't get it
Post by: ronjonp on June 06, 2007, 06:22:20 PM
When in doubt....reinsert  :-D
Title: Re: Visibility states - I don't get it
Post by: Mr Cory on June 06, 2007, 06:25:17 PM
Haha exactly! Dont forget "resetblock" it doesnt apply in this case but its quite handy when dealing with parameters, not so much attributes
Title: Re: Visibility states - I don't get it
Post by: ronjonp on June 06, 2007, 06:32:36 PM
It would be nice to have a "Insert Attribute Text Parameter" then you could create a visibility parameter that filled in the attributes with predefined text rather than stacking multiple text objects on each other.
Title: Re: Visibility states - I don't get it
Post by: kim on June 06, 2007, 06:33:49 PM
The point perameter was just so I could see if I could make it work.  I wanted to test out the multiple insertion point thing (the ctrl key toggles through them) because sometimes on a detail the elevation is on the left and sometimes its on the right.  I can toggle through the insertion points if I just insert the block from the pull-down menu, but if I drag the block to a palette and then insert it, it won't toggle through the insertion points. Is there a way to get past that?
Title: Re: Visibility states - I don't get it
Post by: Birdy on June 06, 2007, 06:36:38 PM
BTW,

Welcome to TheSwamp Kim!
Title: Re: Visibility states - I don't get it
Post by: Mr Cory on June 06, 2007, 06:49:14 PM
It would be nice to have a "Insert Attribute Text Parameter" then you could create a visibility parameter that filled in the attributes with predefined text rather than stacking multiple text objects on each other.

You can type text into a lookup and use a attribute with a field linked to the lookup. Is that what you are meaning?

The point perameter was just so I could see if I could make it work.  I wanted to test out the multiple insertion point thing (the ctrl key toggles through them) because sometimes on a detail the elevation is on the left and sometimes its on the right.  I can toggle through the insertion points if I just insert the block from the pull-down menu, but if I drag the block to a palette and then insert it, it won't toggle through the insertion points. Is there a way to get past that?

O yup, if you click on the tool it will work instead of dragging the tool into your work space
Title: Re: Visibility states - I don't get it
Post by: ronjonp on June 06, 2007, 07:06:07 PM
I think that's what I'm looking for.....mind posting an example? :wink:
Title: Re: Visibility states - I don't get it
Post by: Mr Cory on June 06, 2007, 07:09:39 PM
Not at all  :-) Heres one http://forums.augi.com/showthread.php?t=62127 (http://forums.augi.com/showthread.php?t=62127) , Let me know if you need anymore or an explaination  :-)
Title: Re: Visibility states - I don't get it
Post by: ronjonp on June 06, 2007, 07:15:37 PM
You mind posting it here? It won't let me access it without creating an account.

Thanks,

Ron
Title: Re: Visibility states - I don't get it
Post by: Mr Cory on June 06, 2007, 07:19:13 PM
:-o i think this is the right drawing lol
Title: Re: Visibility states - I don't get it
Post by: Mr Cory on June 06, 2007, 07:19:53 PM
Yeap that one uses the lookup to control the room names
Title: Re: Visibility states - I don't get it
Post by: ronjonp on June 07, 2007, 10:23:51 AM
Thanks Mr Cory :)
Title: Re: Visibility states - I don't get it
Post by: whdjr on June 07, 2007, 10:37:24 AM
:-o i think this is the right drawing lol

That's an interesting concept Mr. Cory.  It seems you got it all worked out.
Title: Re: Visibility states - I don't get it
Post by: kim on June 07, 2007, 11:02:48 AM
The lookup perameter has escaped me altogether.  :oops: I don't understand that one either.
Title: Re: Visibility states - I don't get it
Post by: Kate M on June 07, 2007, 01:10:59 PM
You mind posting it here? It won't let me access it without creating an account.

It's AUGI...just join already. :-D
Title: Re: Visibility states - I don't get it
Post by: Kate M on June 07, 2007, 01:13:00 PM
The lookup perameter has escaped me altogether.  :oops: I don't understand that one either.

Don't worry, Kim, it takes a while to get your head around DBs. Ellen Finkelstein wrote a nice series of articles on them that you can find here (http://www.autodesk.com/autocad-blocks), and they were a big help to me when I was getting started with them.
Title: Re: Visibility states - I don't get it
Post by: ronjonp on June 07, 2007, 01:25:45 PM
You mind posting it here? It won't let me access it without creating an account.

It's AUGI...just join already. :-D

I try to minimize my accounts on the internet...PLUS..I get about 99% of my CAD questions answered here in less than 1/2 an hour  :-P
Title: Re: Visibility states - I don't get it
Post by: Mr Cory on June 07, 2007, 05:15:52 PM
Yeah, i use this method alot, saves alot of time. Like lintels for instance, save having to type in the size everytime.

Well first off you need to create a lookup parameter and action, dble click the action which will open the dialog box, this is where you input your data. the right column is the options that will appear in the drop down list. The left is for the values of the parameters that you 'attach' to the lookup. In this case you dont want to attach any parameters, you ust want to fill in the option for the drop down list (right column).

Once you have done that you need to create a attribute, in the default insert a feild, select blockplaceholder. Next select the lookup parameter in the middle column. Then select any additional formatting you want. Then go accept everything. Place the attribute. save your block and insert it again. to  change what the attribute is displaying, use the drop down list then regen.

Hope this helps, let me know if you having trouble
Title: Re: Visibility states - I don't get it
Post by: ELOQUINTET on June 27, 2007, 07:26:19 PM
hey guys i don't get in here as much as i used to and when i do i don't get a chance to browse as i usually have my own problem i'm trying to get resolved. anyway i was just reading through this thread and wanted to inform those who are using 2008 in case you didn't know that there is now a redefine in the right click menu in tool palettes that will update instances of blocks in the drawing. i think this will help with the reinserting problem although i haven't tested it out. i have really been wanting to figure out the lookup parameter so i will have to take a look at the example.
Title: Re: Visibility states - I don't get it
Post by: Mr Cory on June 27, 2007, 07:30:15 PM
Hay Dan, thats a cool feature, does it set define the attributes? Or just the block line work etc?
Title: Re: Visibility states - I don't get it
Post by: ELOQUINTET on July 03, 2007, 08:35:36 AM
like i say i haven't had much time to get deep into it to say what it does and doesn't do exactly just wanted to point it out so maybe others can play with it.
Title: Re: Visibility states - I don't get it
Post by: kim on July 03, 2007, 04:32:14 PM
Yeah, i use this method alot, saves alot of time. Like lintels for instance, save having to type in the size everytime.

Well first off you need to create a lookup parameter and action, dble click the action which will open the dialog box, this is where you input your data. the right column is the options that will appear in the drop down list. The left is for the values of the parameters that you 'attach' to the lookup. In this case you dont want to attach any parameters, you ust want to fill in the option for the drop down list (right column).

Once you have done that you need to create a attribute, in the default insert a feild, select blockplaceholder. Next select the lookup parameter in the middle column. Then select any additional formatting you want. Then go accept everything. Place the attribute. save your block and insert it again. to  change what the attribute is displaying, use the drop down list then regen.

Hope this helps, let me know if you having trouble
Okay, I am having trouble! :? I finally figured out the lookup thing (for the most part), but I don't quite understand the purpose of the field, (which by the way, I haven't learned about fields yet either, other than just experimenting with them). When I go to insert a field and pick blockplaceholer, I get a message that says "invalid field code". 
Title: Re: Visibility states - I don't get it
Post by: Mr Cory on July 03, 2007, 04:39:02 PM
Are you inserting the fielf into mtext or a attribute that wasnt created in the block editor? Could you post a screen shot?
Title: Re: Visibility states - I don't get it
Post by: kim on July 03, 2007, 04:42:53 PM
Nevermind, I think I spoke too soon, I think I got it now....thanks!
Title: Re: Visibility states - I don't get it
Post by: Mr Cory on July 03, 2007, 04:43:30 PM
Glad you got it to work  :-)