Hello to everyone!
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.
https://www.dropbox.com/s/0u46vs43vvfwgay/revit_wall_location_line.png
Thank you in advance (and sorry for my English)!
Solved! Go to Solution.
Solved by saikat. Go to Solution.
Hi
I hope this helps:
http://adndevblog.typepad.com/aec/2012/07/location-line-of-a-new-wall-using-revit-api.html
cheers
Thank you for your answer!
Yes, I tried it, but it gives me a result as in this picture https://www.dropbox.com/s/0u46vs43vvfwgay/revit_wall_location_line.png
Sorry, had not read your query completely. The suggestion I had provided would help place the location line in the newly created wall to what you need but would not align the wall to the area boundary line.
To align the exterior face location line of the wall to area boundary line, you might have to move the wall based on the distance between area boundary and exterior finish line) after creating the wall.
Thank you! Looks like it's the only option.
To be honest, it confuses me a little, that Revit interface allows to determine the pisition of location line before creating a wall, but I can't find a similar behaviour in Revit API. By any chance, so you know if there is a way to set up the locationLine parametr inside create-wall-function's call?
http://forums.autodesk.com/t5/media/gallerypage/user-id/1240000/image-id/52136i8C943404C7692921
Thats correct. The UI does allow setting the location line to be set before creating a wall while the API does not (which has been mentioned in my blogpost). If you are an ADN member, please log a case and request the Development team for review.
In Revit 2018 does it possible to create wall with finish exterior boundary?