I want to find the cardinal points ( N, S, E, W) of each face of a closed polyline, can you give me ideas about how?
Not sure what you mean...can you elaborate more? Maybe an image?
There is a Face.GetVertexAt method, which gives XYZ coordinate of each vertice.
Using BREP you may extract more data, such as normal or derivate.
Not too hard.
I actually do this type of calculation quite a bit, so I should have somecode laying around that I will post later if you need it.
Thank you very much,
I have got rooms like in the image below, sure there are windows and doors in it, the problem is to find the direction of each wall around it (which one is forward to North, South, East,West). What my proposal was, to explode the walls, check for the intersection between the wall segments and the room, if there are any, find a polar point 90 ° from the mid point of wall segment and check if it is in the room, if not then it is the direction of the wall. But I'm sure there are some .net methods to make it simpler. Any code will be very appreciated.
I'm not sure if i understand, but if you are trying to find the the inward side of a wall, you can make a little fence or crossing selection at the mid point, with a filter on the layer of the room segments, if something is selected, then it's a inward wall side.
There are lots of walls and rooms in the drawing, the problem is which wall is arouns which room and then what is the direction of each wall. This link is an example of revit and tells exacly what I'm trying to do.
Is it possible to do the same thing in Autocad?