AutoCAD Civil 3D :: Custom Functions In Label Expressions?
Jul 4, 2012To take civil 3D to the next level, is it possible to define a function in VBA and then use it in the label styles expressions?
Using Building Design Suite Ultimate 2014
To take civil 3D to the next level, is it possible to define a function in VBA and then use it in the label styles expressions?
Using Building Design Suite Ultimate 2014
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.
View 8 Replies View RelatedOften 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.
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 am trying to get my bearing label short name spaced to read with a "." after the N & E. Example: N. 00 00 00 E.
View 9 Replies View RelatedI'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}
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
I would like to perform a math function within a point label and have it displayed along with my point. I have a bottom of curb elevation point and would like to show the top of curb elevation as 0.5' feet greater than the flow line without inserting 2 separate points. For drafting purposes only. (ie. TC 10.50/FL 10.00 ; the TC value would be automatically derived from the FL or point elevation value.)Can math functions be performed within a label's Text Contents?
View 5 Replies View RelatedWe 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
Good site that would show how to write VB expressions for the Sub Assembly Composer?
View 5 Replies View RelatedI 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.
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.
View 1 Replies View RelatedC3D 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.
Is there any way to turn this behavior off?
Is there a way to "Edit Label Text" in a Parcel area label? Similar to the way you can edit it in other styles.
View 9 Replies View RelatedI'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 there a easy way to do it?
Civil 3D 2013.
First prize for me would be to be able to access Parcel boundary vertices via managed dot net.
I could not find the boundary property of the Parcel object.
It looks like developers can access Parcel vertices via COM, in the Loops property of Parcels.
So, it is possible to combine the two to get what I need.
Then I turned to the Report facility. The METESBOUND XSL iterates Parcel segments but provides the distance and bearing instead of the vertices. I was hoping to get to the bottom of the linked code to edit it and produce the vertices output. But - I failed again. Cannot see how the XSL files get to the data needed.
Is there maybe a book or comprehensive reference on the XSL files that provide the reporting function?
I found some code to add labels such as "Top View" "Left" view etc. to view labels, but it's not quite what I'm looking for. I'm OK with the default "View 1" and "Scale 1/4" that comes up on the multiview but I want the view label to say something like "Flat Pattern" and "Scale 1/4" when I do a flat pattern and same for ISO. How to accomplish that with iLogic?
View 1 Replies View RelatedIs 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 ?
View 2 Replies View RelatedIs there a way that we can set the view label in the style library to show custom/user Properties?
We have set our iam/ipt templates to have some custom properties which we wish to display in the view label when the view is created however there this no way to add these properties to the label.
I find this a little strange as you can add these user Properties to the parts list in the style library? (I've added some screen caps to show what I am talking about)
I found the topic by typing "expressions" but it doesn't pass me to there.
Any shortcut to the in built formulas and allowed expressions in parameters and dimensions?
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?
View 5 Replies View RelatedI 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.
View 9 Replies View RelatedI 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
I need to add a ONE label to an alignment. I would like to do it via Vlisp or C#.
View 4 Replies View RelatedIs 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.
View 9 Replies View RelatedFor 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.
how I can get an azimuth label on my line?
View 5 Replies View RelatedAny way to label the elevation of an object where it is picked? For example, I'd like to be able to pick on the node of a feature line or 3D polyline (or any object really) and have a label placed that displays the elevation of the object at the point where it was picked. This could appear similar to the surface spot elevation label, but instead of getting it's elevation from a surface, it would come from the object where picked.
Alternatively, any way to create a label style, perhaps using the Note label, to display something like this? I don't even care if it is dynamic or not, static would be fine. However, I do need it to scale innovatively . Tool Pac has a feature that does this, but the label is just a polyline and text that is not annotative.
we are in a situation where we want a dynamic wall label. how can i make that happen if technically the top of wall and bottom of wall are at two different x and y points. ideally i would like have one label and list it this way by referencing surface elevations:
RETAINING WALL
TOW=XXXX.XX
BOW=XXXX.XX
N=NORTHING
E=EASTING
How to set a value and label the “degree of curvature” for the horizontal alignment (HA)?
As the radius of the circular alignment (R) is calculated from the “degree of curvature” (attached) then I couldn’t figure out how to select a particular value for the “degree of curvature” (R=1718.8/Da) and then to label the horizontal alignment with it.