I'm using win32COM to send commands to a software called "Robot Structural Analysis". I am able to retrieve objects that is declared inside the application, but I cannot find a way to declare new instance of a class defined in the application's API.
For example:
robot = win32.gencache.EnsureDispatch("Robot.Application")
(What I can do is)
l = robot.dataserver.somelist
However, in the api guidebook, there is a class named, say, XData, and I want to create a new instance of that class. What most people usually do with Excel VBA is
Dim x As New XData
x.property1 = 1
x.property2 = 2
...
But Python doesn't require declaring variable type. How can I do this using Python?