public void RotateMarker(ElevationMarker marker, double angleViewtoWall, XYZ elevMarkerPosition) { marker.get_BoundingBox(null); Line rotationAxis = Line.CreateBound( new XYZ(elevMarkerPosition.X, elevMarkerPosition.Y, elevMarkerPosition.Z), new XYZ(elevMarkerPosition.X, elevMarkerPosition.Y, elevMarkerPosition.Z + 10) ); marker.Location.Rotate(rotationAxis, angleViewtoWall); }