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

View 9 Replies


ADVERTISEMENT

AutoCAD LT :: Using Field Expression In Diesel Macro

Nov 13, 2013

Is it possible to get the value of a (custom)field expression in a LT diesel macro?

E.g. I would like to read the value of the following field: %<AcVar CustomDP.Current Revision f "%tc1">% 

I need this information so I can use it in a file name.

View 5 Replies View Related

AutoCad :: DIESEL Expression - XREF Path ONLY

Aug 24, 2011

Is there a way of showing only the location of the xrefs using a diesel expression (or otherwise)?

At the moment I'm using $(xrefs,5), but all the xrefs are in the same folder, and I only want that folder path shown once.

I.e., even if I have 5 xrefs, I just want one line showing the folder path of those xrefs.

View 5 Replies View Related

AutoCAD Visual LISP / AutoLISP :: Diesel Expression To Get Attribute Value?

Jan 12, 2012

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?

View 9 Replies View Related

AutoCAD Visual LISP / AutoLISP :: Adding / Subtracting In Diesel Expression

Nov 14, 2013

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?

This is my script......

attreq
0
-insert
ftc-gwp-a1-nosheet-stb=ftc-gwp-a1-nosheet-stb
0,0
1
1
0
[code]........

View 7 Replies View Related

AutoCAD Dynamic Blocks :: Diesel Expression That Read Object Length

Jan 10, 2014

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.

View 4 Replies View Related

AutoCAD Visual LISP / AutoLISP :: Edit Diesel Expression In Field

Sep 2, 2011

If LISP can be used to edit a diesel expression in a field inserted in dtext?  I need to adjust the last number in $(+, $(GETVAR, USERI2),1) .

View 4 Replies View Related

AutoCAD Visual LISP / AutoLISP :: Diesel Expression For Attribute And Dynamic Block

Mar 15, 2013

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.

View 6 Replies View Related

AutoCAD Visual LISP / AutoLISP :: Diesel Expression - Display Area In Square Feet Not Square Inches?

Feb 16, 2010

How I can update my diesel expression to display the area in square feet not square inches. See expression below.

^C^Cattdia;0;_-insert;AREABLK;1;1;0;$M=$(getvar,AREA);attdia;1

View 9 Replies View Related

AutoCAD Civil 3D :: Rounding In Expression

Aug 23, 2012

How can I evaluate and expresion to the nearest tenth?

Civil 3D 2012 & 2013
HP Z210 Workstation
Intel Xeon CPU E31240 @ 3.30 Hz
12 GB Ram

Note: Its all Resistentialism, so keep calm and carry on

64 Bit Win7 OS

View 9 Replies View Related

AutoCAD Civil 3D :: Create Expression In SAC

Feb 2, 2012

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

IF((Side=Left)AND(SE.HasLeftSO),SE.LeftSO,CType(ShoulderSlope,Double))

This works if I am only creating a left side.  However, I want it to decide which side super elevation settings by the input parameter side.

View 5 Replies View Related

AutoCAD Civil 3D :: How To Select A Profile Used In Expression

Mar 15, 2012

One of the main things I do is label elevations from an alignment and a profile, in plan view.

I have a style that does this, and it gets to the point where it asks to pick the profile.

If the profiles are data ref's, i can pick from a list, but if the alignment is xreffed, you must do a graphical pick.

This is super inconvenient, as my profile views are in a different base than my alignments, and they are way off to the side.

So I must xref the profile base in, and split my viws so I can pick them without excessive zooming.

Did Autodesk neglect the fact that if they make objects available via xref, they also need to make child objects available?

If I choose to use a dref as the data source, I must make a dref to the alignment and each profile I want available.

Three steps per street at a minimum.

This is also super inconvenient.

I'm struggling to find a decent workflow on this. Both approaches seem painful.

I had always thought the xreffed objects would provide the profiles, and only found they do not just now [URL]...

View 1 Replies View Related

AutoCAD Civil 3D :: Delta Angle Expression DMS

Mar 21, 2012

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.

View 9 Replies View Related

AutoCAD Civil 3D :: Edit User Expression VBA?

Oct 25, 2013

I need to edit a personnal expression in VBA ("COMPA")

I join an attachment to show you what i want to edit.

The problem is that i don't find where i can modify this expression in VBA in the database.

View 1 Replies View Related

AutoCAD Civil 3D :: Using Expression Gives Invalid Input?

Jan 15, 2013

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".

Civil 3D SP2.1
64 bit
windows 7

View 6 Replies View Related

AutoCAD Civil 3D :: Can't Find Layout Elements That Are Supposed To Be In Layout Tools Tab

Feb 27, 2013

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.

View 2 Replies View Related

AutoCAD Civil 3D :: Expression In Structure Labels For Survey

Sep 6, 2013

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.
  
My current code looks like this:
RIM=<[Point Elevation(Uft|P2|RN|AP|GC|UN|Sn|OF)]>
<[1 SIZE(CP)]> <[1 TYPE(CP)]> <[1 DIR(CP)]> <[IE TEXT(CP)]><[1 INV(Uft|P2|RN|AP|GC|UN|Sn|OF)]>
<[2 SIZE(CP)]> <[2 TYPE(CP)]> <[2 DIR(CP)]> <[IE TEXT(CP)]><[2 INV(Uft|P2|RN|AP|GC|UN|Sn|OF)]>
<[3 SIZE(CP)]> <[3 TYPE(CP)]> <[3 DIR(CP)]> <[IE TEXT(CP)]><[3 INV(Uft|P2|RN|AP|GC|UN|Sn|OF)]>
<[4 SIZE(CP)]> <[4 TYPE(CP)]> <[4 DIR(CP)]> <[IE TEXT(CP)]><[4 INV(Uft|P2|RN|AP|GC|UN|Sn|OF)]>
LADDER <[LADDER(CP)]>
 
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.

View 5 Replies View Related

AutoCAD Civil 3D :: Profile Reference Label Expression?

Jul 3, 2013

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?

Civil 3D 2012 SP3 | Win 7 64-bit SP1
Xeon E5-1620 @ 3.60GHz, 16GB Ram | NVidia Quadro 600

View 2 Replies View Related

AutoCAD Civil 3D :: Profile / Alignment Label Expression

Nov 26, 2012

Here is my expression:

IF((FMOD({Raw Station}+5,15))!=0,-1,({Profile Elevation}-100*FLOOR({Profile Elevation}/100)))

I have also tried it without a pair of brackets:

IF((FMOD({Raw Station}+5,15))!=0,-1,{Profile Elevation}-100*FLOOR({Profile Elevation}/100))

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.

View 9 Replies View Related

AutoCAD Civil 3D :: General Note Label With Expression

Jul 22, 2013

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.

View 3 Replies View Related

AutoCAD Civil 3D :: Expression In Horizontal Geometry Point

Aug 9, 2013

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.

View 3 Replies View Related

AutoCAD Civil 3D :: Expression To Round Pipe Slopes

Oct 8, 2012

We Need an expression to round Pipe Slopes to the nearest 0.5% slope. We were working with:

ROUND(({Pipe Slope}/0.5))*0.5

but it only returns 0.00.

View 9 Replies View Related

AutoCAD Civil 3D :: Profile Middle Ordinate Expression

Apr 9, 2012

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.

View 3 Replies View Related

AutoCAD Civil 3D :: Line Label Style Expression?

Dec 12, 2012

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 this to round for:

1 decimal place

2 decimal places and

3 decimal places

View 9 Replies View Related

AutoCAD Civil 3D :: Subassembly Composer Expression For Interchange Offsets

Mar 27, 2013

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.

View 4 Replies View Related

AutoCAD Civil 3D :: Alignment Label Expression For Geometry Point

Oct 24, 2011

How to create an alignment label expression for Geometry Point that will show the delta angle rather than the instantaneous direction or perpendicular direction?

View 1 Replies View Related

AutoCAD Civil 3D :: Grid Scale Factor - Using As Parameter In Expression?

Sep 10, 2013

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.

View 1 Replies View Related

AutoCAD Civil 3D :: Create Expression That Returns Inner Pipe Diameter

Jul 16, 2013

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:

{Inner Pipe Diameter}|{Inner Pipe Height}&{Inner Pipe Width}

but it returned ? in the label .

View 8 Replies View Related

AutoCAD Civil 3D :: User Input In An Expression For Profile Label

Aug 23, 2012

Is there any way to allow user input in an expression for a profile label?

View 5 Replies View Related

AutoCAD Civil 3D :: Can A Expression Be Use For Text Anchor Point Or Attachment

Apr 24, 2012

Can a expresion be use for text anchor point or Attachment?

I looking at using the ML or MR based on if the distance is Plus or Minus.

View 5 Replies View Related

AutoCAD Civil 3D :: Can Combine Expression Variables From Different Label Types

Nov 19, 2013

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?

View 2 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved