Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations IDS on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

API event: check-in

Status
Not open for further replies.

PeterJelliffe

Mechanical
Dec 18, 2003
10
Is there an event like "onCheckIn" one can use to activate a macro when you check in a part?
 
Replies continue below

Recommended for you

That would depend on your PDM system. It wouldn't really be a SW event.

One possibility is to monitor the document's Save and Save-As events to trigger when saved to a certain drive or diectory (or vault).

This is best done as an addin, requiring fully compiled VB or C++. Very impractical to monitor for events with a macro.

Project for turning macros into addins in VB:
<
Just how much interest is there in something like this?

[bat]I could be the world's greatest underachiever, if I could just learn to apply myself.[bat]
-SolidWorks API VB programming help
 
Yes, I was just reading up on event notification and we'd need to use Visual C++. Oh well.
 
I'm on a speed programming binge. You may see something by the end of the weekend.
 
Are you using PDMWorks advanced server?

If so you can use even triggers to launch an executable or DLL on any number of actions in the vault, including check-in. There is some documentation on MSMQ triggers in the PDMWorks API help.
 
Better take that back. I know far too little about PDM's other than the one I use (Meridian) to be sure anything I write would be of any use.
 
Peter,
It seems that all participants in this thread have an idea of what your intended macro will do. I am only just beginning writing VB6...transition... VB.net applications. I am curious as to your intent with the macro upon check in.
Could you please explain your intent?

regards,
Thirsty for knowledge

To get the best from these forums read FAQ731-376 before posting

" I haven't slept for ten days...
because that would be too long" Mitch Hedburg
 
I was just thinking that. What exactly do you intend to do with the macro? This may be useful, I have not thought of this...if you can expand on the question the more we can help.

Chris
Sr. Mechanical Designer, CAD
SolidWorks 2005 SP0.1
 
I need it as a work around for a bug in SW 2005. There's an option for searching through the external refernce folders when you open a part. We need this checked when someone opens a drawing from the vault. However, the bug causes an error if the option is on and you then try to check an assembly's sub components into the vault.

The error is described here:

So I need this option checked upon checking out or right before opening, and I need this option deactivated upon checking in or saving.

I'd love to learn how to program something like this in a .dll but realistically I don't have the time or the resources.
 
A couple of things:

1) Most decent PDM systems have an API that should allow you to trigger something on a check-in.

2) You do NOT need to use C++ to trigger something on a notify flag - you can use VB6, VB.NET, C#, etc. - pretty much anything that can automate SolidWorks.

Evan T. Basalik, MCSD
--------------------------------
It's all about prioritization...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor