What is the use of XYZ normal in NewFloor() method?

What is the use of XYZ normal in NewFloor() method?

Anonymous
Not applicable
770 Views
5 Replies
Message 1 of 6

What is the use of XYZ normal in NewFloor() method?

Anonymous
Not applicable

My floor type is like this:

3.png

 

when I use the xyz(0, 0, 1) to create a floor, the result is:

1.png

 

when I use the xyz(0, 0, -1) to create a floor, the result is the same:

1.png

 

No matter which XYZ normal I use, the result is the same.

How can I create a floor like this? Let the yellow on top.

2.png

I look forward to your reply, thank you very much!

 

Richard

 

 

 

 

 

0 Likes
Accepted solutions (1)
771 Views
5 Replies
Replies (5)
Message 2 of 6

jeremytammik
Autodesk
Autodesk
Accepted solution

Dear Richard,

 

Try to solve this in the user interface first, before researching a programming solution.

 

You may have to define a completely different floor layering with the yellow layer first (top) and the orange one last (bottom), inverting the order of the existing layering definition.

 

Cheers,

 

Jeremy

 



Jeremy Tammik
Developer Technical Services
Autodesk Developer Network, ADN Open
The Building Coder

0 Likes
Message 3 of 6

Anonymous
Not applicable

Dear Jeremy ,Thank you for your reply!

This problem can indeed be solved through the user interface.

I just don't understand where the difference between 

public Floor NewFloor(
	CurveArray profile,
	FloorType floorType,
	Level level,
	bool structural
)

and 

public Floor NewFloor(
	CurveArray profile,
	FloorType floorType,
	Level level,
	bool structural,
	XYZ normal
)

 

0 Likes
Message 4 of 6

jeremytammik
Autodesk
Autodesk

Apparently, it was intended to switch the top and bottom face, just as you expected:

 

http://thebuildingcoder.typepad.com/blog/2014/03/creating-a-sloped-floor.html

 

Cheers,

 

Jeremy

 



Jeremy Tammik
Developer Technical Services
Autodesk Developer Network, ADN Open
The Building Coder

Message 5 of 6

Anonymous
Not applicable

Thank you for your kind answer

I have benefited a lot from many of your articles. I believe that as I get more and more knowledge of the API, I will understand the problems that are confusing me now.

 

对于众多在Revit二次开发道路上的人们,您是一位非常可贵的良师益友。//For many people on the road of Revit's secondary development, you are a very valuable mentor.

 

Good luck!

0 Likes
Message 6 of 6

jeremytammik
Autodesk
Autodesk

Thank you very much for your kind appreciation and the best of luck to you too!

 



Jeremy Tammik
Developer Technical Services
Autodesk Developer Network, ADN Open
The Building Coder

0 Likes