Methods are not visible in DOpusFactory object. It seems there has been already a similar (and fixed) problem once with Python.
Script:
[code]@script python
def OnClick(ClickData):
factory = DOpus.Create()
DOpus.Output('Factory type: ' + str(type(factory)))
try:
myvec = factory.Vector()
except Exception as e:
DOpus.Output('Vector: ' + str(e))
try:
myvec = factory.StringSetI()
except Exception as e:
DOpus.Output('StringSetI: ' + str(e))
try:
myvec = factory.StringSet()
except Exception as e:
DOpus.Output('StringSet: ' + str(e))
try:
myvec = factory.Map()
except Exception as e:
DOpus.Output('Map: ' + str(e))
try:
myvec = factory.Date()
except Exception as e:
DOpus.Output('Date: ' + str(e))
try:
myvec = factory.Command()
except Exception as e:
DOpus.Output('Command: ' + str(e))
try:
myvec = factory.Blob()
except Exception as e:
DOpus.Output('Blob: ' + str(e))
[/code]
Output:
[quote]Factory type: <class 'win32com.client.dynamic.CDispatch'>
Vector: .Vector
StringSetI: .StringSetI
StringSet: .StringSet
Map: .Map
Date: .Date
Command: .Command
Blob: .Blob[/quote]
Full exception message:
[quote]myvec = factory.Blob()
^
Traceback (most recent call last):
File "", line 33, in OnClick
myvec = factory.Blob()
File "C:\Python34\lib\site-packages\win32com\client\dynamic.py", line 522, in getattr
raise AttributeError("%s.%s" % (self.username, attr))
AttributeError: .Blob
(0x80020009)
[/quote]