I'm creating a wall over a area boundary line, but can't find a way how to place it with Location line "Finish Face: Exterior".
I'm getting geometric data from area boundary:
LocationCurve elLocation = (LocationCurve)area_boundary.Location;
XYZ pt1 = elLocation.Curve.get_EndPoint(0);
XYZ pt2 = elLocation.Curve.get_EndPoint(1);
and then create a line based on it to build a wall:
Line line = doc.Application.Create.NewLineBound(pt1, pt2);
Wall wall = Wall.Create(doc, line, level.Id, false);
This code gives me a wall with Location line and area boundary placed in the centre of it. Is there any way to create wall with Location line coinciding with external area boundary?
Here is an screen-shoot from Revit.
Thank you in advance!