Convert length to angle in adaptive family parameters

Convert length to angle in adaptive family parameters

Anonymous
Not applicable
3,692 Views
2 Replies
Message 1 of 3

Convert length to angle in adaptive family parameters

Anonymous
Not applicable

I have a reporting length parameter and I want it to influence angle (the longer - the bigger angle you have)
Is it possible to make relationship between length and angle? (the problem is an error "Inconsistent units")

Accepted solutions (2)
3,693 Views
2 Replies
Replies (2)
Message 2 of 3

RDAOU
Mentor
Mentor
Accepted solution

@Anonymous Hi

 

It should be possible

  1. either using trigonometric relationships  (Sin Cos Tan ...etc
  2. or if you have none, the same way you convert values to intiger in scheduling ie: create a parameter which converts the reporter to a unitless number

YOUTUBE | BIM | COMPUTATIONAL DESIGN | PARAMETRIC DESIGN | GENERATIVE DESIGN | VISUAL PROGRAMMING
If you find this reply helpful kindly hit the LIKE BUTTON and if applicable please ACCEPT AS SOLUTION


0 Likes
Message 3 of 3

Alfredo_Medina
Mentor
Mentor
Accepted solution

Here's an example. The units for Length are meters. The units for Angle is decimal degree. Therefore, in the forumla, you need to need to eliminate first the length unit (in this example, meters), by dividing the value of Length by 1 meter. Then, you multiply for a value in the desired units (degrees). In this case, I made Angle be two times the value of Length.

 

2017-02-03_15-49-27.jpg


Alfredo Medina _________________________________________________________________ ______
Licensed Architect (Florida) | Freelance Instructor | Profile on Linkedin