CoCreate User Forum  

Go Back   CoCreate User Forum > Support > Customization

Reply
 
Thread Tools Search this Thread Rate Thread Display Modes
  #1  
Old 08-29-2014, 04:46 AM
jkramer's Avatar
jkramer jkramer is offline
Registered User
 
Join Date: Oct 2002
Location: the Netherlands
Posts: 382
does SD-SUBSCRIBE-EVENT receive arguments??

Hi all,

In a while we will probably migrate from Modelmanager to Windchill Workgroup Manager. When using Modelmanager, any part that is not reserved (Checked Out in Windchill-language), will be locked, so that users cannot modify parts accidentally. Workgroup Manager doesn't have this protection.
We are now trying to make an SD-SUBSCRIBE-EVENT that warns the user if he changed a part that is not checked out. So, we are playing with something like:
Code:
(sd-subscribe-event *SD-CHANGE-MODIFIED-STATUS-EVENT* 'object_was_modified)
This works in the sense that we can display a warning that something has changed. But we only want to warn the user if he changes a part that hasn't been checked out. There is also *SD-CHANGE-CURRENT-OBJECT-EVENT*, but we can't use that because we will not only be changing current parts/workplanes, obviously...
Does anyone know if it's possible to find out what part has been changed???
Thanks!
Jaap
Reply With Quote
  #2  
Old 08-30-2014, 07:25 AM
clausb's Avatar
clausb clausb is offline
Registered User
 
Join Date: Nov 2002
Posts: 1,168
Re: does SD-SUBSCRIBE-EVENT receive arguments??

Try an event handler like this:

(defun eventhandler (&rest args) (print args))

and see if any of the args are useful. (My guess, though, is that you probably tried that already...)

Good luck!

Claus
__________________
CoCreate Modeling FAQ: http://www.clausbrod.de/CoCreateModeling/
Reply With Quote
  #3  
Old 08-30-2014, 12:04 PM
jkramer's Avatar
jkramer jkramer is offline
Registered User
 
Join Date: Oct 2002
Location: the Netherlands
Posts: 382
Re: does SD-SUBSCRIBE-EVENT receive arguments??

Hi Claus,

Thanks a lot! An hour after my post, my collegue and I succeeded using something similar to your suggestion. Work is in progress, we'll report our findings :-)
So far, it certainly looks promising...
Jaap
Reply With Quote
  #4  
Old 09-02-2014, 09:22 AM
tom kirkman's Avatar
tom kirkman tom kirkman is offline
Registered User
 
Join Date: Oct 2002
Location: Perrysburg, Ohio
Posts: 397
Re: does SD-SUBSCRIBE-EVENT receive arguments??

Definitely keep us posted in how you make this work. We may end up suffering the same fate. It is a shame, Model Manager works so well.
__________________
Tom Kirkman

Creo Elements/Direct 20.1
Dell Precision 3581
https://www.o-i.com
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -8. The time now is 04:36 AM.



Hosted by SureServer    Forums   Modeling FAQ   Macro Site   Vendor/Contractors   Software Resellers   CoCreate   Gallery   Home   Board Members   Regional User Groups  By-Laws  

Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
You Rated this Thread: