Create floors

Create floors

sonicer
Collaborator Collaborator
1,008 Views
4 Replies
Message 1 of 5

Create floors

sonicer
Collaborator
Collaborator

Does anyone know where is problem? Is there important ordering of the points? how to check is it closed curve?

or there is other problem?

 

                            XYZ profile00 = new XYZ(bod.X + 400 * a1, bod.Y + 400 * b1, 0);
                            XYZ profile01 = new XYZ(bod.X + 400 * (-a1), bod.Y + 400 * (-b1), 0);

                            other point.....


                            slabCurves.Append(Line.CreateBound(profile00, profile01));                           
                            slabCurves.Append(Line.CreateBound(profile01, profile11));                            
                            slabCurves.Append(Line.CreateBound(profile11, profile10));
                            slabCurves.Append(Line.CreateBound(profile10, profile00));



 

 image.png

0 Likes
1,009 Views
4 Replies
Replies (4)
Message 3 of 5

Revitalizer
Advisor
Advisor

Hi,

 

the loop is closed if each end point is used by two curves.

Or if your loop consists of a single closed curve, e.g. a circle or ellipse.

 

 

Revitalizer




Rudolf Honke
Software Developer
Mensch und Maschine





0 Likes
Message 4 of 5

sonicer
Collaborator
Collaborator

thx Tammik...I still use your blog.....

But there was problem with Line start point and end point....One line crossed the other one then it is closed curve but not correct. Solved.


Now I have problem the revit lookup show me the length and angle in metric ...milimeters and degree. thats ok


In C# I get this data in radians and the xyz is in inches.?  Can I change the input XYZ data to metric?


thx.

0 Likes
Message 5 of 5

jeremytammik
Autodesk
Autodesk
0 Likes