How to Find WallCurve as Curve or Line

How to Find WallCurve as Curve or Line

Mohamed.Elmasri
Contributor Contributor
872 Views
1 Reply
Message 1 of 2

How to Find WallCurve as Curve or Line

Mohamed.Elmasri
Contributor
Contributor

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

0 Likes
Accepted solutions (1)
873 Views
1 Reply
Reply (1)
Message 2 of 2

jeremytammik
Autodesk
Autodesk
Accepted solution

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

0 Likes