CATIA Questions about python script

  • Thread starter Gary_Yan
  • Start date
  • Tags
    Python
  • #1
1
0
Hello,ALL
Have somebody used python to Instanciate UDF in CATIA ?
I have some question with it

As follows:
Traceback (most recent call last):
File "D:/VSProjects/Python/instantiateTemplate/insTemplateDlg.py", line 80, in on_buttonApply_clicked
factory.BeginInstanceFactory('Sphere',self.lineEdit.text())
File "<COMObject GetCustomerFactory>", line 3, in BeginInstanceFactory
http://pywintypes.com/ [Broken]_error: (-2147352567, '发生意外。', (0, 'CATIAInstanceFactory', 'The method BeginInstanceFactory failed', None, 0, -2147467259), None)

I hope I explained my problem clearly.
Tks
 
Last edited by a moderator:
  • #2
for your help.It looks like you are trying to use a COM object to instantiate a UDF in CATIA using Python. Unfortunately, it looks like you are running into an issue with the GetCustomerFactory method that is preventing you from achieving this. I would recommend trying to search the internet for any solutions or tutorials on how to properly use this method in order to successfully instantiate a UDF in CATIA using Python. It might also be helpful to contact the manufacturer of the software to see if they provide any technical support or resources to help you with this issue.
 

Suggested for: CATIA Questions about python script

Replies
2
Views
185
Replies
15
Views
969
Replies
1
Views
944
Replies
16
Views
3K
Replies
10
Views
1K
Replies
3
Views
619
Replies
2
Views
531
Replies
6
Views
718
Replies
24
Views
1K
Replies
1
Views
671
Back
Top