Angle parameters

Angle parameters

eizinmyat
Advocate Advocate
282 Views
1 Reply
Message 1 of 2

Angle parameters

eizinmyat
Advocate
Advocate

Hello everyone,

 

I created a parametric family with blend and made angle adjustment parameter because I would like to make the trapezium. I would like to join these parameters with grasshopper scripts.

 

But my problem is that I can only make my trapezium only the direction to the left, cannot to right. If I insert 0 in angle adjustment, it became rectangle. I got error if I insert (-value) in it. How could I solve this problem? If you have any ideas to move to both direction, could you explain it to me?

 

I attached the rfa.file I have created and the sample video.

Have a nice day, everyone!!

Please mark this response as "Accept as Solution" if it answers your question. Kudos gladly accepted.

Ei Zin Myat
Technical Sales Unit Engineer
ONESTRUCTION Co., Ltd.
eizinmyat@onestruction.com
0 Likes
283 Views
1 Reply
Reply (1)
Message 2 of 2

SteveKStafford
Mentor
Mentor

This was originally posted in April so you've probably resolved it by now.

 

If the family was the same on either side of center then the easiest way to solve it would be to add a double horizontal control to let the user flip the orientation of the family whenever the opposite direction is required.

 

One way to allow moving an element in either direction relative to the family's centerline is to define the origin or basis of the movement offset from the family, away from the origin or center. For example, create a pinned reference plane at a specific distance, use a locked dimension, to the left of center in the family, far enough away that the maximum movement required is not exceeded to the left.

 

Then to input the offset dimension you create a parameter to enter the desired offset and another parameter to evaluate that relative to the actual centerline of the family. If your left reference plane is 10 M from the centerline then the input value provided in offset can be used to adjust the actual position of the form. If instance parameters are used then the element can be "dragged" to a new position on either side of the center of the family. (see image and revised attached family)

 

SteveKStafford_0-1725670599005.png

 


Steve Stafford
Did you find this post helpful? Feel free to Like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.
EESignature

0 Likes