Creating a Parametric Spline

Creating a Parametric Spline

AlexLibengood
Advocate Advocate
2,700 Views
7 Replies
Message 1 of 8

Creating a Parametric Spline

AlexLibengood
Advocate
Advocate

I feel that I'm so close to creating a parametric spline family using the adaptive family type.  I've attached an example family here.

 

In this family there are two splines controlled by reference points.  The reference points are locked to my reference planes which are controlled by "Length", "Depth", and "Height" instance parameters.

 

The two splines are currently flexing exactly how I want them to as the parameters change.  When I select both splines and do the "Create Form" function, the resulting form looks great, but as soon as I change one of the parameters, I get a "Constraints are not satisfied" error.

 

Am I missing something?

 

Thanks!

0 Likes
Accepted solutions (1)
2,701 Views
7 Replies
Replies (7)
Message 2 of 8

barthbradley
Consultant
Consultant

Reference Points can be hosted to and driven by other Reference Points.  Are you familiar with this?   

 

https://knowledge.autodesk.com/support/revit-products/learn-explore/caas/CloudHelp/cloudhelp/2016/EN...

0 Likes
Message 3 of 8

AlexLibengood
Advocate
Advocate

I am, but I haven't been able to get it to work with that either.

0 Likes
Message 4 of 8

barthbradley
Consultant
Consultant

@AlexLibengood wrote:

I am, but I haven't been able to get it to work with that either.


 

No offense, but you are doing it all wrong.  The key is exactly what I said above. You need to Host Ref. Points to other Ref. Point WORK PLANES and drive them via their Offset Parameter.  

 

Here's a simple Family that shows what I'm talking about.   

 

 

0 Likes
Message 5 of 8

barthbradley
Consultant
Consultant

Here's a start. I hosting all your RPs to other RPs and associated the "Height" Parameter to them.  Play with the "Height" Parameter value and see what happens.  Now, you are going to do the same thing for the "Depth" and "Length". In the end, your Spline Family will have no Reference Planes or Labeled Dimensions in it.  It will be like the fully parametric "Attic" Family I posted before.  

0 Likes
Message 6 of 8

AlexLibengood
Advocate
Advocate

Ok, I see in your attic example how you have all the reference points chained together with each referencing the previous one.  I recreated my spline family like this, and again the splines are moving exactly how I want them to when the parameters are changed.  When I select the two splines and hit "Create Form", the form I want is created.  However when I change the parameters, now instead of throwing an error, the form just doesn't move.  It's like the reference points lose their hosts after the form is made.

 

Attached is my updated file right before "create form" is initiated.

0 Likes
Message 7 of 8

barthbradley
Consultant
Consultant
Accepted solution

Change your Spline Line into a Reference Line (e.g. check the "Is Reference" box).  

0 Likes
Message 8 of 8

AlexLibengood
Advocate
Advocate

THAT was it!  It works now.  I also did the same thing in my original file with the reference planes and it worked too!  Thanks!

0 Likes