i have a ducts with random angles
is there a way to align the section box 3d view to that duct using dynamo instead of manual rotating which will not be accurate
Hello @yinodo2737 and welcome
yes its possible…try take a look at this post here and share what you have tried so far, unlees its just a question ![]()
iam a nweb. i only know the basics get parameter, set parameter and these things
my thought process is to get the rotational angle of the duct then set rotation of the section ox but i don’t know how xD
try first with a boundingbox with miniun volume as a start
You could try pulling the geometry, getting the bounding box by minimum volume, extract the coordinate system and dimensions from that, and use those values to generate a bounding box in Revit, which could finally be used in a View3D.SetSectionBox method; however I don’t know if there are limits therein.
may you please provide a graph if you are free as iam a complete beginner
i tried that by the help of ChatGPT but couldn’t find the node that would create the bounding box by coordinates
Yeahhh try as here and see if it could work

TEST.dyn (9.5 KB)
Instead of a generic AI built for general purpose stuff you’ll want to use something focused on Dynamo use. Have you considered registering for this alpha offering?
Thanks it worked flawlessly
just askingis there a way to do it with nodes only?
yeah a longer way…but not sure we have a View3D.SetSectionBox as ootb anyway as i guess will be the critical one
but havent tried
Hi,
we can also use ByMinimum.Volume
ye thx it worked with python
was just wonder if its possible with nodes only just to learn
Hi Ahmed
I am afraid not, if you mean OOTB nodes, but you could take the P node and create a costum DYF…it will probably be the closest…and btw its the same as View3D.SetSectionBox node as i think is from Clockwork, is written in Python as well, but just stored inside a Dyf as well…hope it make sense, for learning just try go to Primer, or/and follow in this forum here, and just practice so much you can..and then suddenly you will be an expert
PS youtube is great as well i like Aussie Bims videos, and Autodesk Office hour…as is good too IMO ;).
