AutoCAD Civil 3D :: Variable For Label Expressions
Aug 6, 2012
Often we need to collect our topographic/boundary data using a state plane grid, but we still need to label property lines using the recoded deed bearings. We have a style with an expression set up to apply this rotation to lines and a similar one set up for curves. Is there a way to store this rotation and have both expressions look up the value from one place?
I am worried that I will type in the angle for the line labels and then forget to type it in for the curve labels, or maybe the angle is typed in correctly in one expression but incorrectly in the other. If it was typed in once, then even if it was wrong, at least the labels would be consistent and correct relative to each other.
Need writing an expressions in a label style. I have part of it working, it is {Rim to Sump Height}-6 now I would like it to put 0 if it is 0 or less but I don't know how to do it. It works great on positive number but I want it to put 0 if it is a negative number.
I have tried all of the expressions below to add the the vertical curve elevation at the pvi to my curve crest & sag labels on my profile and all I get is ??? for the value. I am currently running Civil 3D 2012.
IF({Grade In}<{Grade Out}, ({PVI Elevation}+{Tangent Offset at PVI}), ({PVI Elevation}-{Tangent Offset at PVI})) {PVI Elevation}+{Tangent Offset at PVI} {PVI Elevation}-{Tangent Offset at PVI}
I'm trying to create an alignment label to display profile elevations at regular stations. Two questions:
1. I use an expression to set the text height. When I add a regular text component in the label this works fine, but when I add reference text I can't seem to use the expression as text height. 2. I want to use an expression to 'Truncate' the elevation, so that 178.35m displays as 78.35. I can't find a way to create an expression to do this (within the Alignment station labels).
I have tried all of the expressions below to add the the vertical curve elevation at the pvi to my curve crest & sag labels on my profile and all I get is? for the value. I am currently running Civil 3D 2012.
IF({Grade In}<{Grade Out}, ({PVI Elevation}+{Tangent Offset at PVI}), ({PVI Elevation}-{Tangent Offset at PVI})) {PVI Elevation}+{Tangent Offset at PVI} {PVI Elevation}-{Tangent Offset at PVI}
We have a Structure Style that places a hidden block at the invert of the structure which uses an expression to accomplish Placing the invert text below the structure. (please see attached).
This particular expression was written for a 1"=30 Horz. & 1"=5' Vert. scale and we use it to label our structures in the profile view.
It works great for the 1:30 scale scenario but we also produce 1:20 & 1:50 scale plan / pfl sheets.
3 label styles can be used to accomplish this but would like to create one that would work for all three scenarios if this is possible? (Goal is 1 expression & label style as opposed to 3 of each).
I thought I had it solved & have tried various formulas but can't seem to get it to recognize the various distortions in scale. (The constant being the 5' vertical dimension for all 3 options)
50/5=10
30/5=6
20/5=4
C3D 2012 SP3 & C3D 2014 SP1 Win 7 Professional 64 Bit
I believe that I need to define a custom Expression and then add it to the Label Style of a Tangent Intersection.
1) I'd like to add the max superelevation (e max) value of a curve to the label. This might be impossible. 2) I'd also like to add the design speed value to the label as well. This could be pulled from that value set in the design criteria of the alignment creation.
Having problems using custom pipe properties in pipe label expressions in 2013? I have some expressions relating to stub callouts and the ones that directly reference the custom properties lose that reference every so often.
For example I have and expression called "STUB-Riser-Length2d" which is defined as "{Riser Length} / SQRT(2)" where "Riser Length" is the custom pipe property. Every week or so it changes to "/ SQRT(2)".
I haven't been able to find the pattern as to exactly when this happens yet. All expressions not referencing custom properties seem to be holding steady. The pipe catalog is on a shared drive on the network, if that makes any difference.
Civil 3D 2013 - Windows 7 Pro 64 - Dell T3500 - Xeon 2.67 - 24gb - Quadro 600
The label associated to a grading point when is moved when is moved changes its size automatically and a leader appears. After this happen no control over the grading point and its associate label. refer to the image below.
C3D 2013. We have profile line labels, some of which get manually edited (for example, change the "<[Tangent grade(FP|P2|RN|AP|GC|UN|SD|OF)]>" to a static number such as 0.29%).
However, if you CTRL+Click and select one of these labels and change the style of that one label, then the manual edits are lost and the label reverts back to the default string.
I'm trying to label my Profile label stations as raw stations, 20~20 meters, and I'm not being able to adapt the format to STATION 0, STATION 2, without any plus zeros or +, or -, or commas, or anything, as following in the image.
Is it possible to pin a label to another label ? Or pin a label to an object so that when the first label (or object) is moved, the other moves with it ?
I want to have a piece of text added to the drawing notes that uses a field (or similar), to list the coordinate system code assigned to the drawing, i.e. UTM83-12.
Any setvar or something that I can use?
There are load of different coordinate systems to choose from, and I don’t want to have to manually enter it for every drawing.
I wonder is it possible to have a daylight (or other function) that can give a different slope for datum and for the top. This would be useful for if you have different rules (e.g. because of geotech) with regard to temporary and permanent batter slopes.
For some reason my FILEDIA variable switches to "0" often and randomly. I am running the .dwt shipped with C3D 2011 and C3D 2012 with custom civil styles added. what could be toggling it?
I am trying to create in my sub assembly a daylight with a variable slope to a graded ditch then it back slopes to natural ground. (image attached). How can I do this in Civil 3d 2012?
I've created a simple cutdown kerb in Subassembly Composer 2013. I can't add Point, Link or Shape Codes & get the error message " The code (Flange for example) is not a valid input parameter or variable.
I just want to start by saying I have been extremely impressed with the speed and effectiveness of finding Civil 3D solutions through this forum. However I do not think there is a way to solve the problem below without making a custom sub assembly.
There is a common problem that I run into when modelling earthworks on airfields. All Taxiways and Runways will have sepirate areas that determine the slope of earthworks in that area. As an example I will explain my problem for a Runway.
Any ruwnay will have a Strip area (150m offset from its centreline) and a Clear and Graded area (105m offset from its centreline). Therefore any earthwork slopes between the runway pavement edge and 105m offset from the centreline will be determined by the requirements within the Clear and Graded Area. Likewise any earthwork slopes between 105m and 150m offsets from the centreline will be determined by the requirements of the Strip area.
My problem is that when overlaying a runway, the new earthworks required may extend beyond the clear and graded area (and into the strip) at some points but not in others.
Therefore I would like a sub assembly that does earthworks at a set slope unless it passes the clear and graded line where it would then continue the earthworks using a different slope. It should be pointed out that the clear and graded line will be present along the entire length of the runway and the earthworks may or may not extend beyond it.
Just for the sake of clarity, when I say earthworks, I mean the subassembly within autocad that will "Cut or Fill" at a set slope until it reaches a chosen surface level. Similarly the "clear and graded line" and "strip line" are 2D and mearly delineate the areas in plan.
save time and make my model more dynamic. As it stands I have been getting around this problem by modelling the earthworks at the initial slope (clear and graded area) and then manually amending the corridor to use a different assembly where the earthworks extend beyond the clear and graded line.
I'm trying to build the ditch portion of my Subassembly backwards from an offset target "DitchOffset". The elevation of this point should be derived from a point that is using Slope and Delta Y from point "P12" (see attached). Must be at least 1m from the bottom of SubBase with a 5:1 slope.
The Ditch Bottom will be variable width. I'd like to be able to select my offset alignment for my ditch bottom. Have a link from this point extend at a slope to the Target Surface to complete the foreslope.
I can't quite picture how to complete the links from the DitchOffset point. This may be complicated but the diagram identify what I'm trying to do.
I'm attempting to write a batch script to add some layers to a pre-existing image and save a copy. I've gone through the tutorial, and have run the demo code from Basic_Batch with no errors, but my (what I think of as simple) script throws an "Error: eval: unbound variable: ?" It also seems to cascade the error to other scripts, as I then get "unmatched parentheses: 2" errors from what I assume to be the script immediately following my own during Script-Fu load. This occurs whether running from batch or clicking "Refresh Scripts" from the Script-Fu menu.
What I could find on this forum and Google suggests that I may be required to 'define' one or more of my variables before using it, but for the life of me, I can't figure out which one that would be, and the error (reporting that '?' is undefined!?) I've quintuply (probably more ~_^) checked my parenthesis matching, but they look fine to me.
In case this was an encoding issue, I've tried saving my .scm file as both UTF-8 and ANSI. I should also note that I'm running Windows 7 x64 in English-US.
I have C3D 2012. I want to label a part of an arc. The arc has 3 lines that intersect it. I want to label the overall arc and the pieces of the arc. The overall arc is not a problem. How can I label the parts of the arc without breaking it up?
I keep getting the words "Label Text" being placed at 0,0 every time I insert a profile view into my drawing. Is there a simple way to change something in the settings to either not display this at all or sontrol how/where it is displayed? It is annoying when you do a zoom extents being you now get 2 small dots on screen, 1 being the actualy drawing at the correct utm cooridnates and the other being this piece of text down at 0,0.
I have applied a client's style to the alignment to show PI's. In this case we have 2 alignments close to each other (NB & SB of road). PI's close to each other will then overlap. What I would like to do is apply a style that will have the line and text go exactly in the opposite direction. I am trying to avoid dragging the text as that seems to bring up several more issues. I am looking for whatwhere to change within the style editor to make this happen.
C3D 2012 sp1 W7Pro 64bit HP Z400 Workstation 16 GB RAM Intel Xeon CPU W3565@3.20GHz NVIDIA Quadro 4000
Is there a way to label the low point of a profile or alignment that doesn't have any vertical curves? We have an existing alignment and profile which is relatively flat, and we'd like to establish and label the low points for drainage improvements.
For as long as I have been using Autocad (10 yrs), if I typed an autolisp expression (in brackets) on the command line any output from the espression was echoed to the command line.
E.g. I type (+ 2 2) on the command line and Autocad returns with 4.
I installed SP 1 for Autocad 2013 and this bevaviour ceased, i.e. 4 did not appear in the command window although it did appear on the text screen.
I then un-installed SP1 and "normal" behavior resumed.
When SP 1.1 came out I installed that and again find that I do not get the returns from autolisp functions eched to the command window, only to the text screen.
I have now uninstalled SP 1.1, which I sort of hate to do, because I use those one line Autolisp functions quite alot.