Lisp that copies Link Template to Object data

Lisp that copies Link Template to Object data

BriamR
Advocate Advocate
738 Views
5 Replies
Message 1 of 6

Lisp that copies Link Template to Object data

BriamR
Advocate
Advocate

Hi Autodesk Community!

 

I would like to know if it is possible to copy or transfer the content of the link template of selected elements to a specific data object.
The selected objects can be polylines and hatches or blocks.

 

Below I show a graphic example of what I would like to know if it is possible.
In the following image I have selected a graphic element made up of polyline and hatch drawing; the Object Data and Link Template have the same name SDM_DEM_DEMARCACION

BriamR_0-1624582311854.png

And in this last graphic example that I show I have the drawing of a selected block which has the Object Data and Link Template with the same name SDM_SEN_SENALIZACION

BriamR_1-1624582329987.png

I have researched in the autodesk forums, but I still can't get anything accurate to what I post in this post.

https://forums.autodesk.com/t5/autocad-map-3d-forum/transfer-link-template-data-to-object-data/td-p/...

https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/tblsearch-link-template/m-p/2041898#...

 

Thanks in advance for your help time.

739 Views
5 Replies
Replies (5)
Message 2 of 6

BriamR
Advocate
Advocate

Theme update: The Geotools tool https://thedesignsense.com/geo-tools/ has the GT_DB2OD command that says transfer database linked data (Link Template) to object data; the personal drawback is that it is licensed and not freely distributed.
I appreciate your attention and help in advance.

Message 3 of 6

braudpat
Mentor
Mentor

Hello

 

Have you many Links to copy into OD ?

 

Because the "XDA" routine from Gilles (gile) let you copy the Xdata Info

and then you can paste the Info into a String OD Field ...

But it is ONE BY ONE object and ONE BY ONE XData Info ...

 

The "XDA" routine comes from this interesting Topic :

https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/programs-for-xdata/td-p/10423416

 

The Health, Bye, Patrice

 

Patrice ( Supporting Troops ) - Autodesk Expert Elite
If you are happy with my answer please mark "Accept as Solution" and if very happy please give me a Kudos (Felicitations) - Thanks

Patrice BRAUD

EESignature


Message 4 of 6

BriamR
Advocate
Advocate

Hi @braudpat , thank you very much for answering this post; Regarding "Have you many Links to copy into OD?", I tell you that in most cases there are always a considerable amount of Database Linked Data (Link Template) that I must transfer to the Object Data, that is, I must recover that information en masse because it is large volume of drawing.


Note: "XD" is a great routine, but in this case I would not know how to use it for this case, I tried it and could not understand it to apply it in terms of transferring Database Linked Data (Link Template) to Object Data.

 

Greetings, and thanks in advance for your contribution.

0 Likes
Message 5 of 6

BriamR
Advocate
Advocate

Update topic: Annex to the post .dwg and .mdb files examples of what I want to do in a routine (lisp), I appreciate your help in advance.

image.thumb.png.b988533bc6583bb0cd810fc454e9b7ef.png

image.png.fe23aaf1f9aacedca588a0e3e25a109d.png

  

Message 6 of 6

kyrojas2696
Explorer
Explorer
Hi! @BriamR It is important that if you get a solution for your question, you share it, thank you. I could apply your case to optimize some of my work processes. greetings to all