AutoCAD Civil 3D :: Expressions Losing Custom Pipe Property Reference
Jun 28, 2012
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
View 4 Replies
ADVERTISEMENT
Oct 30, 2012
I'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).
View 6 Replies
View Related
Jul 4, 2012
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
View 2 Replies
View Related
Sep 15, 2011
I have been trying to find a method to extract custom properties from the custom property bag.
I have been able to extract the property value, using the "GetProperty" and the associated "GetValue" method, this method works when I know exactly what property name I am looking for. What do you do when you don't know the property name?
here is my code snippet..
dim myProps as acsmcustompropertybag = mysheet.getcustompropertybag
dim myProp as iacsmcustompropertyvalue = myprops.getproperty("SOMENAME")
dim myPV as string = myProp.GetValue
what I want to do is:
dim myProps as acsmcustompropertybag = mysheet.getcustompropertybag
dim myPN as string = ??????????.tostring
dim myProp as iacsmcustompropertyvalue = myprops.getproperty(myPN)
dim myPV as string = myProp.GetValue
View 6 Replies
View Related
May 4, 2012
I was so excited to hear about the new pressure pipe networks that I had to get into the software. What I have found is both promising, and a little bewildering. The promising aspects are that the pressure pipes appear to act and function effectively, and in a manner consistent with real world design that is easy to understand and use. Kudos to Autodesk!
That being said, I do have a couple of complaints. First, the pre-loaded fitting and appurtenance libraries are very limited when it comes to sizes and materials that are more commonly found in the land development arena I work in (8" PVC is our bread and butter). Hopefully, additional resources are forthcoming - they usually are.
Second, and more importantly, I can't figure out a way to data reference a pressure pipe network. If we can't data reference the pressure pipe network, then we really can't use them at all, which would be very disappointing.
View 4 Replies
View Related
Mar 2, 2013
is there any quick way to assign reference aligment to pipe network parts?
I use practise to create one pipe network and afterwards i expand my pipenetwork by editing with lots of aligments (create aligment from network part function i use). Bur there occur a problem in my profile view, when i want to represent station value of aligment and there is now reference aligment in pipe part.
View 1 Replies
View Related
Oct 29, 2013
A method (possible expressions) to create a profile view label that can reference pipe or structure data?
View 5 Replies
View Related
Sep 4, 2013
Civil 3D data shortcuts.
So I first created a drawing which included a surface called "CONTOURS" and an existing sewer pipe network. I then created a data shortcut of the existing sewer network and started a new drawing with a proposed sewer pipe network.
When I received better contour data, I created a new "10FT EXIST CONTOURS" surface in the existing sewer drawing and switched the reference surface for the existing sewer structures and pipes to the new "10FT EXIST CONTOURS" surface. And of course I deleted the old "CONTOURS" surface because I no longer needed it.
Now, the part that makes me want to pull all my hair out! When I open the proposed sewer drawing I get all the error messages that "Reference surface 'CONTOURS' not found in reference drawing" for all 22 of the existing sewer structures.
I've tried deleted the existing sewer network in the proposed sewer drawing and recreating the data shortcut but nothing makes the errors go away. Is there any other way the existing sewer structures could be referencing the deleted surface that I have not thought about? How to get the error messages to clear?
View 7 Replies
View Related
Jun 28, 2013
I have a major error currently affecting my work that I need to resolve ASAP. I'm using C3D 2012 64 bit with Windows 7. I have multiple model drawings that I have created pipe networks and view frame groups in, and using those model drawings I have created plan and profile sheets from the view frames. I created data shortcuts of all my pipe networks and referenced the pipe networks into my sheet drawings. In the sheet drawings I drew the network parts into the profiles, and everything displayed exactly as it was supposed to. No issues at all.
Now fast forward about a month. Out of the blue one day I open one of my sheet drawings to perform some edits and notice that the pipes that were previously displayed in the profile views showing inside and outside walls with the centerline turned off now show up as a simple line. I haven't changed any settings at all. I looked at the properties of the pipes, and they seem to have all ignored their asigned diameters- the pipe data in the referenced network now assumes all inverts & crowns are the same elevation as the centerline.
Long story short, I have gone so far as to completely reinstall the program and restart the drawings, but the more I edit the oringal network the worse the problem gets. Now all of my structures are attaching themselves to the surface profile instead of the pipes, and the entire network gets put onto my current layer rather than the layers I assign in the Create Pipe Network Reference dialog box.
It happens to any drawing I try to open on this network- even ones created by third parties that I haven't edited. And the problem resides in the drawing because anyone I send the drawings to has the same problem. It will even crash the entire program sometimes when they try to open my drawings.
Civil 3D 2012 SP3 - Windows 7 64 bit - Intel Core i3-2120 - 8 GB Memory
View 2 Replies
View Related
Dec 14, 2009
I want to change the reference surface for a pipe network with existing pipes and structures. however the changes will only affect new objects, I have to manually change the others one by one. Even with the vista open I can select multiple structures, but when I click in the reference surface column of one of the selected structures, all the others are deselected.
View 6 Replies
View Related
Sep 9, 2013
I have designed a pipe network in Civil 3D 2013, first I created a rule set for both structures and pipes, then I created a parts list, next I built my network.
Where more than two pipes connected to one structure, I found 'applyrules' couldn't align everything appropriately, so I had to manually amend the levels in 3D to ensure the pipes connected correctly (soffit to soffit / top invert to top invert).
My problem is that after doing all this, the surface model has been amended! I have changed the reference surface in the network properties and in the vista. The rim height of my structures seems to have been adjusted in the most part but my pipes have not.
In areas where the surface has gone down, my minimum cover is violated. Is there a way to move the pipes back down to minimum cover, without using 'applyrules', as using that command would change the gradients to the minimum, some gradients have changed during my manual adjustments.
Furthermore, where the surface model has reduced in level significantly, my pipes are now above the surface and the manhole has stayed there too.
View 1 Replies
View Related
Nov 13, 2012
Civil 3D 2012. One structure in my pipe network is not following along when the network is data-referenced in to other plan drawings. The structure is present in the source drawing, and included in the network, along with the pipes that are connected to it. All other structures and pipes are operating fine.
View 3 Replies
View Related
Sep 7, 2012
I have Edited the Conc pipe and added a new profile with three new model parameters to be used as list types in the part type. But it will not hold or change the values when selected.
My workflow (obtained from websites : [URL ]was to:
Check the custom parts flag then create the Geometry / constraints, dimensions and variables.
Added the following Variables (PWks, PDpth, PBed) to the AeccPartParamCfg file in the AeccDfParameter & pipe part type as optional parameters.
Edit the parts XML and changed the context & index for each variable.
Restart Civil3d 2013 and run partbuilder. Regen Catalog > Test Catalog.
The part is validated correctly but when I insert it into a new partslist the values I receive for the new contexts will not come in correct as to what was selected. Also after creating a pipe I can not change any of the new values (it does not hold after apply) & the bottom of the pipe in model seems to be at an incorrect level based from the actual pipe data.
The part worked as expected in partbuilder with different sizes before the XML mods.
If I re-open the pipe in Part builder I see duplicate references for the newly added contexts and their index numbers.
Should I just start again or have I done something wrong in the creation process?
Civil3D 2013 / 2014
Windows 7 Professional 64-bit
Intel(R) Core(TM) i7-3820 CPU @ 3.60GHz (8 CPUs), ~4.0GHz With 32768MB RAM, AMD FirePro V4900, Dedicated Memory: 984 MB, Shared Memory: 814 MB
View 1 Replies
View Related
May 16, 2013
When using Inventor with Vault, we have a problem when categorizing custom content center parts in Vault. In short, custom content center parts are incorrectly categorized as "Content Center" and automatically released - as there is no property that we can use to identify these files.
I need iLogic code to trigger when custom content center files are created/saved, wich adds the following custom iproperty "IsCustomContentCenter=True".
View 1 Replies
View Related
Sep 30, 2013
I'm inserting automatically many references to a couple of dynamic blocks in an AutoCAD drawing using VB.NET. If the number of inserted references is not very big, it works fine but, if I´m inserting hundreds of them, I noticed the app is slowing down a lot.
After taking some measures of the time the app uses in its execution, I noticed changing the value of the block reference property is slower as the number of inserted block increases: it takes 10 or 20 miliseconds at the begining but it can take more than 1 second after inserting one thousand of block references (to the same block).This is the function I use to change the property values:
Protected Sub CambiarPropiedades(ByRef ed As Editor, _ ByRef br As BlockReference, _ByVal nombrePropiedad As String, _ ByVal valor As Double) Dim pc As DynamicBlockReferencePropertyCollection = br.DynamicBlockReferencePropertyCollection If br IsNot Nothing And br.IsDynamicBlock Then For Each prop As DynamicBlockReferenceProperty In pc If prop.PropertyName = nombrePropiedad Then prop.Value = valor '
This line takes a long time the first time I call this function for the ' same block reference but it is faster in the next calls . It also changes the block reference name (br.name) in the first call
Exit For End If Next End If End Sub.
Which I call to change all the properties I need to change in an inserted block reference:
CambiarPropiedades(ed, br, "h_testua", objElementoLaboratorio.POS_TEXTO) CambiarPropiedades(ed, br, "d_texto_hor", posxTexto) CambiarPropiedades(ed, br, "largo", objElementoLaboratorio.LARGO) CambiarPropiedades(ed, br, "fondo", objElementoLaboratorio.FONDO)
A weird thing I noticed is that when I call this function to change the first property of an inserted block, it also changes the .Name of the block reference.
Even if I change the order in the property modification, it takes always a lot in the first call, it does not depend on the property I´m changing.
View 1 Replies
View Related
Oct 15, 2012
I just opened up a project Sheet Set that i haven't worked on in a while, and all of my layout pages have a series of "#" in place of the fields. For example, the name of my viewport should read "Head Detail", which is the name given to that view in the Sheet Set Manager, but instead reads "##############". This also happens with my view numbers, callout bubbles, etc.
However, the information in my title block is still intact. For example, the Project Name, Client Name, Page Number, etc. all read the correct values.
I tried opening the drawings in Reference Manager, but I see no alerts or errors. I have had this happen before in previous versions going back to at least 2010, but they have always been small projects and I just recreated the views and callouts. This is a large project however, and redoing this will cost hours, if not days of extra work.
In examining the fields, it seems like the problem fields are those defined by the SheetSetPlaceholder Filed Name, and the Placeholder type is irrelevent; they are all broken. For other Field Names, for example CurrentSheetNumber, the references still work.
View 1 Replies
View Related
Apr 11, 2013
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 Related
Feb 21, 2013
We 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
View 9 Replies
View Related
Aug 6, 2012
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.
View 8 Replies
View Related
Jul 8, 2011
Good site that would show how to write VB expressions for the Sub Assembly Composer?
View 5 Replies
View Related
Sep 18, 2013
I am using AutoCAD 2014 and VB.NET 2010. I am trying to get the value of a custom property and cannot seem to do so.
The old command I used for AutoCAD 2010 was:
ThisDrawing.SummaryInfo.GetCustomByKey(strParameter, strValue)
But this does not work anymore. So I created this sub but it does not seem to work either.
Public
Sub subFindCustomParam(ByVal strUserParameter AsString)
Dim infoDB AsDatabase =Application.DocumentManager.MdiActiveDocument.Database
Dim infoBuilder AsDatabaseSummaryInfoBuilder = NewDatabaseSummaryInfoBuilder(infoDB.SummaryInfo)
[code]........
View 1 Replies
View Related
Mar 18, 2013
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.
View 1 Replies
View Related
Apr 11, 2013
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}
View 1 Replies
View Related
Nov 15, 2012
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 Related
Nov 28, 2012
I have structures and alignments data referenced. If I assign the structures ref alignments in the dwg with the data refs for labeling, the next time I open the dwg the ref alignments are set back to none, causing the labels to be ?
It seems like this worked in the past?
View 1 Replies
View Related
Apr 11, 2013
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}
View 8 Replies
View Related
Jul 28, 2011
I am getting this error in my production drawings.
My setup is as follows:
- EG.dwg has my existing surface in it. I create a data reference to use it in other drawings.
- Level One.dwg has the EG surface data referenced in, and I use this to create alignments, profiles, and finish surface. All of these are turned in to data references.
- Storm Sanitary.dwg has my pipe designs. I data reference in the two surfaces, profiles, and alignments, and create pipe networks. I create references for these networks.
- Plan Profile.dwg is the production sheet I'm getting this error from. Every one of my civil objects is data referenced in to this drawing. Everything is inserted correctly, the pipes show correct FG surface elevations for their rims, etc.
BUT when I open this drawing, I get this error. I assume it's because my FG surface is not directly in the storm sanitary.dwg.
How do I get rid of this error, without combining drawings, or promoting the surface to one or more drawings? Isn't this exactly what data references is made for?
View 1 Replies
View Related
Nov 30, 2011
I am trying to create a sketched symbol on the fly that has custom properties in it. I am also creating the custom properties on the fly. I need to get the actual expression for the property into the sketched symbol not just a value. I need this so that I can export the drawing as an autocad .dwg that has attributes in it.
View 3 Replies
View Related
May 27, 2013
I am mainly developing for AutoCAD 2013/2014 how to implement a custom property as a drop-down list using OPM and .NET/C# wrapper. I have successfully created categorized custom properties already and can read/save them in XRecords via the OPM. I further implemented the members for IDynamicEnumProperty (using an ObjectARX DLL) in .NET/C# which are:
// ENUM-PROPERTY INTERFACE METHODS DEFINITIONenum myEnum{ steel = 0, copper, wood};public void GetNumPropertyValues( int numValues ){ numValues = 3;}public void GetPropValueName( int index, out String valueName ){ valueName = Enum.GetName(typeof(myEnum), index);}public void GetPropValueData( int index, ref Object valueName ){ valueName = index;}
And I have implemented the GetCurrentValueData() and SetCurrentValueData() members in my .NET/C# wrapper as per the IDynamicProperty2 interface as following:
public void GetCurrentValueData( Object pUnk, ref Object varData ) {AcadObject obj = pUnk as AcadObject; if ( obj != null ){using ( Active .Document.LockDocument( DocumentLockMode.ProtectedAutoWrite, null, null, true ) ){using ( var tr = Active.Transaction ){ObjectId ObjId = new ObjectId( (IntPtr) obj.ObjectID ); DBObject DbObj = tr.GetObject( ObjId, OpenMode.ForRead ); if ( DbObj != null ){try {if (
[code]....
This code compiles without error but instead of the expected drop-down list the OPM only shows a field where I can enter or edit integer numbers, but there is no drop-down list when clicking on the field....
View 1 Replies
View Related
Dec 12, 2012
The SheetSetObject has an inbuilt custom property called "TransmittalSetups", but the property has a different internal object structure compared to other CustomProperty
Ie:
[code]
Dim myPropEnum As IAcSmEnumProperty = myCPB.GetPropertyEnumerator
Dim myPropName As String = Nothing
Dim myPropValue As AcSmCustomPropertyValue = Nothing
myPropEnum.Next(myPropName, myPropValue)
[/code]
myPropName is a string, and in this instance it returns a value of "TransmittalSetups"
myPropValue.GetValue is a string, and it says "System.__ComObject" not a "value".
So my question is, how do identify this object, how to interigate it or assign it to its native object type.
I have tried to cast it to different IAcSmEnum types but without success.
View 9 Replies
View Related
Sep 21, 2011
I would like to set the custom property format for all user paramters from an iLogic code. This is what I've come up with. It runs, but it does not seem to alter the custom property format. What am I doing wrong here?
DimoPartDocAsPartDocument
oPartDoc=ThisApplication.ActiveDocument
DimoParameterAsParameter
ForEachoParameterInoPartDoc.ComponentDefinition.Parameters
oParameter.ExposedAsProperty=True
ShowUnitString=True
ShowLeadingZeros=True
ShowTrailingZeros=False
Precision=kTwoDecimalPlacesPrecision
NextoParameter
i7-2720QM Dell Precision M6600, Win 7 Pro 64-bit, 8GB RAM
Autodesk Product Design Suite Ultimate 2013
Autodesk Vault Professional 2013
View 9 Replies
View Related