Re: Possible to check if an add-in is enabled using API ?
- From: "Heikki Leivo" <heikkidotleivo@xxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Fri, 16 Jun 2006 07:06:39 +0300
Any idea what thecall for SaveAsPDF addin is? I just want to make sure
its loaded, otherwise the user wont know why the macro button didnt
save a pdf.
Good question indeed - it is not an addin no more in SW2006, so it's hard
for me to find it out. I assume, that one way to find it out could be
following:
- Open registry editor
- Browse to HKEY_LOCAL_MACHINE\Software\SolidWorks\Add-Ins
- Browse through add-in keys (named{xxxx.xxx..}) and find the one with
correct Description value
- Copy the addin key GUID to clipboard (long number in curly brackets)
- Use the find tool in registry editor and try to find that key in
HKEY_CLASSES_ROOT folder
You should be able to find a folder with same key name, and under that a
folder named ProgID. For example, the GUID for HarnessWorks dll seems to be
{5D4259AC-8693-4423-88C4-14618B5E9151}, and the ProgID is
HWorks.HarnessWorks.1, therefore the function call for that add-in would be
Dim foo as Object
set foo = swApp.GetAddinObject("HWorks.HarnessWorks.1")
Hope this helps, sorry that I could not be more specific regarding PDF
add-in!
-h-
.
- References:
- Possible to check if an add-in is enabled using API ?
- From: SW Monkey
- Re: Possible to check if an add-in is enabled using API ?
- From: Heikki Leivo
- Re: Possible to check if an add-in is enabled using API ?
- From: SW Monkey
- Possible to check if an add-in is enabled using API ?
- Prev by Date: Re: Need Good Laptop
- Next by Date: Long Overdue!
- Previous by thread: Re: Possible to check if an add-in is enabled using API ?
- Next by thread: Need Good Laptop
- Index(es):
Relevant Pages
|