Is there a way to create an instance of an object that doesn't exist yet in a new model, using custom script? For example, using the createinstance() command to create a global table when the folder path in the maintree doesn't contain information for global tables yet.
Example:
newtable = createinstance(library().find("?GlobalTable"),model().find("/Tools/GlobalTables"));
This command doesn't work because it can't find "/Tools/GlobalTables" because it doesn't exist until you manually add at least one global table.