AutoCAD Civil 3D :: Diesel Expression That Reads The Layout Tab?
Jun 4, 2013
have a diesel expression that would read a layout tab? for example if i have a layout tab names 244180101 I would need it to read the last 2 digits in the layout tab.
AutoCAD Civil 3D 2014
HP Z620 Workstation 64-bit
Duel Intel Xeon E5-2620 @ 2.00 GHz
Ram: 48 GB
I have a multileader balloon that I want to have a field that is a diesel expression that will allow me to select a block and extract the attribute value within that block. Is there anyway to do this?
I have been asked to make the title text larger (drawing are being issued at 1/2 scale, A1 to A3) on a large set of drawings. My solution was to copy the title attribute block to a temporary location, resize the attributes and redefine the block by running a script (scriptpro). Some drawings needed the title line split to next line so I had to move the sheet counter (1 of xx, 2 of xx etc.) which was linked to drawing file name for number with a field/formula.
The diesel expression shown below extracts that number. My problem is I cant figure out how to I can edit this expression to allow for a set not starting at 1. I had used a formula to subtract the difference,but how do you express this to run in a script?
I created a dynamic block with text field that show the lenght of a line, but this line can be 0 and in that case I want that the text field will show nothing instead of "0".
I try to write it in diesel expression with if command but i don't know how to bring the object lenght into the diesel expression code.
I have a task where I need to automatically insert the drawing number (no path), plus two additional items, one an attribute, the other is within a dynamic block. I can achieve this using fields but now I havce to truncate some of the text.
It seems like I can't edit if I am using fields and attributes/blocks can't be used in Diesel (correct me if I'm wrong)
This is the information I have:
Filename: 123456-AS-WE.dwg Attribute: Q2 Dynamic Block: X1 - Additional Information
This is what I require: 123456-AS-WE [Q2] [X1]
This is what I have so far: 123456-AS-WE [Q2] [X1 - Additional Information]
In other words, I need to restrict the dynamic block field to the first two characters.
I am trying to create an expression in SAC and am having trouble getting it to work the way I want. The goal is to have the subassembly figure out what slope to use. If I do not have super elevation, I want it to use the grade for the in the input.output parameters. If I do have super elevation, I want it to use the super settings. So far I have this
get 2012 to make an expression for curve delta angles come in DMS and not decimal degrees? Why do I need this? Well C3D does not have a delta angle label for curve pipe and our client requires it on the drawings.
I'm trying to use an expression for text height and everytime I enter the name of the expression I get "Invalid Input". Is there a trick to doing this?
I even changed a style that "HAD" allowed me to use an expression, to a number then tried to reenter the same expression name that was there and get "Invalid Input".
I have a bit of a problem with Autocad map 3d 2012. When i try to insert a scale bar or a north arrow or any other carthographic element i simply can't find the layout elements that are supposed to be in layout tools tab. I've done a lot of research online and can't come up with anything.
I am trying to make a single point label style that will return a blank line in the label if no data is provided.
The way i have it coded now my label for a structure with only two inverts comes out looking like this:
STCB 500 Rim=300.00 12" CONC N IE=295.00 12" CONC S IE=296.00 IE=300.00 IE=300.00
I would like the number of lines returned to match the actual number of inverts in the structure and leave out the place holders.:
STCB 500 Rim=300.00 12" CONC N IE=295.00 12" CONC S IE=296.00
I can work around this by having a label style for each number of pipes, but i would also like this code to be inseted into a table style and in that case i don't know of any way to assign multiple styles to one table.
The problem is that 1 INV-4 INV are being defined by an expression that reads like
{Point Elevation}-{1 MD}
so when no data is intered for my UDP "1 MD" it returns the point elevation. I want an equation that says if rpoitn elevation -measure down=point elevation then no data is shown.
I am trying to create a label for fire hydrants in plan view that shows the flange elevation. I want the elevation to be 0.4' above the adjacent road profile. I added a reference text component to my label style that shows the profile elevation. Where would I find the expression for the profile elevation reference text?
and I have tried it using {Station Value} instead of {Raw Station}
Here's what it's meant to do (because it's a long one):
If the station value + 5 is not divisible by 15, return -1 If the station value + 5 is divisible by 15, return the profile elevation, if the profile elevation is in the 100 range, subtract 100 if the profile elevation is in the 200 range, subtract 200...etc
Here is my conundrum: If I use the expression in a profile label, it works fine. But if I use it in an alignment label as reference text, it returns -1 for every value.
I was wondering if it is possible to use an expression in a general note label? The type of label I am using is a general note label that displays our finish grade profile elevation in plan view. What I am trying to do is add a value to that label for the TC elevation and G at the ROW. I noticed in the settings tab of the tool space, surfaces has an expression button that has what I want but I am not seeing that under General/Label Styels/Note. Is it possible to right my own expression? We are using Civil 3D 2008 with Windows XP.
I'd like to label profile elevations at horizontal geometry points. I accomplished this with a profile reference. Essentially labeling bottom of curb at pc, pt, mid, and pi, and would like to get and expression to add the top of curb, but under hor. geo style expressions you cannot pickup pgl data and PGL style expression are not loaded in the hgp data.
Note: Its all Resistentialism, so keep calm and carry on 64 Bit Win7 OS.
I'm trying to build an expression to display the Middle Ordinate for profile curves. I don't usually do this but it's required for this project.
The first thought was to subtract the PVI elevation from the profile elevation. The PVI elevation is easy but I don't see an easy way to get the profile elevation. I can go through the whole formula for calculating the grade. But that will probably take some debugging.
I am looking for a Line Label Style Expression which will perform a rounding function on distance labels that display my "General Segment Length" value.
What I need is to be able to remove "Trailing Zeros" from my distance values, so that if precision is set to say 0.01 and my distance value is measured as 45.5, I do not get 45.50 but 45.5.
I need to make interchange shoulder widening for my sub assembly.
there is picture where I have the shoulder which I want to add target offset in corridor to make offset of the edge of shoulder. but I don't know how to write expression that when top link will offset slope will move with it and the bottom link will connect in crossing of this two points.
How to create an alignment label expression for Geometry Point that will show the delta angle rather than the instantaneous direction or perpendicular direction?
The neww line expressions for Grid distance are phenominal. My problem is getting them into curves. All I want to do is apply the grid scale factor to the curve length and radius, but I can't narrow down the parameter. The Drawing Scale conversion links to the annotation scale. I've also noticed people just scripting in the value, but that doesn't work when the majority of the office doesn't operate at that level.
Also, I work in grid and need to convert to ground. I noticed that the system only does ground to grid, so I'm inputting an inverted scale factor to get the results in need in my distances.
I would like to create an expression that returns the inner pipe diameter if the pipe is circular, and the inner height and width dimensions if the pipe section is square or elliptical. I tried this in the expression editor:
When I open the expression variables available in a label style, I see different options available for different label styles.Can I combine expression variables from different label types? For example, say I want to make an expression that takes the Surface Elevation from a spot elevation label and subtract a variable from a pipe variable such as end invert elevation?
If you can do this, were can I find the expressions file on my computer or network? Can they just be dragged and dropped between label styles?