Community
Vault Forum
Welcome to Autodesk’s Vault Forums. Share your knowledge, ask questions, and explore popular Vault topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

File Restrictions

2 REPLIES 2
Reply
Message 1 of 3
ltriezen
202 Views, 2 Replies

File Restrictions

Using the API, I am checking in a file. Immediately thereafter, I wish to update the state of the file to released, however I need to wait for some interval while the properties are checked for consistency. I get an error regarding vaulting restrictions if I try to do this immediately (the interval appears to be about 15 seconds).

I tried calling GetFileStatusSetRestrictionsByMasterIds using an array with the masterID, however I get an error : System.Web.Services.Protocols.SoapException: 241.

Dim lMasterIDs(0) As Long
lMasterIDs(0) = file.MasterId
GetFileStatusSetRestrictionsByMasterIds( lMasterIDs, FileStatus.Unknown)

I would like to write a little loop, waiting until the consistency checks are completed so that I can proceed with the state change. Any ideas on how I can determine whether the consistency checks are done?

Thanks in advance.
2 REPLIES 2
Message 2 of 3
Anonymous
in reply to: ltriezen

The loop is a good idea, but the correct function to use is GetProperties.
With that function you need to look up the "Property Compliance" property
for the file.

Property Compliance is a number. These are what the values mean.
0 = Compliant
1, 2 or 3 = Noncompliant
4 = Pending
8 = Error


-- Doug Redmond
Software Engineer, Autodesk Inc.
http://justonesandzeros.typepad.com/
Message 3 of 3
ltriezen
in reply to: ltriezen

Thanks - just what I was looking for.

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report