How to create wall with Location line coinciding with external area boundary?

How to create wall with Location line coinciding with external area boundary?

Anonymous
Not applicable
2,541 Views
7 Replies
Message 1 of 8

How to create wall with Location line coinciding with external area boundary?

Anonymous
Not applicable

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)!

0 Likes
Accepted solutions (1)
2,542 Views
7 Replies
Replies (7)
Message 2 of 8

saikat
Autodesk
Autodesk

Hi

 

I hope this helps:

http://adndevblog.typepad.com/aec/2012/07/location-line-of-a-new-wall-using-revit-api.html

 

cheers



Saikat Bhattacharya
Senior Manager - Technology Consulting
Message 3 of 8

Anonymous
Not applicable

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 Smiley Sad

0 Likes
Message 4 of 8

saikat
Autodesk
Autodesk

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.



Saikat Bhattacharya
Senior Manager - Technology Consulting
Message 5 of 8

Anonymous
Not applicable

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

0 Likes
Message 6 of 8

saikat
Autodesk
Autodesk
Accepted solution

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.



Saikat Bhattacharya
Senior Manager - Technology Consulting
Message 7 of 8

Anonymous
Not applicable

Thanks a lot Saikat for all your comments! I will register ADN Smiley Happy

0 Likes
Message 8 of 8

Shai.Nguyen
Advocate
Advocate

In Revit 2018 does it possible to create wall with finish exterior boundary?

0 Likes