Lisp for creating Multileader from object Extended Data

Lisp for creating Multileader from object Extended Data

TourajM
Enthusiast Enthusiast
1,485 Views
18 Replies
Message 1 of 19

Lisp for creating Multileader from object Extended Data

TourajM
Enthusiast
Enthusiast

Hi Dears,

I am a Land Surveyor, and in our daily work, we generate several CAD files. For example (File 2026-org.dwg) has lines, polylines, and blocks with attributes. Most of these objects have Extended Data, and we need to project these Data on the map; we manually use Multileader as shown in (file 2026.dwg). I am looking for a program or a lisp that can automate this progress and save much of our time. I would highly appreciate it if anyone could help me in this matter.

Best Regards,

0 Likes
Accepted solutions (1)
1,486 Views
18 Replies
Replies (18)
Message 2 of 19

pbejse
Mentor
Mentor

@TourajM wrote:

Hi Dears,

I am a Land Surveyor, and in our daily work, we generate several CAD files. For example (File 2026-org.dwg) has lines, polylines, and blocks with attributes. Most of these objects have Extended Data, and we need to project these Data on the map; we manually use Multileader as shown in (file 2026.dwg)


 

I can see that the application name is "TrimbleName" but can't see any information that pertains to the diameter and "D" value from the XDATA, except of course Z-values on some of the entities which can be obtain without XDATA.

 

Guess you just wanted to label the elements via lisp ? Am I missing something here? in Civil 3D perhaps?

 

 

 

 

Message 3 of 19

TourajM
Enthusiast
Enthusiast
Thank you for the replay. The application name "TrimbleName" is because we process and create CAD files from our Survey Data with Trimble Business Center software. If you select any polyline or line and check the properties in the Extended Data tab, you will find the relative information such as Dia and Depth. as a sample of how I need to project or, as you said, Label, I shared File name 2026. DWG.
0 Likes
Message 4 of 19

TourajM
Enthusiast
Enthusiast

For more

Screenshot 2023-11-07 102347.jpg

Screenshot 2023-11-07 102310.jpg

  

explanations, I have attached two screenshots.

0 Likes
Message 5 of 19

pbejse
Mentor
Mentor

Sure enough it's in Civil 3D,   

Not sure if with Civil 3D Enabler that information can be access thru Vanilla AutoCAD. 

 

Message 6 of 19

TourajM
Enthusiast
Enthusiast
I Hope Someone Can help me with this.
0 Likes
Message 7 of 19

hosneyalaa
Advisor
Advisor

@TourajM 

this is .dll file , iam need time to change it , for you

Command: NETLOAD

Command:  TESTShortestNetworkPath

70.gif

Message 8 of 19

TourajM
Enthusiast
Enthusiast
Thanks a lot,
I’m very grateful for your time and support.
0 Likes
Message 9 of 19

hosneyalaa
Advisor
Advisor

TRY

@TourajM 

 

 

 

70.gif

Message 10 of 19

TourajM
Enthusiast
Enthusiast
Dear hosneyalaa, I don't know how to thank you. This dll works perfectly and is amazing. If it is not too much to ask, is it possible to Modify it to select the blocks as well? We have a lot of Blocks, such as Trees, street lamp posts, etc, with Extended Data. Also, can we change the Command: TESTShortestNetworkPath to something shorter or simpler to be remembered?
Again I appreciate your time and support.
0 Likes
Message 11 of 19

TourajM
Enthusiast
Enthusiast

As a sample of blocks in the drawing, I attached a file.

0 Likes
Message 12 of 19

hosneyalaa
Advisor
Advisor
Accepted solution

@TourajM 

try

 

 

 

7q.gif

Message 13 of 19

TourajM
Enthusiast
Enthusiast
Thank a lot. this is exactly what I needed. well done.
0 Likes
Message 14 of 19

Bart_Dheere
Advocate
Advocate

Hello, 
It seems that this feature is nog working for me. 
I put the dll-file on my local pc. 
Netload asks me to select the dll. So far so good. 
But the command to label is not working. 

regards

0 Likes
Message 15 of 19

jklinkeB8EEG
Contributor
Contributor

This tool seems amazing, is it something you would be willing to share as the .dll code?

0 Likes
Message 16 of 19

Jeff_M
Consultant
Consultant

@jklinkeB8EEG the dll was posted in a RAR by @hosneyalaa in message 12.

Jeff_M, also a frequent Swamper
EESignature
Message 17 of 19

jklinkeB8EEG
Contributor
Contributor
I was actually wanting to see how this .dll was coded in .NET, if they were willing to sare.
0 Likes
Message 18 of 19

TourajM
Enthusiast
Enthusiast

Sorry for the late response; I was sick for 2weeks with Corona. The command is: EXTENDED_DATA

0 Likes
Message 19 of 19

TourajM
Enthusiast
Enthusiast

Thank you for your reply.

0 Likes