Extract GIS Coordinate System


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
from Autodesk.DesignScript.Geometry import *

# Import DocumentManager and TransactionManager
import RevitServices
from RevitServices.Persistence import DocumentManager
from RevitServices.Transactions import TransactionManager

# Import RevitAPI
from Autodesk.Revit.DB import *

# Import ToDSType(bool) extension method
import Revit
# Import ToProtoType, ToRevitType geometry conversion extension methods

# Import python library
import sys
pyt_path = r'C:\Program Files (x86)\IronPython 2.7\Lib'
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.