Extract GIS Coordinate System

Hi,

I’m trying to extract the GIS Coordinate system from Revit 2019.

I’m currently able to pull out the Survey Point, and the associated coordinates, and the Projectbase Point. And I’m getting the correct coordinates, but I’m not sure where to go to get the GIS Coordinate System that is located in the “Manage / Project Location / Location” tab. I’m looking to return the “CANQ-M9” value in the screenshot below.

like this in 2020
need to check the API to see if this is possible in 2019


Adapted from Get Time Zone

import clr
clr.AddReference('ProtoGeometry')
from Autodesk.DesignScript.Geometry import *

# Import DocumentManager and TransactionManager
clr.AddReference("RevitServices")
import RevitServices
from RevitServices.Persistence import DocumentManager
from RevitServices.Transactions import TransactionManager

# Import RevitAPI
clr.AddReference('RevitAPI')
from Autodesk.Revit.DB import *

# Import ToDSType(bool) extension method
clr.AddReference("RevitNodes")
import Revit
clr.ImportExtensions(Revit.Elements)
# Import ToProtoType, ToRevitType geometry conversion extension methods
clr.ImportExtensions(Revit.GeometryConversion)

# Import python library
import sys
pyt_path = r'C:\Program Files (x86)\IronPython 2.7\Lib'
sys.path.append(pyt_path)
import os
import shutil
import math
import collections
# Import math library
from math import *

#Import Data and Time
from datetime import datetime
now = datetime.now()

#Import System Library
import System
from System.Collections.Generic import *
from System.IO import Directory, Path

doc = DocumentManager.Instance.CurrentDBDocument
uiapp = DocumentManager.Instance.CurrentUIApplication
app = uiapp.Application

site = doc.SiteLocation
angleRatio = math.pi / 180;   

prompt = "Current project's Site location information:"
prompt += "\n\t" + "Latitude: " + str(site.Latitude / angleRatio) + "°"
prompt += "\n\t" + "Longitude: " + str(site.Longitude / angleRatio) + "°"
prompt += "\n\t" + "PlaceName: " + str(site.PlaceName) + "°"
prompt += "\n\t" + "TimeZone: " + "(UTC%s)" % (str(site.TimeZone));
prompt += "\n\t" + "GeoCordinateSystemID: " + (str(site.GeoCoordinateSystemId));


OUT = prompt

Hi Andrew,

Thank you, this was ideal.