Sandeep RC Posted May 25, 2019 Posted May 25, 2019 Can anybody please help me with the simple LISP file that labels the polyline as per the attached image below. Please see the 3 highlighted boxes i have shown, Colored polylines are my pipeline networks. (∅63) is the diameter of pipe and (98m) is its length. I want LISP file to pick up the diameter number from the layer name, and length as per the properties/geometry as highlighted. (∅,m Want these symbols to remain contant on their places) ASAP help will be highly appreciated, Thank You. Quote
BIGAL Posted May 26, 2019 Posted May 26, 2019 What you want is very easy and a good task for learning say lisp. If you look at any tutorials for lisp they should have one about getting properties. I would go down the VL lisp path as length is a supported value you can get. Here is an example of what you can get ; Property values : ; Area (RO) = 8113640.30496858 ; Closed = 0 ; color = 256 ; ConstantWidth = 0.0 ; Elevation = 0.0 ; EntityName (RO) = "AcDbPolyline" ;; Layer = "063" ; Length (RO) = 19800.0 ; Linetype = "ByLayer" ; LinetypeGeneration = 0 ; LinetypeScale = 1.0 ; Lineweight = -1 ; ObjectName (RO) = "AcDbPolyline" ; Thickness = 0.0 Quote
pBe Posted May 26, 2019 Posted May 26, 2019 Curious, Isn't that feature available with out-of-the-box Civil 3D? Quote
Sandeep RC Posted May 27, 2019 Author Posted May 27, 2019 Thanks for the guide. Im new to this thing. Can you please write the quick program that gives me the above mentioned output. Im still in learning phase. I may modify it in future as per my need. Thanks in advance. Quote
BIGAL Posted May 27, 2019 Posted May 27, 2019 (edited) Come to think about it mtext will do it with fields, nice thing it will change length if vertex moved. I just did copy the layer part then did length saved re-edit pasted layer all done. Have a look at this well worthwhile https://knowledge.autodesk.com/support/civil-3d/learn-explore/caas/video/youtube/watch-v-jG7Nhpn2h8M.html Edited May 27, 2019 by BIGAL Quote
Sandeep RC Posted May 27, 2019 Author Posted May 27, 2019 Just saw the video, this is not what im looking for, i know about this kind of annotation. what i want is a LISP programm which automatically gives a label in Mtext or text format above a polyline that i click (As i have shown in above image), dont worry about the text font, height and other properties, i will match it as per my need. Quote
Sandeep RC Posted May 27, 2019 Author Posted May 27, 2019 Okay, Okay. The video has helped me. Big Thanks to you. Topic Solved...! Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.