×
Menu
Index

5.6 ArgumentError

An argument error occurs if an incorrect number of arguments are passed into a method, the arguments are of the wrong type or the arguments are in the wring order. In this example Python interpreter returns a more complex error message, but it still points the user to line 12 where the error has occurred.
 
Code
Error Message
Solution
 
‘get_room_groups()’ method takes one argument of the type int. The VE Scripts User Guide details all of the arguments for all methods for all objects in the VE Python API.