Adaptive family - perpendicular to curve

Adaptive family - perpendicular to curve

andre.micka
Advocate Advocate
3,638 Views
9 Replies
Message 1 of 10

Adaptive family - perpendicular to curve

andre.micka
Advocate
Advocate

Hi,

 

I am trying to create an adaptive family from imported points with Dynamo.

 

I create reference points and reference line with dynamo.

After, I divide the line and attach a profile (another adaptive component) to repeat on the curve.

 

When I send this family in the project, I verify the coordinates and I have found that the repeated adaptive component is not really perpendicular to the curve. Look at the red lines which are the real surface of the element (from autocad)

 

Capture d’écran 2021-03-25 115556.png

Is there a way to have a real perpendicular adaptive component ?

 

Thank you

 

0 Likes
Accepted solutions (1)
3,639 Views
9 Replies
Replies (9)
Message 2 of 10

andre.micka
Advocate
Advocate

With the files it is better !

0 Likes
Message 3 of 10

andre.micka
Advocate
Advocate

No one here ?

0 Likes
Message 4 of 10

FAIR59
Advisor
Advisor

A.f.a.i.k. there is no automated way to orient a family to the vertical and perpendicular to a line. You have to define the vertical yourself. Fortunately that is relatively easy with your problem. Make a 2nd identical divided path with a vertical offset.

  • Set the adaptive points to [ Global (z) then Host (xy) ] this defines the vertical.
  • Set the workplane to the horizontal plane of the first adaptive point, and place a reference point onto the adaptive point, giving it an offset.
  • repeat for the shape handle points and the other adaptive point.
  • select all the reference points and make a spline 
  • make a divided path from the spline, with the same number of points as the original one.

tablier_01.JPG

 

Make a 2 point adaptive family with the adaptive points set to Orient to [ Host (xyz) ]. Place a reference line between the adaptive points, place a point on the line and host your section profile to the correct plane of the point. 

 

  • place the 2-point adaptive family on a point of the divided path and on the point above of the 2nd divided path. The reference line in the 2-point adaptive family between the adaptive points is now vertical and perpendicular to the divided path. 
  • repeat and create form

 

0 Likes
Message 5 of 10

andre.micka
Advocate
Advocate

Thank you for your help.

 

The problem is not with the Z axis, it is in the XY plan view.

 

The profile are not perpendicular to the curve.

 

Maybe I was not enough accurate.

 

Thank

0 Likes
Message 6 of 10

andre.micka
Advocate
Advocate

Thank you @FAIR59 ,

 

I red again your response and it is exactly what I need.

 But... I don't find the way to achieve what you have done...

Some steps are not familiar to me. I never used adaptive family before.

 

Is it possible to you to make a screecast to show me step by step with a simple rectangle please ?

Is this part must be manual ? ==> 

  • Set the workplane to the horizontal plane of the first adaptive point, and place a reference point onto the adaptive point, giving it an offset.
  • repeat for the shape handle points and the other adaptive point.

Than you very much for you help

 

 

0 Likes
Message 7 of 10

FAIR59
Advisor
Advisor
Accepted solution

Some pictures to clarify things:

ReferencePoint onto another Point:

  • set workplane to horizontal plane of (adaptive ) point  
  • RefPoint01.PNG
  • place point onto (adaptive) point 
  • RefPoint02.PNG
  • select point and define offset
  • RefPoint03.PNG

This process can be automated

 

ReferencePoint hostpoint; // AdaptivePoint or ShapehandlePoint
XYZ offset = XYZ.BasisZ.Multiply(3);
XYZ newlocation = hostpoint.Position + offset;
PointOnPlane planeref = PointOnPlane.NewPointOnPlane(doc,hostpoint.GetCoordinatePlaneReferenceXY(),newlocation,XYZ.BasisX);
ReferencePoint newPoint = doc.FamilyCreate.NewReferencePoint(planeref);

 

 

2-Point family for section-shape:

  • host point onto reference line between the 2 adaptive points:
  • Nested_01.PNG
  • set workplane to a plane of the point
  • Nested_02.PNG
  • sketch profile
  • Nested_03.PNG
  • select point and move point to final position, by giving the [ Normalized Curve Parameter ] the value 0.
  • Nested_04.PNG 

 

 

0 Likes
Message 8 of 10

andre.micka
Advocate
Advocate

Thank you very much, that works great !

 

Just a last question the automatisation of your last post,  how do you use it ? In dynamo ?

 

Thanks again

 

 

 

0 Likes
Message 9 of 10

FAIR59
Advisor
Advisor

The code are the basic "calls" you'd have to make , when writing a macro or add-in. And also a dynamo node (if any exists) will use the same calls behide the scenes. 

0 Likes
Message 10 of 10

andre.micka
Advocate
Advocate

I have another question to complete this tread.

 

I tried to had anoter adaptive point to the section shape family.

This 3rd point is here to set the slope and the width of this rectangle.

section shape.png

 

I have now 3 path. 2 for the verticality and the 3rd for the width and slope.

paths.pngI can't make it, the geometry is either deleted by revit or the geometry of the rectangle is not conserved.

 

Is it possible to make this ?

0 Likes