ksobon / archilab

this is archi-lab.net dynamo repo
74 stars 20 forks source link

The google Maps into Revit #62

Closed jarods350z closed 4 years ago

jarods350z commented 4 years ago

Just a dumb question. when I follow your way it works perfect in Revit 2021 but it doesn't work for Revit 2019. I get this error for the node ImageTypeOptions.Create

Warning: ImageTypeOptions.Create operation failed. Could not load type 'Autodesk.Revit.DB.ImageTypeOptions' from assembly 'RevitAPI, Version=19.0.0.0, Culture=neutral, PublicKeyToken=null'.

Is this because of the different versions of Dynamo 2019 using Dynamo Core 2.0.4 and Dynamo Revit 2.0.4 Vs 2021 Dynamo Core 2.5.0 and Dynamo Revit 2.5.0

Thanks in advance https://archi-lab.net/google-maps-static-api-in-dynamo/

image

ksobon commented 4 years ago

@jarods350z no, that's a limitation of the Revit API. So that ImageTypeOptions object doesn't exist in Revit 2019. I think it was added in later versions when Autodesk enabled PDF imports. 2020 and 2021 will work, but 2019 and earlier won't have that available in the API.

image

jarods350z commented 4 years ago

Ahh well there you go. looks like I have a reason to upgrade to Revit 2021 LOL. Thank you as always!!