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

Label many "line and curve" at once (not click them one by one)

bruceauyeungAK9S9
Contributor

Label many "line and curve" at once (not click them one by one)

bruceauyeungAK9S9
Contributor
Contributor

HI There,

Is it possible labeling many "line and curve" at once (intead of click them one by one).
Please see my attached photo.

I try to dataextraction all lines's start and end coordinates, then find the mid point coordinates by excel.
When labeling copy and paste the mid points to add label (but some line's missing label by miss to pick).

Many Thanks

0 Likes
Reply
565 Views
12 Replies
Replies (12)

ChrisRS
Mentor
Mentor

A little more information would help.

I assume that you are using Civil 3d Line and Arc labels.

  1. What are you trying to label?
    1. Single items like line and arcs need to be selected individually.
    2. Segmented objects, like polylines, feature lines and alignments can be labeled all at once.
  2. What is the purpose of calculating the midpoint?
    1. Do you want to place the label at eth midpoint?
    2. Do you want the label to show the coordinates of the midpoint?
    3. Either 2a or 2b can be achieved with label styles and no external calculations.

A sketch of what you want the label to look like would also help.

  

Christopher Stevens
Did you find this post helpful? Feel free to Like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.

EESignature

0 Likes

bruceauyeungAK9S9
Contributor
Contributor

Hi Chris,

They are 1.1

Please see my attached photo. They are triangles from a tin surface.

or

any other mothed can label all triangles slope/gradient on C3D surface at once? 

-------------
For 2, I already find another method to place each label by 2 points, start and end points.
I found the start and end points of each line from excel then can copy and paste to C3D to label it automaticly.
But it is not a good method.

Thank You

0 Likes

ChrisRS
Mentor
Mentor

There is no photo attached

Christopher Stevens
Did you find this post helpful? Feel free to Like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.

EESignature

0 Likes

AllenJessup
Mentor
Mentor

There isn't any way unless the lines are part of a Figure or Parcel. There may be some routines out there that will do it.

I did find that SmartDraft will do it if you create a selection set and use P(revious).

Allen Jessup
CAD Manager - Designer
Did you find this post helpful? Feel free to Like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.

EESignature

0 Likes

bruceauyeungAK9S9
Contributor
Contributor

Thank you for all your replies, 

I also try the smartdraft (it is nice tools Thanks~~)  it seems works, but the label is text not C3D label.
Our client want keep them as C3D label.

So wish Autodesk can add (captioned new abiliry) in new version of C3D?

Now what I have to do is:
1. extract tin triangles from surface
2. convert 3dface to region
3. explode the region to lines
4. dataextraction line's start and end points tp excel.
5. make the start and end points with correct sequence (start, end, start, end .........)
6. place the surface label by two points, then copy and paste it in command prompt (like script format)

Anyway, Thank You all you guys help.
Bruce



0 Likes

ChrisRS
Mentor
Mentor

I still do not know what you want your label to show.

I think that you want a label at the midpoint of each line.

I have no idea what the content of the label should be.

 

I think that you are using excel to create a script that places these labels. If you have more than a couple of dozen labels to place this may well be the most efficient. method.

 

I am not a Lisp expert, but it seems to me that a pretty simple Lisp routine could be written to cycle tr\iough a selection set of lines and place a label at the midpoint of each. If you need a Lisp routine, you might be better off asking in the C3D customization forum. (They may suggest a better method than Lisp.)

 

I don't understand enough of your issue to assist further.  

 

The Lisp routine in post 6 of the following thread may be useful.

Link: explode-a-3d-face-to-lines 

Christopher Stevens
Did you find this post helpful? Feel free to Like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.

EESignature

0 Likes

bruceauyeungAK9S9
Contributor
Contributor

Chris,
Thank you for your help.

The topic is what I need >>>Label many "line and curve" at once (not click them one by one).
or label all the surface's triangle automatically (instead of click them one by one)


What we need is label the gradient for each triangle line. (pls see the attachment in my first post)

I replied your item 2 please fotget about the mid point.
I use the line's start and end point to input the surface label.

Anyway many Thanks.

0 Likes

ChrisRS
Mentor
Mentor

I totally missed the attached image in the original post. All is clear now. I will give this some thought this weekend.

Christopher Stevens
Did you find this post helpful? Feel free to Like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.

EESignature

0 Likes

jmayo-EE
Mentor
Mentor

This is a feature I have wanted for a long time. You should add this feature request to the Civil 3D Ideas forum here, https://forums.autodesk.com/t5/civil-3d-ideas/idb-p/31 

John Mayo

EESignature

0 Likes

ChrisRS
Mentor
Mentor

Now that I understand this, I will look at it this weekend.

I am pretty sour that the simplest solution is going to be a lisp routine.

 

Here are some links that may be of help.
Be sure to read all the way through; there are often multiple evolving versions.

 

Link: how-to-select-lines-and-add-label-on-line-or-curve-with-macro 
         (Also, in Post 15, RL_Jackson suggest converting to to parcel lines.)

Link using MText: lisp-help-selecting-multi-lines-and-labeling-them 

Link about basics and versioning: lisp-and-c3d-labels  

Christopher Stevens
Did you find this post helpful? Feel free to Like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.

EESignature

0 Likes

bruceauyeungAK9S9
Contributor
Contributor

Good idea,
I just posted to your link.
Thank you Jmayo.

0 Likes

TerryDotson
Mentor
Mentor

One consideration would be a warning on such a process that the selected TinSurface contains a certain number of triangles (example over 200, 500 etc).  After all, I've seen TinSurfaces from over 30 million points that (if this were attempted) would bring the Civil3D session to a grinding halt within a couple minutes with that many labels.

0 Likes