Re: Question win32com.client.Dispatch
Mateo Gomez Montoya <[email protected]> Tue, 11 Jul 2023 14:23:38 -0500
| Newsgroups | gmane.comp.python.windows |
|---|---|
| Message-ID | <CAGtyPwGco79G0cVwu2DQLq4HW1XNh0LGxvc3jFY9u08RYpY=PA@mail.gmail.com> |
Very helpful, thank you! El mar, 11 jul 2023 a las 13:45, Steven Manross (<[email protected]>) escribió: > When building your “AutoCad.Application” object, it looks like 2007 is the > default object… > > > > In your computer’s registry directly under HKEY_CLASSES_ROOT you should be > able to find a Key (FOLDER icon) that matches that name… as well, IF > AutoCAD has different versions installed , you should be able to see > “AutoCad.Application.#######” as well, which should be the COM Object name > for the specific version you are looking for. > > > > While I don’t have AutoCad installed, Microsoft Excel is an application > that goes about this the same way… > > > > If I had 2+ versions of Excel installed, I would send > “Excel.Application.16” to work with for my currently installed version of > Office 2019. > > > > I hope this helps. > > > > Steven > > *From:* python-win32 <[email protected]> *On > Behalf Of *Mateo Gomez Montoya > *Sent:* Tuesday, July 11, 2023 10:20 AM > *To:* [email protected] > *Subject:* [python-win32] Question win32com.client.Dispatch > > > > Hello, > > > > I'm trying to use the command of > win32com.client.Dispatch("AutoCAD.Application") and on the computer that > I'm working with there are two versions of AutoCAD one from 2007 and > another from 2021. I want to use a program that I created with the most > recent version but when I run my code it automatically opens up > AutoCAD2007. How can I create a dispatch that will run the most recent > version of AutoCAD no matter the computer? > > > > P.S I don't want to uninstall the 2007 version since it runs some of my > older programs. > > > > Thank you > _______________________________________________ python-win32 mailing list [email protected] https://mail.python.org/mailman/listinfo/python-win32