i’ve been trying to import a curve from Revit and have multiple profiles along that curve then sweep a solid through all these profiles but somehow Dynamo ignores one profile and considers only the other when i use solid by sweep though i used a list to combine them all together.
“Converting an array to Autodesk.DesignScript.Geometry.Curve would cause array rank reduction and is not permitted”
The whole idea from the script was to generate points on a curve and sweep a profile that changes from family to the other at a specified distance, i tried doing that in the massing environment which can be done only if its a SINGLE spline not multiple arcs
It’s an interesting topic but I can’t test it right now (maybe someone else could). Take a look at Solid.ByLoft (crossSections) in the Dictionary: what you probably need is to position your profiles along your path first. Also look at PolyCurve by Profile Family Type from Archi-Lab Grimshaw to import your profiles polycurves…
As you are new to the forum (and in case you didn’t read it already), I would also invite you to browse this useful page where you can find good advice on how to get help (for instance, use the @ if you want to address your issue to someone specific):
Thanks alot for your straight answer, feels much better to understand the reason ! @Mostafa_El_Ayoubi
now im gonna try to make it even more complicated ‘for me’
how about if i want to have more than one curve connected and distribute the families along start center end of each curve then loft among all families
i reached somewhere with my script but i’m having few issues which are :
1- i have duplicated families because of my ( start, end ) point list.
2- when the curve flips from convex to concave some of the families are flipping ( normal plane issues ) @Mostafa_El_Ayoubi i had a look at a post where you answered that but couldnt really implement it in my script.
3- IF i sorted everything else, how can i then rearrange the list to make my Loft.by solid actually work based on the correct order.
i’m sorry for making it so long but im still new to all of this! many thanks !
Since you have a big number of elements, I thought it would be beneficial to avoid having to select them… In the screenshot above you can see that the script makes one path from all the reference curves and sorts the profiles along that path automatically.
Now if you try this with the .Rfa you posted in your previous post, it wont work because your profiles are not on the reference curves. They are very close but not on them, so the loft operation fails.
thought i wanted dynamo to first generate the points on the curve by itself no matter how many curves i have and sort the start/end/mid points for each separated curve by itself then place the families also by a formula based on that concept. ( i think i’ll take it easy on myself and think more of how to do that )
with a bit of manual work this actually SOLVED all the issue! thanks to you man !