×
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

Log In

Come Join Us!

Are you an
Engineering professional?
Join Eng-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

API event: check-in

API event: check-in

API event: check-in

(OP)
Is there an event like "onCheckIn" one can use to activate a macro when you check in a part?

RE: API event: check-in

I would love to have that one too!

Bradley

RE: API event: check-in

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:
<http://www.EsoxRepublic.com/devtools/>

Just how much interest is there in something like this?

I could be the world's greatest underachiever, if I could just learn to apply myself.
http://www.EsoxRepublic.com-SolidWorks API VB programming help

RE: API event: check-in

(OP)
Yes, I was just reading up on event notification and we'd need to use Visual C++.  Oh well.

RE: API event: check-in

I'm on a speed programming binge.  You may see something by the end of the weekend.

RE: API event: check-in

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.

RE: API event: check-in

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.

RE: API event: check-in

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

Quote:

" I haven't slept for ten days...
because that would be too long"  Mitch Hedburg

RE: API event: check-in

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

RE: API event: check-in

(OP)
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:
http://www.eng-tips.com/viewthread.cfm?qid=107332

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.

RE: API event: check-in

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...

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Eng-Tips forums is a member-only feature.

Click Here to join Eng-Tips and talk with other members!


Resources