Code Question

Discussion in 'AutoCAD' started by Mark Douglas, Jan 7, 2004.

  1. Mark Douglas

    Mark Douglas Guest

    I am wondering if anyone knows a way to accomplish a code what Updates with
    a Dimension.
    Simple Example:

    Say I have a Dimension that reads 10'-0"

    And I have a object above it

    Is there a way to Have like a string of code do..."10'-0" + 6" / 2....And so
    on

    Then have the reading above it Adjust when ever the Dimension Increases or
    Decreases?

    The reason why is we have a code that Gets the Length of a Dimension and
    passes that number through a Code and Writes it to a Block attribute. Is
    there a way to have this Automatically Update when the Dimension Changes?

    Any help would be much appreciated!!!

    Thanks

    Mark
     
    Mark Douglas, Jan 7, 2004
    #1
  2. Mark Douglas

    ECCAD Guest

    Now don't ask me to code it, but you could add another attrib to the 'block' - hidden, take the DimText, get handle, stuff it in the block attrib. To syncronize, do a routine that gets the 'block', extract the Handle, Get the object with the Handle,
    and update it.
    I do a trick like this for linking Device ID's to Comments - keeps them in sync.
    Just a thought.
    Bob
     
    ECCAD, Jan 7, 2004
    #2
  3. Mark Douglas

    Mark Douglas Guest

    Ha Ha Ha...Bob Yes you have helped me out A LOT....I was just wondering if
    there is some way to accomplish it...I'll look into it..

    Mark

    'block' - hidden, take the DimText, get handle, stuff it in the block
    attrib. To syncronize, do a routine that gets the 'block', extract the
    Handle, Get the object with the Handle,
     
    Mark Douglas, Jan 7, 2004
    #3
  4. Mark Douglas

    Mark Douglas Guest

    Ok...this seems a little Advanced for my programming skills....haha
    Mark
     
    Mark Douglas, Jan 7, 2004
    #4
Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.