Solidworks VBA - Get Routing Pipe Cut Lengths & Fittings List

Can anybody help?

 

Using a Solidworks Vb.Net application, is it possible to get a list of fittings (elbows, tees, reducers etc) and a list of pipe size & cutting lengths from pipe routing assembly?

 

Many thanks in advance!

 

Darren

 

 

Answers 2
JS
JS 2025-05-20

Did you go through the Routing Interfaces in the API Help?

comment imagecomment image
GM
GM 2025-05-21

Short answer: Yes you can. I do this for my hose route stuff.

 

You would be better off writing a VBA macro to do this instead of a VB.NET app. If you are looking for a macro then you might get some help here, but I don't think anyone will make a stand a loan App for free.

 

If all your parts are in your routing library, then you can do this pretty easy with just property calls. Routing items all have a few unique properties (one being the length of the pipe) you can use.