Okay, I know this is the Discussion Group for customisation but the .Net group proposed this must be mentioned/asked here as well, so here goes.
In C3D (2012 or 2013), the Pipe Properties Dialog reports "Hydraulic Properties" of a pipe section. Through .Net (C#), I can access part data such as Hydraulic gradient etc but I cannot seem to find any reference to three members I see on the mentioned dialog aka "Flow Rate", "Junction loss" and "Return period".
I have "fudged" a term "Flow Rate" into the pipe part parameter definition file (AeccPartParamCfg.xml) and can access that programmatically but I think this "Flow Rate" in the Pipe Properties Dialog" is part of the Auotcad database and I cannot seem to find a route to get hold of it.
Anyone out there that can shed more light on this issue?
This code snippet my help
Thanks Justin, I have seen this and tried it. If you have a look at the "PartContextType" in the VS broser, you will see that the "flow rate" element is not listed there.
Looks like these three ( "Flow Rate", "Junction Loss", "Return Period" ) hydraulic properties are not yet exposed in API. Please let me know if they are important to you. I will log a wish list for the same.
Thanks for coming back and the answer is what I started to suspect.
I'd guess it will be crucial for any user of the network and pressure pipe sections. Flow rate and inside diameter (and velocity) is critical data for assessment or future changes. I will address this with adapting the pipe config files to have an optional data set for flow and velocity available anyway.
For me, I am busy with an interface to write a network to EPANET (finished that part) and to bring the final design back to the Autocad's networks (working, but I need to put flows to a pipe and therefor my question)
MODS, I pressume we can see this thread as answered then.
Thanks for the update. Yes, I understand the need to expose these properties in .NET API. I have now logged a wish list for the same.
No, I did not replicate and can iterate through what I have added, no problem. The issue brought to attention was more towards being able to use existing elements as incorporated by Autocad rather than "editing" stuff to suite.
Thanks for contribution!
I understand that this is a very old discussion. But, I'm trying to write out properties to a file to run an EPANET model of the network that is layed out in Civil 3d 2013. I'm having trouble getting the pressure pipe lengths. Whether I use the Length2DCenterToCenter or the Length3DCenterToCenter property of the PressurePipe class I get an error "Retrieve Attribute Failed." Has anyone encountered this problem before? And what if any was the solution?
I understand that this is a very old discussion.
It's not that old, but it is talking about the regular Pipes (gravity) not the Pressure PIpes that you are looking for answers to. You should start a new thread, and it would help us to help you if you could provide some sample code that exhibits the issues you are asking about.
Log into access your profile, ask and answer questions, share ideas and more. Haven't signed up yet? Register