Revit API Forum
Welcome to Autodesk’s Revit API Forums. Share your knowledge, ask questions, and explore popular Revit API topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

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

7 REPLIES 7
SOLVED
Reply
Message 1 of 8
vero4ka`
2081 Views, 7 Replies

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

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

7 REPLIES 7
Message 2 of 8
saikat
in reply to: vero4ka`

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
vero4ka`
in reply to: saikat

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

Message 4 of 8
saikat
in reply to: vero4ka`

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
vero4ka`
in reply to: saikat

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

Message 6 of 8
saikat
in reply to: vero4ka`

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
vero4ka`
in reply to: saikat

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

Message 8 of 8
Shai.Nguyen
in reply to: vero4ka`

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

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk DevCon in Munich May 28-29th


Rail Community