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: 

Getting the Base and Survey point locations with respect to the Internal Origin

1 REPLY 1
SOLVED
Reply
Message 1 of 2
Anonymous
1228 Views, 1 Reply

Getting the Base and Survey point locations with respect to the Internal Origin

Looking at the code here, https://forums.autodesk.com/t5/revit-api-forum/get-survey-point-trough-api/td-p/7543173, I can get the location of the Base point with respect to the Survey point. But how do we get the locations of the Base and Survey points with respect to the Internal Origin?

Tags (2)
1 REPLY 1
Message 2 of 2
FAIR59
in reply to: Anonymous

The location poimt of the Survey - and Project Base Point, is the Min -value (or Max) of the boundingbox.

			StringBuilder sb = new StringBuilder();
			
			IEnumerable<BasePoint> points = new FilteredElementCollector(doc)
				.OfClass(typeof(BasePoint))
				.Cast<BasePoint>();
			foreach(BasePoint bp in points)
			{
				string name = bp.IsShared? "surveypoint": "project basepoint";
				BoundingBoxXYZ bb = bp.get_BoundingBox(null);
				XYZ pos = bb.Min;
				sb.AppendLine(string.Format("{0} :  {1}",name, pos));
			}
			TaskDialog.Show("debug",sb.ToString());

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