hello everyone, I’m looking for a solution to create Curve.ExtrudeAsSolid at Curve,Vectro and Distance. How can I add the correct vector for the 4 defined beams? First of all, how can I link the vector to direction, which function should I use?
I’m not quite sure I follow what the issue is. Your vector is defined as a distance and direction. Direction is already expecting a vector so you can just use it as-is. Distance is expecting a length. If you wan to use the vector length you can get it using Vector.Length
(or just use Curve.ExtrudeAsSolid(curve,direction)
to use the vector for both).
thanks for your answer, yes but the problem with it is that you can link a vector like (8,0,0) as input to the direction, but I have a list vectorX=8,00, Y=0,00 etc. Besides, I can only link one Vector to Direction, but the 4 Beam(Solid) have 4 different Verctor.
The node can handle lists. You’re already providing four curves, so each vector will be associated with the curve at the same index. You can provide four distances as well or just one if they all use the same value.
What happens when you provide the list of vectors? What are you expecting it to do that it’s not? Do you want all four curves to extrude with all four vectors? That would require list levels.
It looks like your vectors don’t have Z values. You can’t extrude in the XY plane if that’s where your curve profile exists.
They’re all X and Y aligned vectors with no Z component. You have to extrude out of the plane. This is the equivalent of sliding a piece of paper around on the table. It can’t create a 3D object if you stay in 2 dimensions.
Can you explain where these elements come from and what you want to do? I don’t think you have the right objects at the moment.
I want to exchange my structural model from Rfem in Revit with Dynamo, thereby exporting all geometric data from Rfem as an Excel spreadsheet and then modeling it with Dynamo in Revit. I would like to write a diagram that will get this file from Excel spreadsheet and model it automatically. In my model there are three rectangular beams.
Nur Linie.dyn (97.7 KB)
Träger mit Bewehrung.xlsx (550.9 KB)
But where do your current inputs come from? What do you think they represent? You’ve only shared 3 nodes for your whole graph and we have no other context about where you’re getting these vectors from or what you expect them to do. The current inputs will not extrude a valid geometry.
I just uploaded Excel file and Dynamo file. if you had time, could you take a look at them?
We can’t run your graph without a Revit file. It’s easier if you just share a screenshot with all the information as you’ve executed it.
This shows the vectors (highlighted blue lines) and the curve profiles (concentric rectangles). How would you expect the rectangles to be extruded along those lines? The profile should be extruded upwards to create a solid. The default inputs of the ExtrudeAsSolid
node show this using a (0,0,1) vector.
What kind of result are you expecting?
OK, we need to make sure you have the correct geometry then. You need to create your rectangles at the start of the associated line and in the correct plane. You can start by using a different Rectangle creation method. Either a ByPoints
method or the ByWidthLength
method that includes a coordinate system (to set the origin and plane) should work.