The attached script based on an example provided by Vikram (Link below). Have been using it to great success for extracting coordinate information from Revit.
The script has been working fine until a recent project where it was giving some strange outputs. Hoping the forum can give me some input to what could be causing the issue.
The project in question had the survey point and project base point set up to the following:
Running the script give the survey point positioning as the following, it should be 0,0,0.
point.bycoordinates and just put it (0,0,0) should do it. and see if thats in the same place as your project base point. then creat another point anywhere and connect the two with the lin.bypoints node.
Both scripts make a mode line at the 0,0 location. Watch the resulting output and use a select by ID command in Revit so you can locate the lines in the job. Then quickly do a visual comparison between the new geometry and the survey point and project base point.