<div dir="ltr"><div>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.</div><div><br></div><div>This may be a silly question but could you point me to where the generated class files are located?</div><div><br></div><div>Many thanks!</div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Mar 18, 2024 at 7:43 AM <<a href="mailto:haraldarminmassa@gmail.com">haraldarminmassa@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Hi Jannis,<div><br></div><div>a good way forward: create less-dynamic COM-bindings by using makepy.py </div><div>(it is part of your win32com-client installation, but linked here for the dokumentation)</div><div><br></div><div><br></div><div><a href="https://github.com/SublimeText/Pywin32/blob/master/lib/x32/win32com/client/makepy.py" target="_blank">https://github.com/SublimeText/Pywin32/blob/master/lib/x32/win32com/client/makepy.py</a><br></div><div><br></div><div>With makepy py you can create a (very very large) python-file, which includes rather static bindings to</div><div>reachable exposed attributes and methods.</div><div><br></div><div>You can then grep or strg+f through that file for "HybridShapes" ... maybe it is just spelled differently.</div><div><br></div><div>Using COM things for > 2 decades, apps run much smoother using the makepy created files than dynamic dispatch</div><div><br></div><div>cheers</div><div><br></div><div>Harald</div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sun, Mar 17, 2024 at 7:35 PM Jannis via python-win32 <<a href="mailto:python-win32@python.org" target="_blank">python-win32@python.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hello together,<br>
<br>
<br>
I am trying to automate a point cloud creation out of CATParts in CATIA.<br>
The win32com client can access CATIA documents, but NOT methods and<br>
attributes in the parts. I get the following error:<br>
<br>
<br>
File<br>
"C:\Users\th80im\source\repos\PythonPointCloudCreation\PythonPointCloudCreation\PythonPointCloudCreation\py37_env_1\lib\site-packages\win32com\client\dynamic.py",<br>
line 638, in __getattr__<br>
     raise AttributeError("%s.%s" % (self._username_, attr))<br>
AttributeError: <unknown>.HybridShapes<br>
<br>
<br>
I guess, there is something wrong with the registering of CATIA, or the<br>
installation of the client? Or am I looking in the wrong direction?<br>
<br>
<br>
Thank you & Best Regards<br>
<br>
ioannis<br>
<br>
_______________________________________________<br>
python-win32 mailing list<br>
<a href="mailto:python-win32@python.org" target="_blank">python-win32@python.org</a><br>
<a href="https://mail.python.org/mailman/listinfo/python-win32" rel="noreferrer" target="_blank">https://mail.python.org/mailman/listinfo/python-win32</a><br>
</blockquote></div><br clear="all"><div><br></div><span class="gmail_signature_prefix">-- </span><br><div dir="ltr" class="gmail_signature"><div dir="ltr">--<div>Harald Armin Massa<br>Spielberger Straße 49<br>70435 Stuttgart<br>0173/9409607<br><br></div></div></div>
_______________________________________________<br>
python-win32 mailing list<br>
<a href="mailto:python-win32@python.org" target="_blank">python-win32@python.org</a><br>
<a href="https://mail.python.org/mailman/listinfo/python-win32" rel="noreferrer" target="_blank">https://mail.python.org/mailman/listinfo/python-win32</a><br>
</blockquote></div>