Jump to content

Recommended Posts

Posted

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.

MP.jpg

Posted

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


 

 

Posted

Curious, Isn't that feature available with out-of-the-box Civil 3D?   

Posted

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.

Posted

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.

Posted

Okay, Okay. The video has helped me. Big Thanks to you.

 

Topic Solved...!

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.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...