AutoCAD Civil 3D :: Sub Assembly Composer Expressions?
Jul 8, 2011Good site that would show how to write VB expressions for the Sub Assembly Composer?
View 5 RepliesGood site that would show how to write VB expressions for the Sub Assembly Composer?
View 5 RepliesI thought I created a rail sub assembly.
So I created the rail sub assembly everything looks great in sub assembly composer.
Start a new dwg data reference in the rail alignment, Note the rail alignment type is set to rail.
Create an assembly and under the Construction tab for the assembly the Assembly Type is set to Railway. Attach my custom sub assembly to this assembly.
Created a corridor and I get this error: Something wrong with current subassembly: Operation is not valid due to the current state of the object.
So I delete my sub assembly attach the Civil 3D Rail Single sub assembly. Re run corridor and everything works fine.
So I promote the alignment change type to centerline. Delete the Rail Single sub assembly put my rail sub assembly back. Rerun the corridor and everything works.
So then I undo everything up to the point of promoting the alignment.
Opened the base file changed the alignment type to centerline.
When I tried to synchronize the references I ended up a broken reference with the following error. Invalid reference. Synchronization failed
Not good we already have plan sheets cut.
where in sub assembly composer were do I define the sub assembly to be for Rail?
A way to edit the stock Sub Assemblies provided by Autodesk?? I noticed they are compiled into a dll, therefore there is not a way to open them as a pkt that I am aware of. My intention is not to get rid of what Autodesk has provided but to add on to them.
Many times I have been asked "This sub assembly is great but can it do this?" of course it is the one thing that particular sub assembly can't do. For instance, the Varying Width sub assembly can't extend the top layer while having the sub base layers go in a negative direction.
I'd like to view the point codes (and also the links and shapes) of an assemby I have on my c3d drawing.I dont see nothing to get it ....
Civil 3D (2013)
I create Curb Return Fillet assembly with shoulder in SAC , but now i have problem with targeting , when i giving two targets it takes only first target and ignores second, could you check attached assembly and drawing ?
View 4 Replies View RelatedI have an Input parameter called "Construction Slope" of type "Slope" that I would always like to be negative. As i did not find the possibility to restrict end user to inputing only negative value I tried to change the sign of the slope to negative if it is positive by using an "IF" expression (when used as a "Geometry Property" for a new link):
IF(ConstructionSlope<=0,ConstructionSlope,(-1)*ConstructionSlope)
However this expression produces an error: "Compiler error(s) encountered processing expression <...> Cannot infer a common type because more than one type is possible". If i remove multiplication by -1 then the error is gone (and the whole expression becomes meaningless as well of course). See even attached image.
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 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
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.
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
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.
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}
I know this sounds like a really stupid question. Where is the subassembly composer? We have Civil3D 2013, and my understanding was that the subassembly composer was supposed to automatically install in 2013 as opposed to previous years when you had to download it from the Subscription Center.
C3D 2013
64-bit
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
How to use the superelevation. I read that I have to enter this command:
if((Side=Left)AND(SE.HasLeftLO), SE.LeftLO,
if((Side=Right)AND(SE.HasRightLO), SE.RightLO,
CType(slope,Double)))
but I don't know where, and I just want to create a simple assembly with a slope and delta X and having a lane outside superelevation for the both side.
I am creating an subassembly for Tunnel in the subassembly composer.I am wondering how can i draw an ellipse with the minor and major radius data.I tried it with curve geometry but it doesn't seem to be accurate.best way to draw an ellipse with the major and minor axis parameter?
View 7 Replies View RelatedI have a basic wall sub assembly that I created in SAC.Its looks fine in the SAC but when I import it into Civils it does not work...I have changed the extension from pkt to zip so that I can post it on here
View 5 Replies View RelatedI am working with SAC , and cant understand how that superelevation works, how to make my models work in CIvil 3d in superelevations... how to build it properly in SAC. I would rly love to get .pkt file with working model as example , or at least get some usefull tip.
View 9 Replies View Related I need to make them my best friend because the Subassembly Composer is basically useless unless you use the proper point coding for your SAs. This I know... I've attached an image from the Autodesk file that shows multiple point codes per link and point for the DaylightStandard Civil 3D Stock SA.
Which point codes must I use in my subassemblies to ensure I can create corridor surfaces properly down the road? For example the DaylightStandard SA shows...
P3 shows: Ditch_Out, Hinge, Hinge_Cut
P3 also shows: Daylight, Daylight_Fill
P4 = Dayltight, Daylight_Cut
If I'm building something similar in the Subassembly Composer what the heck do I focus in on for my point code. I will have issues with my Corridor surfaces down the road if I don't do this properly up front. I've seen examples where the Input / Output Parameters you define a string for the coding, is this to apply multiple codes to a point or a link?
Every time I try to edit the Contents of a label on the Layout Tab of the Style Composer I get the errors below. I've tried a restart, a reboot, a repair and a reinstall with no change. This happens even in a new blank drawing.Each of these messages appears and has to be closed about 5 times.
View 6 Replies View RelatedI understand the procedure for IMPORTING a pkt file from SAC into C3D. But is there a way to go the other direction?I want to use certain SAs that come with OOB C3D -- but I want to customize them.
Of course I can recreate them -- but I'd rather not start from scratch (ESPECIALLY where it comes to the codes).
I can import my SA fine, but the problem is that the top of it needs to be cut off 1 m above the existing ground (which is already a surface in civil 3d). How do I setup the target surface so that when I import the SA into my drawing, I can link it to that surface and have it cut off 1 m above the surface?
View 5 Replies View RelatedNot sure since when, the previous imported subassembly porperties cannot be modified in civil 3d and importing a new subassembly from the composer is also having issue, cannot see imported shape, just a red circle.
Someone said because of the SP2 installation. I have to go back to SP1 for now.
what is the main advantages and disadvantages of these two programs.
Because i actually want to focus of someone of these two programs
Where Subassembly Composer windows won't scroll? I can scroll with the wheel, but the scrollbars don't work.
If I start a new project, they work for a while, but once I have worked for several minutes, they become disabled again.
I did an uninstall and re-install but I get the same results.
Autodesk Authorized Value-Added Reseller
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.
Its a embankment crest (dam wall) and then sloping down at an angle to a target elevation. I want it to shoot through my topo / surface and then apply a boundary later.
It looks fine in Composer but doesn't show up in C3D - only straight line. Would like the same outcome as the Generic Link Code - LinkSlopetoElevation.
What's the easiest way to update an existing custom SA once it's in the drawing.
For example i have some coding that I'd like to change and this particular SA is in use 10 times in my file in different ways. I used the Subassembly Composer to create the original custom SA.
It's not as easy as saving the file over top of the existing .pkt file, if it was I wouldn't be here. It seems to be behaving like a block would. I need to redefine the Subassembly in order for it to update in the drawing. How is best to do this and is there any tricks to the process. When do i need to open and close Civil in order to apply the new changes.
Do I need to update the SA in my tool palette as well?