I’m working on a graph that will automatically model conduit. So right now I have the user selecting from the available conduit types then manually entering the size (1/2", 3/4", 1", etc.).
What I would like to do is pull all the available conduit sizes from the Electrical Settings in Revit and make that into a Radio Button input.
I’ve been looking in the API to see how to do this and kinda running into a wall.
size = Autodesk.Revit.DB.Electrical.ConduitSizeSettings.GetConduitSizeSettings(doc)
This does get a Conduit Size Settings element just not sure what to do with it after that.
I’ve also tried this:
conset = Autodesk.Revit.DB.Electrical.ConduitSettings.GetConduitSettings(doc)
This gets a Conduit Settings element.
I’m wanting to get the OuterDiameter and NominalDiameter for each one.
Which I tried:
outdia = Autodesk.Revit.DB.Electrical.ConduitSize.OuterDiameter
But I believe you have to have an element selected to get that. Which I’m creating the conduit elements from a defined path.
Didn’t know if anyone had any pointers. I’ll make another go at this later and update if I find anything.