matteoluigi Posted January 5, 2023 Share Posted January 5, 2023 Hi, somehow the error messages in the script editor are a bit misleading. Sometimes it happens to me, that the mistake I made in my code are not in the line the error has been found by the ...compiler?... but in the line before. path = (vs.Concat('/Users/matteoneustadt/Desktop/HBK2/',current_date) ok = vs.IFC_ExportNoUI(path) for example, there's missing a bracket in the "path" command. However I get told, that the error is in the line of the "Ifc_ExportNoUI..." line. Maybe there's a logical reason, however not a user friendly reason ;-). Quote Link to comment
PatW Posted January 5, 2023 Share Posted January 5, 2023 (edited) You are right from a user view it makes more sense when the error appears for the first line. But in Python a statement can go to the next line when it is within brackets. So the python engine realizes that something is wrong when it suddenly sees a declaration in the next line. This is valid for example: print ( "a" + "b") Edited January 5, 2023 by PatW 2 Quote Link to comment
Pat Stanford Posted January 5, 2023 Share Posted January 5, 2023 After you do it enough you just learn which messages tend to be pointing to something higher up in the code. Happens in all the languages I am familiar with. 1 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.