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
ADVERTISEMENT
Aug 23, 2012
Is there any way to allow user input in an expression for a profile label?
View 5 Replies
View Related
Mar 21, 2013
Where do I find the "Allow custom values" option for a multi list parameter expression?
View 2 Replies
View Related
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
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
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
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
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
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
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
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
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
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
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
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
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
View Related
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
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
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
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
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
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
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
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
Apr 4, 2013
Now, in my understanding, the flow arrow should either be rotated 0, or 180 (pi radians). But clearly, some of them like to have their own mind about things, and decide on some other rotation. It seems that on the steep slopes, the arrows go a bit skew.
I think the skew is related to the actual elevation difference of the segment, rather than the steepness of the slope. A long segment with 15% slope has a worse skew than a short segment at over 30%, presumably because the elevation difference from the start to the end of the segment is larger.
View 8 Replies
View Related
Jun 14, 2013
Am I limited to the fields that appear on the label for a pipe network data band, or can I add my own customized expressions?
Using Building Design Suite Ultimate 2014
View 6 Replies
View Related
Dec 13, 2013
I'm trying to create a custom expression in a structure table that will list the "size" of the structure, wheter it be a circular or rectangular structure. My column simply states size and I want it to label 5' for a circular or 4'x4' for a rectangular (or whatever the specific sizes are). The thought was to create an IF function, but Structure Shape was not available to use in expressions (among other problems). Short of using the description field (tedious) as a workaround?
In this example - CB-104 is a rectangular structure and CB-106 is a circular. I'd like the CB-104 size to read 4'x4'.
Civil 3D 2014 SP1
View 5 Replies
View Related
Sep 25, 2012
I would like to build an expression that I can use in a label at a structure in a profile view to show the horizontal angle change on the alignment at the structure.
Of course, in the available structure expressions, we do not have the alignment delta angle at that point even though I have a referenced alignment in my pipe network.
Our subdivision code has minimum drop across manhole for different ranges of horizontal angle change.
I want to create a label that shows the minimum drop required at a manhole off it's referenced alignment and I would like to see it on the profile view, because that is where the drop value is relevant.
View 2 Replies
View Related
Mar 6, 2013
I am trying to work out a way to set up my Structure Table so that I can show either the Inner Pipe Width OR Headwall Base Width to avoid having Question Marks showing in my Table? Is there a Function in the expressions that equates to a Non-Existent or Null Parameter. Ie.
IF({Inner Structure Width}=???,{Headwall Base Width})
Also, Is there a way to hide Structures from a Table, in particulat, Null Structures?
Currently using Civil 3D 2013 & 2014 SP1
View 1 Replies
View Related
Aug 3, 2013
I am create the stron network. I want structure profile elevation. How to create expression in structure reference alignment profile elevation.
View 9 Replies
View Related
Feb 24, 2013
I'm working on Autodesk VBA, and I'm trying to get user input on which vertex to use for a constrain. I want to make a macro that can go into part edit, allow user to select a vertex, and then automatically set up the constraint. Initially I wanted to do this in a single macro, using this short piece of code
while oSelectSet.Count <>1
DoEvents
Wend
While this worked when run directly from VBA, if I call it as a macro in Autodesk itself, the DoEvents doesn't seem o work because I wasn't able to make any selection at all. I googled and it seems like this is just how macros are.
So I split the code into a 2 subs and a function (as attached), and put them into separates rules that I call using a form in Autodesk. The first sub "Meta1Pin1_1" works, then I would select a vertex in edit mode. But when I go ahead and call the second sub "Meta1Pin1_2", I get the error message that I created which says no vertex is selected. But if I select a vertex and call the second sub again, it will work.
So I've been trying different things and I realize that every time when I first call the second sub, my selection is erased teh moment it goes into the sub. But, for some unknown reason, the selection will remain when I call it the second time. I can't figure out what exactly happened between the first and second call of the same sub, that allowed the selection to remain.
' prepares assembly for user input by grounding bones and going into part edit
Public Sub Meta1Pin1_1()
Dim oDoc As AssemblyDocument
[Code]....
View 2 Replies
View Related