Update the curve of "add component (curve) / Workplane

Hi

I have created a generic family curve based.

I add a line in the XY plane and apply the family. It woks perfectly, the I use the Element curve to be applied in a different curve, as I want to update the geometry f the model and its perfect.

However, If the firt line is in 3D (end points have not the same Z value), I can create the element, but when I apply a new curve with the “curve element” component, it just updated the element “start” point (see image below)

Element 3 is at the start and lenght of curve 2, but the orientation of curve 1 (the original inpunt), so it makes a translation of the element, not an orient.

How could I orient 3D the element? “element location” has the same problem, I can update location but not inclination.

I can do work arrounds to achive it, but, Is there any way to update the “work plane” of an element with grasshopper? If I try to modify it with “elemet parameter”, it says it is “read only”.

thanks

Hi Adria,

Can you post the family as well as the version of Revit & Rhino you are targeting? Thanks!

Hi,

Thanks, I upload the Basic generic model family (linear) - It is just a extrusion anyone can make its own. (I did in Revit 25, if anyone want to try in other revit, the family is just a profile extrusion along the referencecurve).

I don’t attach a revit file, because it can be done in any empty new file, just load the family on it.

For the GH file, I work wih rhino 8, but all were basic comand and RIR components, so U can be able to open in any GH or u can easyly replicate:

curve based component:

WP generic model (the family is created in GH as generic model basic template):

Let me know if it works for anyone, any questions and how would you solve this problem.

Thanks,

RVT25_test generic family linear.rfa (452 KB)

Rh8_revit update element curve or location.gh (28.5 KB)

Hi Adria,

The family still has a location (origin), its deceptive due to when picking your two points in the Revit UI to place the family they first is the Location and Start Point, but you could have your Curve away from the origin in the family.

Hi Japhy,

So, do you think its possible to achive that I can update the Work plane or the base curve of the element and make the element to be updated to such a new input?

Because when after using the element curve component, and check its location:

I can see that the element location is where I would expect it to be, even with the correct orientation, but the element itself it is faceing somewhereelse.

I have unpinned the revit elemnt and check:

It says that the end point of the control line is where grasshopper says, but drawas the element not following that point. I can move that point manually, and it never goes there, I think It projects it to the original Workplane that it used when creating the element in GH.

So, is it possible to change the Workplane with GH?
can I make the element to follow the new curve or the new location precisly? (pyramid family example).

How would you change the orientation of a 3D element in the space without creating it again?

With the Structural framing comand, this “curve element” update system works perfectly, So I expected for the genereic model curve based to work with the same logic as its a curve based family.

Thanks,

The Generic Model Curve based family template doesn’t have the WorkPlane option.

One way to do this would be to create a regular generic model with a length parameter and place by Location to a Plane, feeding the curve length to the parameter.

when I select the Genereic Model Curve based Element in the global model, it says it works with a Working plane.

Even the component in GH “ask” for a working plane, which I always left empty and I think it does ont with X tangent to the line and Z as global Z if possibe. The component also give you the resulting WP used.

My guess is that there is no Work Plane option, because Work plane comes by default and its a must as he curve defined as input MUST be in a defined plane.

I think your solution just works if you rotate and control the position inside the family, but then in the global model its placed in XY work plane.

Check the second part of the script I posted:

So generic families that can be placed by location dont work either:

if placed by location is always Vertical, if placed by work plane, the family works:

But if I want to change location by element location, I get 3 results:

It can´t go to another plane that is not paralel to the original Work plane.

This is the GH equivalent of what I ould like to achive:

Thanks,

Here I am using a line-based family placed on an inclined surface. I first set the hosting plane using the work plane option. Then, I use the Element Curve component to control and set the length of the family instance.

If you only provide the work plane, the Add Component (Curve) component will align the element according to that plane. However, if you want to place the element directly on the referenced surface, your driving curve must also lie on the same plane as that surface.

Hi Muhammad,

Yes, you can iput a face or working plane, or if nothing, it creates it automatically.

However, once the element is created, can I change the face/WP?

As you say, I can change the curve element as long as this curve belongs to that face or to a plane that is an offset to that face, otherwise it kinds of projects the curve there.

So is there any component that can edit the Workplane or pick a new one for the element, in GH? or it must be created?

No you can’t because its already hosted on face. updating the host via API is not provide.

As a workaround you can also create adaptive family and place it as per your point locations.

Thanks Muhammad,

I hope they could provide that API at somepoint.

I have some work arrounds in mind to solve the problem with the curve based.

What do you think about creating a dummy object in whose face the element is placed, then I can update the dummy object geometry and therefore the curve based element would be updated.
I did a quick test and it crashed, maybe it creates a loop or is too time consuming. Do you see it as a possible solution? it´s similar to the adabtive family approach.

thanks,

In my option the best option is to fully utilize the existing component. Does your workflow need continuous update of the driving curve?

Hi,

Well, it’s a new workflow that is matching one we use for structural framing elements, that is based on updating the element curve.

We feel pretty good with that orkflow and tried to replicated here, but it looks that it can not be applied so straight foward. We will try to see how to make it work.

By the way, I tried with using a face of a dummy obejct and just update the face used or the dummy location, and it did work. I don´t know if this could work as a user friendly workflow for big projects, but we may study it.

Thanks for all your replies, it was really useful.