Page 1 of 2 12 LastLast
Results 1 to 10 of 15

Thread: "Hide for all visibility states except current"?

  1. #1
    AUGI Addict sinc's Avatar
    Join Date
    2004-02
    Location
    Colorado
    Posts
    1,986
    Login to Give a bone
    0

    Default "Hide for all visibility states except current"?

    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.

  2. #2
    AUGI Addict sinc's Avatar
    Join Date
    2004-02
    Location
    Colorado
    Posts
    1,986
    Login to Give a bone
    0

    Default Re: "Hide for all visibility states except current"?

    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.

  3. #3
    Retired Forum Staff Rico's Avatar
    Join Date
    2005-06
    Location
    In the hospital cuz of my fever for more cowbell
    Posts
    1,828
    Login to Give a bone
    0

    Default Re: "Hide for all visibility states except current"?

    Quote Originally Posted by richards.64879
    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.
    Attached Images Attached Images
    [SIGPIC][/SIGPIC]
    Return of the Cowbell

  4. #4
    AUGI Addict sinc's Avatar
    Join Date
    2004-02
    Location
    Colorado
    Posts
    1,986
    Login to Give a bone
    0

    Default Re: "Hide for all visibility states except current"?

    Quote Originally Posted by max.sabre
    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?

  5. #5
    Administrator Opie's Avatar
    Join Date
    2002-01
    Location
    jUSt Here (a lot)
    Posts
    9,106
    Login to Give a bone
    0

    Default Re: "Hide for all visibility states except current"?

    Quote Originally Posted by richards.64879
    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.
    If you have a technical question, please find the appropriate forum and ask it there.
    You will get a quicker response from your fellow AUGI members than if you sent it to me via a PM or email.
    jUSt

  6. #6
    Retired Forum Staff Rico's Avatar
    Join Date
    2005-06
    Location
    In the hospital cuz of my fever for more cowbell
    Posts
    1,828
    Login to Give a bone
    0

    Default Re: "Hide for all visibility states except current"?

    Quote Originally Posted by Opie
    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.
    [SIGPIC][/SIGPIC]
    Return of the Cowbell

  7. #7
    AUGI Addict sinc's Avatar
    Join Date
    2004-02
    Location
    Colorado
    Posts
    1,986
    Login to Give a bone
    0

    Default Re: "Hide for all visibility states except current"?

    Quote Originally Posted by Opie
    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?

  8. #8
    Retired Forum Staff Rico's Avatar
    Join Date
    2005-06
    Location
    In the hospital cuz of my fever for more cowbell
    Posts
    1,828
    Login to Give a bone
    0

    Default Re: "Hide for all visibility states except current"?

    Quote Originally Posted by richards.64879
    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.
    [SIGPIC][/SIGPIC]
    Return of the Cowbell

  9. #9
    AUGI Addict sinc's Avatar
    Join Date
    2004-02
    Location
    Colorado
    Posts
    1,986
    Login to Give a bone
    0

    Default Re: "Hide for all visibility states except current"?

    Quote Originally Posted by max.sabre
    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?

  10. #10
    Retired Forum Staff Chris.N's Avatar
    Join Date
    2001-12
    Location
    Rochester, MN
    Posts
    2,561
    Login to Give a bone
    0

    Default Re: "Hide for all visibility states except current"?

    Quote Originally Posted by richards.64879
    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.
    Sometimes, i get lost in my own thoughts and need to ask directions to find my way back.
    S&D DB Sharing Forum

Page 1 of 2 12 LastLast

Similar Threads

  1. importing layer states via "layerstate-import" function
    By kmayhew936033 in forum AutoLISP
    Replies: 10
    Last Post: 2011-09-30, 08:02 AM
  2. Can scripts be used to apply "Saved Layer States"
    By rdomke69 in forum AutoCAD General
    Replies: 2
    Last Post: 2008-01-24, 12:58 PM
  3. Replies: 3
    Last Post: 2005-06-29, 02:01 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •