Announcements
Attention for Customers without Multi-Factor Authentication or Single Sign-On - OTP Verification rolls out April 2025. Read all about it here.

Text field origin

byoungLW6M5
Enthusiast

Text field origin

byoungLW6M5
Enthusiast
Enthusiast

I am new to the use of fields. I was given a project with drawings spread across into about 50 different subfolders. I am opening up drawings with a sheet set as well as by themselves, containing text fields. Some of them have hash tags, some of the have dashes instead of the real text. How can I tell what drawings or where the field is supposed to be reading from, so I can somehow reconnect it?

0 Likes
Reply
465 Views
3 Replies
Replies (3)

VincentSheehan
Advisor
Advisor

Could you search or zoom to the object based on the Object ID shown the field expression?

 

Field.png

 

 

 

 

Vincent Sheehan

Sr. Civil Designer
Poly In 3D Blog

0 Likes

paullimapa
Mentor
Mentor

checkout this thread which includes Lee Mac's code to take a Field to get the entity:

https://www.theswamp.org/index.php?topic=38694.0

(defun Field->Entity ( en )
  (cond
    (
      (and
        (wcmatch (cdr (assoc 0 (setq en (entget en)))) "TEXT,MTEXT,ATTRIB")
        (setq en (cdr (assoc 360 en)))
        (setq en (dictsearch en "ACAD_FIELD"))
        (setq en (dictsearch (cdr (assoc -1 en)) "TEXT"))
        (setq en (cdr (assoc 360 en)))
        (setq en (cdr (assoc 331 (entget en))))
      )
      en
    )
  )
)

Paul Li
IT Specialist
@The Office
Apps & Publications | Video Demos

TomBeauford
Collaborator
Collaborator

Lee Mac's cleaned up code with a video demo at the bottom of the page.

https://www.lee-mac.com/fieldobjects.html

64bit AutoCAD Map & Civil 3D 2023
Architecture Engineering & Construction Collection
2023
Windows 10 Dell i7-12850HX 2.1 Ghz 12GB NVIDIA RTX A3000 12GB Graphics Adapter
0 Likes