Results 1 to 9 of 9

Thread: Re define dynamic block retaining current visability state

  1. #1
    Member
    Join Date
    2010-06
    Posts
    45

    Red face Re define dynamic block retaining current visability state

    Hi All
    Thanks to input from the forum I have now been able to improve my dynamic block for data extraction. As yet I have only used the old version on a couple of drawings so this is not a big issue but I would like to know if it can be done.
    I inserted the "updated version" of the block saying yes to redfine the block when asked. however I found that the visability state changed on them to all being the same as the initial one in the block.

    What I would like to do is re-insert the block but retain the visability state currently chosen for each instance of the block in the drawing.
    for example
    2 smoke detectors are shown as heat
    3 detectors are shown as Optilcal

    After re-insering all blocks are now shown as heat.
    If this has to go down the route of lisp routines I will hold my hands up & say sorry I'm lost!

    Thanks for any replies

  2. #2
    Member Blackfish's Avatar
    Join Date
    2012-05
    Posts
    25

    Default Re: Re define dynamic block retaining current visability state

    What have actualy change in the new block?
    If it only geometry and number and names of visibility states are the same (and no other parametres, which have changed) in the new and the old block you can use Design Centre, right click on the new block and redefine it.
    LT is still AutoCAD

  3. #3
    Member
    Join Date
    2010-06
    Posts
    45

    Default Re: Re define dynamic block retaining current visability state

    To be honest I can't rember everything I have changed as it has taken me a while to get it all to work as I wanted.
    I think that as well as renaming the visability states I removed some attributes & may have added a rotation parameter as well. I have tried what you suggested but still it all defaults to the top visability state.

  4. #4
    Member Blackfish's Avatar
    Join Date
    2012-05
    Posts
    25

    Default Re: Re define dynamic block retaining current visability state

    Can you at least unify names of visibility states in both blocks and then try using DC again?
    LT is still AutoCAD

  5. #5
    Member
    Join Date
    2010-06
    Posts
    45

    Smile Re: Re define dynamic block retaining current visability state

    Thank you for your suggestion. I have been playing around with this & when I did the same on another drawing (just redefine) everything worked as I thought it should. I'm not sure what was differant between the two drawings!
    Auotcad can be very "odd" sometimes

    As it all working as I want it to I think I will leave well alone for now untill I really need to change something or get itchy fingers & start thinking "I wonder if I just!"
    Thanks again for your help

  6. #6
    100 Club heinsite's Avatar
    Join Date
    2005-11
    Location
    Kona, Hawaii
    Posts
    137

    Default Re: Re define dynamic block retaining current visability state

    Quote Originally Posted by lesleys View Post
    "... start thinking "I wonder if I just!"
    Whenever I do this it always just happens to be about the same time I get into trouble ~!~

    Dave.

  7. #7
    Certifiable AUGI Addict cadtag's Avatar
    Join Date
    2000-12
    Location
    Cairo - no, not Illinois
    Posts
    2,780

    Default Re: Re define dynamic block retaining current visability state

    Quote Originally Posted by heinsite View Post
    Whenever I do this it always just happens to be about the same time I get into trouble ~!~

    Dave.
    then you're doing it right! until you break software (a lot) you don't know how to use it. Expertise comes from experience, experience comes from fubars.
    Officially Awesome
    Real pirates wear silk suits & ties, and write EULAs
    The only thing more dangerous to the liberty of a free people than big government, is big business.

    http://ascelibrary.org/doi/book/10.1061/9780784412077

  8. #8
    100 Club heinsite's Avatar
    Join Date
    2005-11
    Location
    Kona, Hawaii
    Posts
    137

    Default Re: Re define dynamic block retaining current visability state

    Quote Originally Posted by cadtag View Post
    ... experience comes from fubars.
    I have my share of fubars. I don't like to travel with maps either.

    Dave

  9. #9
    I could stop if I wanted to clshade's Avatar
    Join Date
    2009-01
    Location
    B5
    Posts
    476

    Default Re: Re define dynamic block retaining current visability state

    FUBAR.
    Good one
    Charles Shade LT 2013
    www.cshadedesign.com

Similar Threads

  1. Changing a visibility state for a Dynamic Block
    By jahed.ali in forum AutoLISP
    Replies: 6
    Last Post: 2010-06-04, 05:28 AM
  2. Lock visibility state once Dynamic Block has been inserted
    By clarkrj in forum Dynamic Blocks - Technical
    Replies: 1
    Last Post: 2006-05-04, 01:24 PM
  3. Accessing Dyn Block Current Visibility State
    By bowlingbrad in forum AutoLISP
    Replies: 4
    Last Post: 2005-11-14, 01:17 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
  •