mgvwx Posted March 13 Share Posted March 13 Simple question, really - How can I set the document georeference lat/lon coordinates from a Python script or VectorScript? MG Quote Link to comment
MullinRJ Posted March 13 Share Posted March 13 Hi @mgvwx, I have not used the GIS calls in any of my scripts yet, and I don't know how much you know about scripting, but these are the commands in the GIS section of the Script Reference. BindLayerToArcGISFS GISDimStringToMM BindLayerToWFSFS IsGeoreferenced EditGeorefWithUI LegacyShapefileExp GeogCoordToVW LegacyShapefileImp GeogCoordToVWN RemoveGeoref GetAngleToNorth SetDocGeoRefByUsrOrg GetGISOrigin SetGISLayer GetGISOriginN SetProjectElevation GetProjectElevation UpdateFeatureLayer GetProjectionLocName UpdateLayerFromFS GetProjectionProj4 VWCoordToGeog GetProjectionWKT VWCoordToGeogN You can view them in the Developer WIKI online https://developer.vectorworks.net/index.php/VS:Function_Reference, or in the HTML Script Reference located in you application folder .../Vectorworks 2024/VWHelp/Script Reference/ScriptFunctionReference.html Do you have a sample file you can post? Smaller is better. It might help people try out some of these calls against actual data and give you some feedback. Raymond Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.