+ Reply to Thread
Results 1 to 2 of 2
  1. #1
    Junior Member
    Using
    not specified
    Join Date
    Dec 2004
    Posts
    11

    Default Linking text box to attribute value (AutoLISP, VBA or...?)

    Registered forum members do not see this ad.

    Hi All,

    I'd like some help with linking text boxes to attribute values.

    My plan:
    Layout Tab 1: I have an attribute in my title block, tag=Client_Name, value = "ABC Corp".

    Layout Tab 2: I'd like to display this attribute value "ABC Corp." in a text box in Layout Tab 2. It should read the value and update the text box every time I Save (or some other easy trigger for the code--of course dynamically updating would be nice!).

    (I actually have several attributes in the title block I'd like to do this for...just wanted to keep the example simple.)

    I admittedly barely know any LISP, but know some VBA and if someone could point me in the right direction, I think I could figure it out in either language. (or if Fields, Diesel, and/or RTEXT could be used, I'm open to that).

    Thanks for your help!

    Scott
    Win XP Pro
    Autocad 2005

  2. #2
    Senior Member
    Using
    not specified
    Join Date
    Sep 2005
    Location
    Brisbane, Australia
    Posts
    318

    Default

    Registered forum members do not see this ad.

    This could be done using VBA...in the thisdrawing event you could trap the save or drawing close command and run your code there...

    But have a look at RTEXT or Have a look at this thread --> AutoText (Filename in AutoCAD) question

Bookmarks

Posting Permissions

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