translated by moderator. Original text below the line.
Good morning,
I have a problem with my dynamo script, I need to retrieve latitude and longitude from my project… It works well in the full Dynamo environment but returns me a null value in the dynamo player…
I do not know how to do
Original text below
Bonjour,
J’ai un problème avec mon script dynamo, j’ai besoin de récupérer latitude et longitude de mon projet… Cela marche bien dans l’environnement Dynamo complet mais me renvoie une valeur nulle dans le player dynamo…
Note that the forum language is English, and as such we need posts translated as I did above in the future. Unfortunately this is a requirement for search to work, annars skulle jag bara prata svenska (for practice anyway).
I can’t recreate this issue, perhaps because my Dynamo graph is different from yours or because I am in a different Revit version. Please post the dynamo graph and let us know which Revit version you’re using. This way someone can look into it for you.
my script is called “test 2” it runs correctly but does not return my coordinates, it returns “null” as if the location of my project does not exist when launching it from the Dynamo player
Personally I have encountered that when I had my Excel-file opened before running the graph that it wouldn’t work.
By the way, is there any specific reason you are exporting it to Excel? You could also attach a (renamed) watch node and tag it as “Is Output” such that you can see it directly in the Dynamo Player.
My problem is not excel, the problem comes from the dynamo launcher which does not give me the latitude and longitude of the places to which the project is referenced. while DYNAMO gives me this data… even with a “WATCH” node it shows me null
This script is a small part that I used to illustrate my problem, in my script I need to retrieve latitude and longitude and export this data to EXCEL to use it later…
I can’t link my DYN file because I’m new to the forum…
I am getting some really, really weird results. When I try to get the SiteLocation information in Revit 2023 through the Dynamo Player I am getting 0 for both latitude and longitude, even though they aren’t.
After I open the Dynamo graph and run the script through the player again I get correct results, see the gif below:
I put it in front of the dev team via internal channels; don’t think we have a Dynamo Player github to log to… (could be wrong but I am not seeing one at the moment). Feel free to submit a support case, but I think Lilli and Team are already aware of the issue, just trying to figure out what exactly the issue is…