TheSwamp

CAD Forums => Vertically Challenged => Land Lubber / Geographically Positioned => Topic started by: drizzt on October 28, 2010, 03:05:18 PM

Title: labels along alignment and profile
Post by: drizzt on October 28, 2010, 03:05:18 PM
Ok, I am getting started on creating styles for the office. I am having a problem getting started on creating a label as in the attached pdf. I want to be able to pick a point along an alignment, like at the beginning of the riprap pad. I want the label to have the line like I have in the attached with STA, Elevation, and the option to enter the additional text like "begin riprap pad.

Can anyone help me get started.
Title: Re: labels along alignment and profile
Post by: mjfarrell on October 28, 2010, 03:08:01 PM

Alignment Labels

Station and Offset


Create NEW

go to label style composer



Add a LINE Component

then Add the Label Components attached to the line you added first
Title: Re: labels along alignment and profile
Post by: drizzt on October 28, 2010, 03:09:24 PM
but, will the line be perpindicular to the alignment?
Title: Re: labels along alignment and profile
Post by: mjfarrell on October 28, 2010, 03:13:35 PM
the Begin End feature text could also be defined as a(n)  EXPRESSION and have that added to the label
Title: Re: labels along alignment and profile
Post by: mjfarrell on October 28, 2010, 03:14:11 PM
but, will the line be perpindicular to the alignment?

Depends on the rotation and the anchor conditions you set for that line...in the style
Title: Re: labels along alignment and profile
Post by: drizzt on October 28, 2010, 03:19:51 PM
right! so I set the line to be perpindicular and the test to align with the line... got it. Let's see if I can do it
Title: Re: labels along alignment and profile
Post by: mjfarrell on October 28, 2010, 03:24:00 PM
I know you can...

Title: Re: labels along alignment and profile
Post by: drizzt on October 28, 2010, 03:36:17 PM
ok, I get the line in, but it anchors to the text. I can't figure out how to anchor it to the Anchor Station, as in the geometry point label style "perpindicular with tick".

Should I be starting with perpindicular with tick?
Title: Re: labels along alignment and profile
Post by: mjfarrell on October 28, 2010, 03:47:08 PM
ok, I get the line in, but it anchors to the text. I can't figure out how to anchor it to the Anchor Station, as in the geometry point label style "perpindicular with tick".

Should I be starting with perpindicular with tick?

No you should start with either GENRAL NOTE style that references the alignment

or Station and Offset Label as stated in first response..
Title: Re: labels along alignment and profile
Post by: mjfarrell on October 28, 2010, 03:57:14 PM
Actually If I understand what you are after...a General Note style set up for this is probably going to prodce the best result easiest.

the WHITE one is a General Note

the Red one an alignment Station/Offset
Title: Re: labels along alignment and profile
Post by: C3D_User on October 28, 2010, 07:18:22 PM
Drizz....see attached file, this should get you what you want.

K
Title: Re: labels along alignment and profile
Post by: mjfarrell on October 28, 2010, 07:20:57 PM
Drizz....see attached file, this should get you what you want.

K

I couldn't post one for him...there are version issues... (2010 right drizzt?)
Title: Re: labels along alignment and profile
Post by: drizzt on October 29, 2010, 10:46:06 AM
Yes, I am using 2010.

C3D_User. that is almost exactly what I want. I just want the text line to touch the alignment. Which I think I can fix.

Now, I created a General Note style for my profiles, but my station and elevation have ???. See attached pdf for style in use. I have attached a dwt with the style I created. It is in general / label styles / KRW_Sta Text field Elevation.

I must give credit to C3D_User for most of the attached dwt

What did I do wrong?
Title: Re: labels along alignment and profile
Post by: mjfarrell on October 29, 2010, 10:49:48 AM
you lost the connection to; or did not select the REFERENCE alignment/profile that the note is using....

I think you can reset that in properties...

it may also be a persistent issue with reference text in labels.....
Title: Re: labels along alignment and profile
Post by: mjfarrell on October 29, 2010, 10:58:07 AM
Seeing how this label will be employed....

a more reliable method might involve some 'trickery'

I would insert a fictional PVI into the design profile....and then add a SPECIAL * Geometry Point Label * to it.
Same for the Hoizontal alignment.
Title: Re: labels along alignment and profile
Post by: drizzt on October 29, 2010, 11:15:47 AM
yeah, I briefly explored using a "ghost" PVI. But couldn't get a grade break label to go there....

Learning Civil3D is actually fun!
Title: Re: labels along alignment and profile
Post by: mjfarrell on October 29, 2010, 11:19:52 AM
Use a DEPTH label...instead and NO PVI required; unless you just want something to snap to.

either way would work
Title: Re: labels along alignment and profile
Post by: jugglerbri on October 29, 2010, 07:05:44 PM
You got me to thinking and I decided to write up my solution on my blog. Hope this helps.

You can read it http://civil3dplus.wordpress.com/2010/10/29/stationoffset-labels-with-a-line-to-the-alignment/?preview=true&preview_id=619&preview_nonce=bc21fcd610 (http://civil3dplus.wordpress.com/2010/10/29/stationoffset-labels-with-a-line-to-the-alignment/?preview=true&preview_id=619&preview_nonce=bc21fcd610).

(http://civil3dplus.files.wordpress.com/2010/10/demo.gif)
Title: Re: labels along alignment and profile
Post by: drizzt on November 01, 2010, 11:45:45 AM
jugglerbri

That works great, but i still get question marks instead of my station.

this is my process:
in the label style i created a reference text. in the contents properties I selected "Station Value", clicked the little arrow and bam.... I get three question marks
Title: Re: labels along alignment and profile
Post by: drizzt on November 01, 2010, 12:05:09 PM
ok, I guess you can't add reference text to a style after creating the label and expect it to update. I just created another lable and my style works fine.
Title: Re: labels along alignment and profile
Post by: mjfarrell on November 01, 2010, 12:17:38 PM
does it retain the information after closing the file and reopening it?

or did you just ADD the reverence text to a label already in the file WITHOUT defining what alignment is should be referencing?
Title: Re: labels along alignment and profile
Post by: drizzt on November 01, 2010, 02:47:59 PM
no, I had an alignement. Then I created a lable, with the line only. Then I added the label to the alignment, then I updated the lable style by adding reference text.

I have no idea why I expected Civil3D to know what to do with the label.
Title: Re: labels along alignment and profile
Post by: mjfarrell on November 01, 2010, 03:05:06 PM
no, I had an alignement. Then I created a lable, with the line only. Then I added the label to the alignment, then I updated the lable style by adding reference text.

I have no idea why I expected Civil3D to know what to do with the label.
that's what I thought     ;-)
Title: Re: labels along alignment and profile
Post by: drizzt on November 04, 2010, 10:48:31 AM
I am now having trouble getting the line to scale with the drawing scale. Text scales fine, but my line does not. I followed Jugglerbri's web page and, for the line length I created an expression. Which is as follows:

Offset/{Drawing Scale Conversion}


I don't get it
Title: Re: labels along alignment and profile
Post by: mjfarrell on November 04, 2010, 02:04:52 PM
then you have to use that EXPRESSION as the line length in the style....

also the expression once evaluated needs to be set to format the returned value as a distance
Title: Re: labels along alignment and profile
Post by: drizzt on November 04, 2010, 02:36:38 PM
I show exactly what you have, well except I titled my expression differently.

I have attached my scratch file for you to check out if you want

by the way. I need to thank you again for your help
Title: Re: labels along alignment and profile
Post by: mjfarrell on November 04, 2010, 04:09:01 PM
the difference is my text is attached to the FEATURE, yours is anchored to the line...

so when you stretch the label your line moves and the text doesn't....

you'll want to adjust your X,Y offset for the first text component, as you anchored all the other entities to it they'll shuffle on over when you adjust the STA portion of the Label
Title: Re: labels along alignment and profile
Post by: mjfarrell on November 04, 2010, 04:31:34 PM
actauly it doesn't mind being anchored to the line component, just wants a different insertion origin....
Title: Re: labels along alignment and profile
Post by: drizzt on November 04, 2010, 04:36:19 PM
I tried to change the text anchor to feature, and now it is completley dis-associated with the line. It isn't rotated 90 degrees from the alignment either.
Title: Re: labels along alignment and profile
Post by: mjfarrell on November 04, 2010, 04:37:12 PM
I tried to change the text anchor to feature, and now it is completley dis-associated with the line. It isn't rotated 90 degrees from the alignment either.
see above
Title: Re: labels along alignment and profile
Post by: drizzt on November 04, 2010, 04:40:03 PM
did you try changing the scale to see if the line length changes along with the text? That is what I am after
Title: Re: labels along alignment and profile
Post by: mjfarrell on November 04, 2010, 05:08:32 PM
drawing scale, viewport scale ???

if drawing scale yes, yes it does....
Title: Re: labels along alignment and profile
Post by: drizzt on November 08, 2010, 10:17:30 AM
I am going to have to review you settings above. My line does not scale.
Title: Re: labels along alignment and profile
Post by: drizzt on November 08, 2010, 10:20:48 AM
now I am confused (again) I show exactly what you have and my line does not scale when I change scale in model space, or in a viewport. Text does, but not the line.
Title: Re: labels along alignment and profile
Post by: mjfarrell on November 08, 2010, 10:48:31 AM
now I am confused (again) I show exactly what you have and my line does not scale when I change scale in model space, or in a viewport. Text does, but not the line.
send me what you have....I'll happily dissect it
Title: Re: labels along alignment and profile
Post by: drizzt on November 08, 2010, 12:07:47 PM
Here you go
Title: Re: labels along alignment and profile
Post by: mjfarrell on November 08, 2010, 12:51:34 PM
ah...the line should not 'scale' as that offset location is a user pick point...

this would be part of my lesson 1...the Second thing a user does AFTER the Name a newly created file, verify or set the Drawing Scale...BEFORE they do any work.....
Title: Re: labels along alignment and profile
Post by: drizzt on November 08, 2010, 01:26:36 PM
that won't work as our drawings will change scale during the design process. I need a line that will change with drawing scale.

Also, what about multiple viewports?

Is this something else Autodesk didn't consider, or is there another way?
Title: Re: labels along alignment and profile
Post by: mjfarrell on November 08, 2010, 02:19:35 PM
why will they be changing scales?

and why would objects be annotated...if not at the desired scale?
As a LAZY draftsman, the last thing I add are annotations.....because I don't want to change them...that's just me.

could be a workflow issue as opposed to a software one ?


Title: Re: labels along alignment and profile
Post by: drizzt on November 08, 2010, 03:55:07 PM
say I have an alignment, said alignment is created for submittal on a 24x36 sheet. During the review process the client wants an 11x17 record (to scale) of the progress. Or, say you have said alignment on a 24x36 sheet with one viewport that shows the entire alignement, and another viewports zooming in on a particular feature of the alignment.

there you go.... the need for multiple scales / changing scales.
Title: Re: labels along alignment and profile
Post by: mjfarrell on November 08, 2010, 04:12:07 PM
I see the challenge and

offer


a scaled named page setup for one


and data shortcuts, styles and templates for the other
Title: Re: labels along alignment and profile
Post by: reno on November 08, 2010, 05:49:35 PM
i think that's the point of the label style jugglerbri offered. the line doesn't scale. if you want the line to scale, just add a line with a length.
Title: Re: labels along alignment and profile
Post by: reno on November 08, 2010, 05:52:27 PM
i think i got it. you want a line to go from the label AND you want a line in the label. two lines, one goes from the label location to the line using the nonscaling line and the other goes from the label location along the text using a length that does scale.
Title: Re: labels along alignment and profile
Post by: reno on November 08, 2010, 06:03:29 PM
looking a little closer at your original style and the one you just posted, attach the text to the end of the line that draws to the alignment. now attach another line to the end of that line and you should be golden.
Title: Re: labels along alignment and profile
Post by: mjfarrell on November 09, 2010, 09:16:54 AM
the above will work, however one will want to keep that additional line segment pretty short, as my experiments suggest that in some scale settings the line will extend over the alignment it is attached to...
another option would be to modify the Distance From Line Expression to add a small percentage of the line length to the total, or one could add a fixed amount
Title: Re: labels along alignment and profile
Post by: drizzt on November 09, 2010, 02:38:42 PM
reno,

I just started experimenting with you solution, and found anti_quarks problem. The line will cross the alignment sometimes. I think this is the solution though.
Title: Re: labels along alignment and profile
Post by: mjfarrell on November 09, 2010, 02:51:38 PM
flip it's angle by 180...then it should point AWAY from the alignment
Title: Re: labels along alignment and profile
Post by: drizzt on November 11, 2010, 11:45:28 AM
ok, my confusion with getting my label line to touch the alignment was, when I was asked for offset, I clicked, when I should have entered 0 for the offset.

Now my problem is with the dragged state and It will only label correctly on the Left side. If I want a label on the right side, I have to figure out how to create a style for that (Thanks to C3D_User for the heads up on that!)

See attached for dragged state goal.

If I have two of my labels to close together, and need one(the red one) to move, this is how I would like it to look. I am open to other ideas for a standard though, so feel free to let me know how you all handle these situations.
Title: Re: labels along alignment and profile
Post by: mjfarrell on November 11, 2010, 11:47:57 AM
from my experiments the style wasn't affected by what side of the alignment it was on...
checking posted file now
Title: Re: labels along alignment and profile
Post by: mjfarrell on November 11, 2010, 11:54:24 AM
I'm going to suggest you create a Staggered Left/Right Style to create that type of 'jogged' dimension effect.
The line length's can be hard coded or use some math like the 'offset from line' in an expression to set their sizes and angles.

Apologies for not having the SAME version so that I could send you a sample.
Title: Re: labels along alignment and profile
Post by: drizzt on November 11, 2010, 12:06:06 PM
I actually like it better this way. I learn more.
Title: Re: labels along alignment and profile
Post by: mjfarrell on November 11, 2010, 12:08:47 PM
I actually like it better this way. I learn more.
So, my idea makes sense then...and you are busy making that style of style already then right?
Title: Re: labels along alignment and profile
Post by: drizzt on November 11, 2010, 12:19:27 PM
Yes, yes I am. I do have one question though. I want the blue line in the attached to be variable, depending on which side of the regular label it is on. Is the a way to do that?

see attached
Title: Re: labels along alignment and profile
Post by: mjfarrell on November 11, 2010, 12:55:49 PM
also you do no that one could grip edit the straight leader and ADD vertices....
Title: Re: labels along alignment and profile
Post by: mjfarrell on November 11, 2010, 12:58:33 PM
Yes, yes I am. I do have one question though. I want the blue line in the attached to be variable, depending on which side of the regular label it is on. Is the a way to do that?

see attached
yes, one would ADD the OFFSET VALUE as a(n) Expression
then create another expression that would evaluate the value of that expression, and IF it was less than or equal too then it would do one thing...if Greater than then it would do something else
Title: Re: labels along alignment and profile
Post by: drizzt on November 15, 2010, 10:07:56 AM
cool,

thanks!