Community
Vault Customization
Share your knowledge, ask questions, and explore popular Vault API, Data Standard, and VBA topics related to programming, creating add-ins, or working with the Vault API.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Read iProperties to a file

5 REPLIES 5
Reply
Message 1 of 6
petter.moldestad
460 Views, 5 Replies

Read iProperties to a file

How can read iProperties to a file in Vault SDK?

5 REPLIES 5
Message 2 of 6
Nhall123
in reply to: petter.moldestad

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

 

Message 3 of 6
petter.moldestad
in reply to: Nhall123

Thanks for your suggestion. But if it's possible to do it in the Vault API I would be grateful to know how.

Message 4 of 6

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)

Message 5 of 6

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



Daniel Dulzo
Software Engineer
Autodesk, Inc.
Message 6 of 6

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.

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

Post to forums  

Autodesk Design & Make Report