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 Find WallCurve as Curve or Line

1 REPLY 1
SOLVED
Reply
Message 1 of 2
Mohamed.Elmasri
523 Views, 1 Reply

How to Find WallCurve as Curve or Line

Can any one continue reply n the last reply here 

to find WallCurve as Curve or Line ?

 

https://forums.autodesk.com/t5/revit-api-forum/get-intersections-between-walls-and-ducts/m-p/7510419...

 

Regards

Tags (3)
1 REPLY 1
Message 2 of 2

Your question seems to be a lot more basic than the thread you refer to.

 

In addition, it has been answered many, many times in the past.

 

The short answer is:

 

  // get the current wall location
  LocationCurve wallLocation = myWall.Location
    as LocationCurve;

  // get the curve and endpoints
  XYZ pt1 = wallLocation.Curve.get_EndPoint( 0 );
  XYZ pt2 = wallLocation.Curve.get_EndPoint( 1 );

 

Here is a recent discussion on accessing and adjusting the wall location curve:

 

https://thebuildingcoder.typepad.com/blog/2020/02/adjusting-wall-location-curve-and-visual-presentat...

 

Please always search for existing answers before raising a new question.

   



Jeremy Tammik
Developer Technical Services
Autodesk Developer Network, ADN Open
The Building Coder

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

Post to forums  

Autodesk Customer Advisory Groups


Rail Community