I'm getting an exception of type StatusException with message "[BadTypeDefinitionInvalid]" when trying to create an object from my exported UA Modeler definitions.
We cannot reproduce this issue. Please create a support ticket (https://webdav.unifiedautomation.com/support/support_form.html) and attach the NodeSet2 XML file. This will help us analysing this issue.
We have already handled this trought the support ticket and you helped us to find the issue.
If some future user faces the same issue: The problem was caused because one variable from an Object was not set to a valid TypeDefinition. Just open your OPC-UA Model in the UA Modeler and verify the TypeDefinition for each variable, normally it needs to be "BaseDataVariableType". Once it's fixed export again your classes.