Autodesk Vault Customization
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic to the Top
- Bookmark
- Subscribe
- Printer Friendly Page
Current And changed state names
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
i am trying to figure out how to get the current state name and changed state name..
i used UpdateFileLifecycleStateEvents_Pre and Post but none of them are triggering events to fetch the label names.
Any body has idea
Re: Current And changed state names
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
Can you clarify the problem.
Are you saying that the Pre and Post events are not firing? Or are you saying that they are fireing but you don't know how to look up the state names from the EventArgs?
Re: Current And changed state names
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
Thanks Doug Redmond for reply, the issue is in Pre and Post events are not at all firing and if they fire how you fetch the state names. Currently i am able to fetch the previous State name, but when the state name is changed to new one, i am unable to fetch the name of state
Re: Current And changed state names
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
So, you have two problems...
Problem 1: Events not firing
Make sure that your app is loading. Put a breakpoint in the OnLoad method to verify. See this article for more information on troubleshooting load errors.
Problem 2: Figuring out the state name
The FROM information can be found on the File objects. GetLatestFileByMasterId and GetFilesByMasterId are the functions to use.
The TO information can be found by calling LifeCycleService.GetLifeCycleStatesByIds
Re: Current And changed state names
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
In which module i would file LifeCycleService
Re: Current And changed state names
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
Sorry, that's a new service in Vault 2013. If you are using Vault 2012, the function is in DocumentServiceExtensions.
Re: Current And changed state names
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
Hi Doug, the GetLifeCycleStatesByIds still points to previous state name, when i change the life cycle and click OK, the GetLifeCycleStatesByIds still refer to previous state.
Re: Current And changed state names
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
I got it myseld from the current state ID

