AutoCAD MEP General

Reply
Distinguished Contributor
Posts: 139
Registered: ‎11-18-2007
Message 1 of 37 (3,202 Views)

Overall conduit length, end to end including fittings???

3202 Views, 36 Replies
03-15-2010 07:36 AM
Is there an easy way to do this? I would like to be able to "Select connected branch" on a conduit and have it give me an end to end length.

Thanks.
Employee
martin.schmid
Posts: 1,297
Registered: ‎11-16-2005
Message 2 of 37 (3,204 Views)

Re: Overall conduit length, end to end including fittings???

03-15-2010 12:29 PM in reply to: mike.gustus
There is not a built-in easy way to do this, however, it would be easy to do in the .NET API, and then it would be easy to do in AutoCAD MEP.

The attached ZIP file contains a sample Visual Studio Express project that defines a command ConduitRunLength

To use this, launch AutoCAD MEP, and then use the command NETLOAD
Browse to the file in the ZIP AME2010ConduitRunLength.dll under AME2010ConduitRunLength\AME2010ConduitRunLength\bin\Release\

Now, you can enter the command ConduitRunLength, select a conduit, and it will tell you the length.

Note... this is just a sample, and was put together quickly... you may run into some issues with it with custom (or other) elbow types. If it runs into an issue, it should write to the text window "Could not compute length of elbow".

However, when it works, the full output should be something like this:


Command: ConduitRunLength

Pick Conduit Segment:
4.00 inch Conduit EMT Set Screw US Imperial
Segment 11063 Length 625.103880379972
4.00 inch Diameter 60.0 degree Conduit Elbow EMT Set Screw US Imperial
Elbow 11062 Arc 20.943951023932 Total 20.943951023932
4.00 inch Conduit EMT Set Screw US Imperial
Segment 11061 Length 517.437849747132
4.00 inch Diameter 105.0 degree Conduit Elbow EMT Set Screw US Imperial
Elbow 11060 Arc 36.6519142918809 Total 36.6519142918809
4.00 inch Conduit EMT Set Screw US Imperial
Segment 11059 Length 859.185492543177
4.00 inch Diameter 90.0 degree Conduit Elbow EMT Set Screw US Imperial
Elbow 11058 Arc 31.4159265358979 Total 31.4159265358979
4.00 inch Conduit EMT Set Screw US Imperial
Segment 11055 Length 384.062755422756
TOTAL LENGTH = 2474.80176994475


Martin Schmid, P.E.
Product Manager - Revit MEP
Architecture, Engineering, and Construction
Autodesk, Inc.

Distinguished Contributor
Posts: 139
Registered: ‎11-18-2007
Message 3 of 37 (3,204 Views)

Re: Overall conduit length, end to end including fittings???

03-15-2010 01:16 PM in reply to: mike.gustus
That would probably work for what I am doing, except when I run that command, Autocad kind of sits there looking stupid for a second like it is thinking, then hard crashes and says there is an unknown presentation version (or something like that, the error message disappeared before I could copy it)

Going down the right path though, thanks!
Employee
martin.schmid
Posts: 1,297
Registered: ‎11-16-2005
Message 4 of 37 (3,205 Views)

Re: Overall conduit length, end to end including fittings???

03-15-2010 02:06 PM in reply to: mike.gustus
You're welcome to tinker with the Visual Studio project to see if you can determine what is going on. The application was written on the .NET Framework 3.5... you may need to update the framework on your machine (using Windows Update).

Alternatively, I made modifications to target this to .NET 2.0, so you may try the attached.


Martin Schmid, P.E.
Product Manager - Revit MEP
Architecture, Engineering, and Construction
Autodesk, Inc.

Distinguished Contributor
Posts: 139
Registered: ‎11-18-2007
Message 5 of 37 (3,173 Views)

Re: Overall conduit length, end to end including fittings???

06-22-2010 10:04 AM in reply to: martin.schmid

Hey Martin, over the past few months this has become very useful, is there any chance you can update it to work in 2011 or tell me what I can do to make it work? Right now it works GREAT in 2010, but causes 2011 to crash hard.

 

Thanks!

Active Member
Posts: 6
Registered: ‎05-17-2010
Message 6 of 37 (3,096 Views)

Re: Overall conduit length, end to end including fittings???

07-08-2010 02:21 PM in reply to: mike.gustus

What language was used to create this? C? 

Distinguished Contributor
Posts: 139
Registered: ‎11-18-2007
Message 7 of 37 (2,969 Views)

Re: Overall conduit length, end to end including fittings???

09-25-2010 09:49 AM in reply to: martin.schmid

Martin, any chance you could try to update this work with 2011? I have no idea how to modify what you have done.

 

Right now it works perfect with 2010, crashes 2011 and can't compute the length of elbows if I open a 2011 drawing in 2010.

 

Thanks!

Active Contributor
Posts: 32
Registered: ‎02-18-2009
Message 8 of 37 (2,787 Views)

Re: Overall conduit length, end to end including fittings???

11-11-2010 01:57 PM in reply to: mike.gustus

AMAZING Martin!!!  Your my conduit hero!!! I tried this in MEP 2010 and it works perfectly...I to would love to see this available for MEP 2011. 

 

I would love to see this expanded to do the following:

 

- Ask for start of run (depending on where you select it gives you that length than provides the rest of the info)

- Provide unique tag identifiers

- Be able to select a parallel run

- Option to be able to have the information stored & scheduled

- Create a similar cabletray routine

 

Active Contributor
Posts: 32
Registered: ‎02-18-2009
Message 9 of 37 (2,786 Views)

Re: Overall conduit length, end to end including fittings???

11-11-2010 01:59 PM in reply to: optimus_said_what

and also:

 

- have an option to be able to change output units (current units are inches)

 

thanks again!!

Distinguished Contributor
Posts: 139
Registered: ‎11-18-2007
Message 10 of 37 (2,735 Views)

Re: Overall conduit length, end to end including fittings???

11-16-2010 08:21 AM in reply to: mike.gustus

Sadly, I think we have been abandoned!

You are not logged in.

Log into access your profile, ask and answer questions, share ideas and more. Haven't signed up yet? Register

Announcements
Are you interested in helping shape the Autodesk Community?
We’re looking at a few different ways to improve the “All Forums” landing page and need your feedback! If interested, please take a few minutes to fill out the following Usability Study. Thank you for your time!

Need installation help?

Start with some of our most frequented solutions to get help installing your software.

New AutoCAD MEP Category!

The AutoCAD MEP forum has moved into it's very own category page, and can no longer be found within the Additional Product Forums.

Ask the Community