Quantcast
Channel: All Revit API Forum posts
Viewing all articles
Browse latest Browse all 66666

Re: Set Normal to create rebar

$
0
0

Hi!

setHook.SetNormal is a class that I've créate to evaluate the normal from a set of coordinates..... and another functions.

my function evaluate y the coordinates have a common axis, and return a xyz normal.... I've already created rebars when all coordinates were liying on an axis for example:

 

set of coordinates 1: the normal is new XYZ(0, 1, 0);

3.92706 1.92077 -0.76725
3.92706 1.92077 -0.04750
0.24606 1.92077 -0.04750
0.24606 1.92077 -0.76725 

 

set of coordinates 2: the normal is new XYZ(1, 0, 0);

3.74456 0.01327 -0.76930
3.74456 0.01327 -0.07000
3.74456 7.70327 -0.07000
3.74456 7.70327 -0.76930

 

set of coordinates 3: the normal is new XYZ(0, 0, 1);

3.56151 -0.00073 -0.20350
3.94556 -0.00073 -0.20350
3.94556 7.71727 -0.20350
3.56151 7.71727 -0.20350

 

and so far so good.... I was creating rebars without problema in the element in Revit

 

here is the hardest part

 

-16.28757 7.02486 1.89219
-16.29806 7.08438 1.93684
-16.29806 7.08438 3.31943
-16.27909 6.97681 3.42700
-16.26392 6.89074 3.42700

 

How to get the normal?

 

and about your question! a rebar

 

Thanks!

 

Luis!

 

 

 

 


Viewing all articles
Browse latest Browse all 66666

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>