For a few months i have done a lot of reading on this forum, and already learned a lot.
So thanks to all contributors, for sharing their valuable time.
But now i a have a question, of witch i can’t seem to find the answer on this forum.
Is it possible to find out if the Project Base Point is at the Startup Location (or is moved)?
The above method works perfectly on the current projectfile .
I know it’s a lot to ask, but could it also be done by a Python node on a directory of files.
I’m thinking of a workflow like the picture below. Instead of the Revit version the Python script should get the same info as the Coordinates.BasePoint node above.
So you’d want something like John Pierson’s Document.BackgroundOpen node from Rhythm package:
The Coordinates.BasePoint node only works on the current (active) document, but you could make a Python (or C#?) node to extract the coordinates from the project base point in a given document. This is the C# code for the built-in node:
Looks complex, but the work happens in just a few lines in GetBaseOrSurveyPoint.
Thanks for your suggestion.
The Coordinates.BasePoint node does indeed only works on the current document, and that is why i would prefer a Python script that checks a list/directory of files.
Converting C# code to Python is beyond my knowledge , so i hope someone else can help me.
I think you’re right. Document.BackgroundOpen and Document.Close are the old versions (Python code).
And Application.OpenDocumentFile and Application.CloseDocument are new versions (C# code for better performance). But to be sure maybe @john_pierson can shed a light on this .