How can read iProperties to a file in Vault SDK?
If you only want the iProperties, It might be easier to copy the file out of Vault & use the Inventor API to read the iProperties directly from the file
Here's an example
http://www.autodesk.com/us/community/mfg/Part_2.pdf
Nick
Thanks for your suggestion. But if it's possible to do it in the Vault API I would be grateful to know how.
I've read in It's all just ones and zeros. I thought I was on to something with the code below, but the last line give me this error:
Server did not recognize the value of HTTP Header SOAPAction:http://AutodeskDM/Services/Property/1/25/2010/GetPropertyDefinitionInfosByEntityClassId
Dim secSrv As SecurityService = New SecurityService()
secSrv.SecurityHeaderValue = New Autodesk.Connectivity.WebServices.SecuritySvc.SecurityHeader()
secSrv.Url = "http://" + serverName + "/AutodeskDM/Services/SecurityService.asmx"
secSrv.SignIn("PEM", "pem1am", "TTSOCR")
Dim propSvc As PropertyService = New PropertyService
propSvc.SecurityHeaderValue = New Autodesk.Connectivity.WebServices.PropertySvc.SecurityHeader()
propSvc.SecurityHeaderValue.UserId = secSrv.SecurityHeaderValue.UserId
propSvc.SecurityHeaderValue.Ticket = secSrv.SecurityHeaderValue.Ticket
propSvc.Url = "http://" + serverName + "/AutodeskDM/Services/SecurityService.asmx"
Dim propDefs As Autodesk.Connectivity.WebServices.PropDefInfo() = propSvc.GetPropertyDefinitionInfosByEntityClassId("FILE", Nothing)
Hello Petter,
I believe you might be running into problems by using the incorrect URL for the PropertyService. First off, which version of Vault and the Vault SDK are you working with? If it's Vault 2012 or newer, you can use the WebServiceManager class to greatly simplify the creation of web services, including the PropertyService. More information about the WebServiceManager can be found here: http://justonesandzeros.typepad.com/blog/2011/04/webservicemanager.html.
Regards
Hello Daniel.
Thanks for your reply. Unfortunately we use version 2011 until over the summer then we’ll upgrade to 2013. Maybe I’ll just wait and pick it up again then.