See the top rated post in this thread. Click here

Page 2 of 2 FirstFirst 12
Results 11 to 18 of 18

Thread: Keep attribute properties when updating blocks

  1. #11
    Administrator Opie's Avatar
    Join Date
    2002-01
    Location
    jUSt Here (a lot)
    Posts
    9,105
    Login to Give a bone
    2

    Default Re: Keep attribute properties when updating blocks

    Quote Originally Posted by jaberwok View Post
    Yes, all within one session.
    Here is a file with two instances of the block and a copy of the revised block and my copy of your code.
    See the revised code for the RestoreAttColors above.
    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

  2. #12
    Certified AUGI Addict jaberwok's Avatar
    Join Date
    2000-12
    Location
    0,0,0 The Origin
    Posts
    8,570
    Login to Give a bone
    1

    Default Re: Keep attribute properties when updating blocks

    Quote Originally Posted by Opie View Post
    See the revised code for the RestoreAttColors above.
    Superb! Exactly what I needed. Thanks again.

  3. #13
    Member
    Join Date
    2012-05
    Location
    Planet Earth
    Posts
    10
    Login to Give a bone
    0

    Default Re: Keep attribute properties when updating blocks

    @Opie

    Would that be possible to tweak your code in order to preserve attributes width factor as well as (or instead of) its color?

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

    Default Re: Keep attribute properties when updating blocks

    Yes. The calls to the sub-routines included in each save / restore routine would need to be modified to save and restore the ScaleFactor of each attribute.
    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

  5. #15
    Certified AUGI Addict jaberwok's Avatar
    Join Date
    2000-12
    Location
    0,0,0 The Origin
    Posts
    8,570
    Login to Give a bone
    0

    Default Re: Keep attribute properties when updating blocks

    A follow-up - this also works when using ATTSYNC.

    good stuff.

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

    Default Re: Keep attribute properties when updating blocks

    Glad to hear this works for that situation, too.
    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

  7. #17
    Certified AUGI Addict jaberwok's Avatar
    Join Date
    2000-12
    Location
    0,0,0 The Origin
    Posts
    8,570
    Login to Give a bone
    0

    Default Re: Keep attribute properties when updating blocks

    I'm sooo glad this is still here. I suffered a disastrous HD crash.
    This time I've also saved it to an external drive.

    [and immediately after that post my ISP connection disappeared for the night. ]
    Last edited by jaberwok; 2016-05-24 at 08:49 AM.

  8. #18
    Certified AUGI Addict jaberwok's Avatar
    Join Date
    2000-12
    Location
    0,0,0 The Origin
    Posts
    8,570
    Login to Give a bone
    0

    Default Re: Keep attribute properties when updating blocks

    @Opie.

    Four years later and I still use these routines every week.

    Great stuff.

Page 2 of 2 FirstFirst 12

Similar Threads

  1. 2015: Field in an Attribute not updating
    By derek.96018 in forum AutoCAD Customization
    Replies: 5
    Last Post: 2015-09-09, 05:06 PM
  2. Updating blocks nested within Dynamic Blocks
    By mattr.143859 in forum Dynamic Blocks - Technical
    Replies: 1
    Last Post: 2009-09-30, 04:14 PM
  3. Updating blocks nested within Dynamic Blocks
    By mattr.143859 in forum CAD Management - General
    Replies: 1
    Last Post: 2009-09-28, 01:09 PM
  4. Replies: 11
    Last Post: 2007-05-17, 06:56 AM
  5. updating attribute text
    By thomas_raftery in forum AutoCAD General
    Replies: 4
    Last Post: 2005-04-25, 03:24 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
  •