On 2024-03-18 9:12 a.m., Alok Bhargava wrote:
Hi and thank you for your insightful guidance on Jannis' question. I
am running into similar issues as I work with a 3rd party COM app.
This may be a silly question but could you point me to where the
generated class files are located?
I think makepy will print the path name as it generates the file, but
`import win32com; print(win32com.__gen_path__)` will print the location.
Cheers,
Mark
Many thanks!
On Mon, Mar 18, 2024 at 7:43 AM <haraldarminma...@gmail.com> wrote:
Hi Jannis,
a good way forward: create less-dynamic COM-bindings by using
makepy.py
(it is part of your win32com-client installation, but linked here
for the dokumentation)
https://github.com/SublimeText/Pywin32/blob/master/lib/x32/win32com/client/makepy.py
With makepy py you can create a (very very large) python-file,
which includes rather static bindings to
reachable exposed attributes and methods.
You can then grep or strg+f through that file for "HybridShapes"
... maybe it is just spelled differently.
Using COM things for > 2 decades, apps run much smoother using the
makepy created files than dynamic dispatch
cheers
Harald
On Sun, Mar 17, 2024 at 7:35 PM Jannis via python-win32
<python-win32@python.org> wrote:
Hello together,
I am trying to automate a point cloud creation out of CATParts
in CATIA.
The win32com client can access CATIA documents, but NOT
methods and
attributes in the parts. I get the following error:
File
"C:\Users\th80im\source\repos\PythonPointCloudCreation\PythonPointCloudCreation\PythonPointCloudCreation\py37_env_1\lib\site-packages\win32com\client\dynamic.py",
line 638, in __getattr__
raise AttributeError("%s.%s" % (self._username_, attr))
AttributeError: <unknown>.HybridShapes
I guess, there is something wrong with the registering of
CATIA, or the
installation of the client? Or am I looking in the wrong
direction?
Thank you & Best Regards
ioannis
_______________________________________________
python-win32 mailing list
python-win32@python.org
https://mail.python.org/mailman/listinfo/python-win32
--
--
Harald Armin Massa
Spielberger Straße 49
70435 Stuttgart
0173/9409607
_______________________________________________
python-win32 mailing list
python-win32@python.org
https://mail.python.org/mailman/listinfo/python-win32
_______________________________________________
python-win32 mailing list
python-win32@python.org
https://mail.python.org/mailman/listinfo/python-win32
_______________________________________________
python-win32 mailing list
python-win32@python.org
https://mail.python.org/mailman/listinfo/python-win32