PDA

View Full Version : "Hide for all visibility states except current"?



sinc
2006-02-23, 08:50 PM
I'm trying to create a Dynamic Block with a lot of states. Essentially, there are four text objects that change in every state.

What I started doing is copying the four text fields, and changing them to say what I want in the current visibility state. Then I select them all, and choose "Hide for all states". Then I select them all again, and choose "Show in current state". Change to the next visibility state, and repeat the process.

This process is pretty annoying. Is there a better way? Just having an option to "Hide in all states except current" would be much nicer.

sinc
2006-02-23, 09:07 PM
Ahh... I think I figured it out.

I've discovered that new objects are, by default, visible in the current state only. So, by creating all states to start with, everything works OK.

I make it so I can see things that are invisible in the current state. I create the four text objects in the first state. Switch to the next state. The text objects are invisible in this state. All I need to do is select and copy them with no displacement; the copies are visible in the current state. Change them to say what I want for the current state. Go on to the next state... and so on.

Rico
2006-02-24, 02:03 PM
Ahh... I think I figured it out.

I've discovered that new objects are, by default, visible in the current state only. So, by creating all states to start with, everything works OK.

I make it so I can see things that are invisible in the current state. I create the four text objects in the first state. Switch to the next state. The text objects are invisible in this state. All I need to do is select and copy them with no displacement; the copies are visible in the current state. Change them to say what I want for the current state. Go on to the next state... and so on.
You can hoose to do that, except, from what I understand, you're copying items into the new states. If you have 3 attributes per state, that means you have 12 different attributes divided among 4 states. Why not just leave the same attributes and make them visible and invisible to the current state depending on what you need?

I've attached a picture. Play with the buttons I've got circled and see what they can do. It's certainly better than copying the same text strings and object and pasting. Makes editing easier.

Maybe I've misunderstood and you already know how to use them. If so, no offense or nothing.

sinc
2006-02-24, 03:18 PM
You can hoose to do that, except, from what I understand, you're copying items into the new states. If you have 3 attributes per state, that means you have 12 different attributes divided among 4 states. Why not just leave the same attributes and make them visible and invisible to the current state depending on what you need?

I'm not exactly sure what you are saying...

I have 4 text items in the block. Not attributes, just text. The text in all four items changes, and is different in each visibility state.

The only way I've figured out to do this is to create text items in each visibility state. So, for example, the text in the bottom center says "Foo" in state 1. The same text says "Bar" in state 2, etc.

Is there some other way of having text change from visibility state to visibility state? Like use an attribute, but have the value of the attribute change as visibility state changes?

Opie
2006-02-24, 03:39 PM
I'm not exactly sure what you are saying...

I have 4 text items in the block. Not attributes, just text. The text in all four items changes, and is different in each visibility state.

The only way I've figured out to do this is to create text items in each visibility state. So, for example, the text in the bottom center says "Foo" in state 1. The same text says "Bar" in state 2, etc.

Is there some other way of having text change from visibility state to visibility state? Like use an attribute, but have the value of the attribute change as visibility state changes?
You could place the value of the visibility state in the attribute. A regen or update of the field would update the text. This may be able to be updated through a lookup table as well. I have not used them yet.

Rico
2006-02-24, 03:56 PM
You could place the value of the visibility state in the attribute. A regen or update of the field would update the text. This may be able to be updated through a lookup table as well. I have not used them yet.
yep. that's right.

Either that, or use a text field (text attribute?) and edit it depending on the vis state it's in. I'm just thinking that as far as editing DBs goes, it's easier if you reduce the amount of lines and text as much as possible. It also makes a difference in drawing size I imagine.

sinc
2006-02-24, 03:58 PM
You could place the value of the visibility state in the attribute. A regen or update of the field would update the text. This may be able to be updated through a lookup table as well. I have not used them yet.
That makes basically no sense to me.

What does "place the value of the visibility state in the attribute" mean? Where do I enter all the possible values of the text?

Rico
2006-02-24, 04:08 PM
That makes basically no sense to me.

What does "place the value of the visibility state in the attribute" mean? Where do I enter all the possible values of the text? Post your drawing. We'll show you what we mean.

sinc
2006-02-24, 04:19 PM
Post your drawing. We'll show you what we mean.
It's basically the same situation as the Drawing Scale block that comes with Autocad.

Opening up that block, they created a lot of different text objects, and selectively set individual text objects to be visible in the correct visibility states.

How would you make a version of the Drawing Scale dynamic block that used only one set of attributes, instead of all those individual text objects?

Chris.N
2006-02-24, 04:41 PM
That makes basically no sense to me.

What does "place the value of the visibility state in the attribute" mean? Where do I enter all the possible values of the text?via the use of 'fields' that are placed in attributes instead of regular text.

Chris.N
2006-02-24, 04:50 PM
It's basically the same situation as the Drawing Scale block that comes with Autocad.

Opening up that block, they created a lot of different text objects, and selectively set individual text objects to be visible in the correct visibility states.

How would you make a version of the Drawing Scale dynamic block that used only one set of attributes, instead of all those individual text objects?oh, for that.... i hadn't figured it out yet either and had to use regular text..... it's an excercise in patience and sanity for the scale block..... all i can suggest is to not duplicate if you don't have to. (same graphic scale bar, different text)
hmmm, i thought i submitted my view title in the 'Sharing...." thread, but can't see anything in my attachments...

ok, i just posted it in the 'Sharing....' thread, and here's the link to my version drawing scale block with the view marker

Rico
2006-02-28, 02:16 PM
It's basically the same situation as the Drawing Scale block that comes with Autocad.

Opening up that block, they created a lot of different text objects, and selectively set individual text objects to be visible in the correct visibility states.

How would you make a version of the Drawing Scale dynamic block that used only one set of attributes, instead of all those individual text objects?
I wonder if you could do the drawing scale using a lookup table and associated dimensions with a couple of stretch parameters .......

rkmcswain
2007-12-03, 05:31 PM
I've discovered that new objects are, by default, visible in the current state only. So, by creating all states to start with, everything works OK.


I still think a command to do this is needed.

Better yet, I would like to see some sort of grid/array control where you could select multiple objects and toggle their visibility state on a per-state basis - without having to graphically do it on the screen (and at one visibility state at a time....)

Chris.N
2007-12-03, 05:55 PM
I still think a command to do this is needed.

Better yet, I would like to see some sort of grid/array control where you could select multiple objects and toggle their visibility state on a per-state basis - without having to graphically do it on the screen (and at one visibility state at a time....)
now that would just plain rock! i'd love to see that dialog box created!

rkmcswain
2007-12-03, 06:44 PM
I'm pretty sure it's on the wishlist... unfortunately, it will never make the top ten....