Author Topic: is it possible to (re)connect a field to a different object with a click?  (Read 1227 times)

0 Members and 1 Guest are viewing this topic.

boicottms

  • Mosquito
  • Posts: 2
Hallo,
how can I reconnect an object's properties' field (say area, lenght, color or whatever) to a new object? I sometimes loose the original object, or I want to duplicate an attribute/text/leader formatted and with extra text then point them to different objects without the need to insert and format it every single time.
Tahnk you

Dlanor

  • Bull Frog
  • Posts: 263
If the only thing that has changed is the reference object, then the field can be read and the objectID string within the field replaced with the new ObjectID string provided the new reference object has the same property. This would require two selections, the text/mtext entity or Attribute sub entity and the reference object to get the new ObjectID string.

There is a lisp here that I wrote a week ago that does that.

https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-to-reassociate-multiple-fields-in-one-object-block-to-point/m-p/9630140#M402278

See if that works for you
« Last Edit: July 22, 2020, 04:56:32 PM by Dlanor »

boicottms

  • Mosquito
  • Posts: 2
Thank you, I'll check it.