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?
Thanks
Geurt
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.
Cheers
Hi Geurt,
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,
Partha
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.
Cheers
Geurt
.
Hi Geurt,
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.
Cheers,
Partha
Mike
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?
@Anonymous wrote:
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.
Thank you. I see now that there were more recent posts. I was particularly interested in the post from 11-4-2008 because EPANET was mentioned... That seemed like a long time ago. I've started a new thread. I appreciate any suggestions.
Eli-bro
Due to pressure pipe API not fully functional and not fully exposed as yet, I utilise gravity pipes as a "pressurised" pipe system that I can use in EPANET.
Cheers
This is quite an old post, however I'm in Civil3D 2018, and the "Flow Rate" is still not exposed to the API. Is there an ETA on that?
@Anonymous wrote:
This is quite an old post, however I'm in Civil3D 2018, and the "Flow Rate" is still not exposed to the API. Is there an ETA on that?
Is there something that I am missing in this conversation?
I must be accessing pipes in a different way than you are. Also, I am actually getting a request to put a flow rate on a regular gravity pipe, not a pressure pipe.
@Anonymous wrote:
I must be accessing pipes in a different way than you are. Also, I am actually getting a request to put a flow rate on a regular gravity pipe, not a pressure pipe.
Yeah, It looks like you are accessing the pipe via the COM (Interop). I am using the managed .NET API.
Autodesk.Civil.DatabaseServices.Pipe
Try accessing your pipe using the managed API and you will find that property available.
@Anonymous wrote:
Hi Geurt,
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.
Cheers,
Partha
@Anonymous , are these properties already exposed in the latest .Net API?
oops, last thread was old. Meant this to go here.
I find VBA a much quicker development strategy for most of the things I want to do. Will the ActiveX environment ever show these hydraulic features?
Can't find what you're looking for? Ask the community or share your knowledge.