Vault General Discussion

Vault General Discussion

Reply
Contributor
sabuj.saha
Posts: 14
Registered: ‎06-01-2012
Message 1 of 7 (482 Views)
Accepted Solution

Create new property for a File in autodesk Vault 2012 in VB.net

482 Views, 6 Replies
08-17-2012 11:46 AM

I am wanting to create a new property for a file in vault. I could not find any code sample to start with.

Any idea how can I do it...

Do you have the vault api help file?  You should be able to search that and see:

AllowedMappingDirection Enum

Summary

The allowed property mapping direction values.


ValuesNone
Read
ReadAndWrite
Write
 
Also, if you use Visual Studio you should have intellisense that would show you the options...
 
Thanks,
Mentor
FarrenYoung
Posts: 264
Registered: ‎07-13-2009
Message 2 of 7 (424 Views)

Re: Create new property for a File in autodesk Vault 2012 in VB.net

08-23-2012 11:10 AM in reply to: sabuj.saha

Hi Sabuj,

 

You will likely get more results in the Vault Customization forum.  You are in the general forum.

http://forums.autodesk.com/t5/Autodesk-Vault-Customization/bd-p/301

 

Have you seen the AddPropertyDefinition function on the PropertyService class?

 

Thanks,

 

--Farren

************************************************************************************
If this post helps, please click the "thumbs up" to give kudos
If this post answers your question, please click "Accept as Solution"
************************************************************************************
Mentor
FarrenYoung
Posts: 264
Registered: ‎07-13-2009
Message 3 of 7 (414 Views)

Re: Create new property for a File in autodesk Vault 2012 in VB.net

08-23-2012 11:22 AM in reply to: sabuj.saha

I found the following via www.google.com

 

http://adndevblog.typepad.com/manufacturing/2012/06/add-user-defined-property-by-vault-api.html

 

Thanks,

--Farren

************************************************************************************
If this post helps, please click the "thumbs up" to give kudos
If this post answers your question, please click "Accept as Solution"
************************************************************************************
Contributor
sabuj.saha
Posts: 14
Registered: ‎06-01-2012
Message 4 of 7 (412 Views)

Re: Create new property for a File in autodesk Vault 2012 in VB.net

08-23-2012 11:23 AM in reply to: FarrenYoung

I found that after I posted this thread...

Thanks For the link...

Contributor
sabuj.saha
Posts: 14
Registered: ‎06-01-2012
Message 5 of 7 (408 Views)

Re: Create new property for a File in autodesk Vault 2012 in VB.net

08-23-2012 11:34 AM in reply to: FarrenYoung

The property mapping in that example is write.. I am needing a property that will do both ways.

Do you know how that can be done?

 

Regards

Sabuj

Mentor
FarrenYoung
Posts: 264
Registered: ‎07-13-2009
Message 6 of 7 (403 Views)

Re: Create new property for a File in autodesk Vault 2012 in VB.net

08-23-2012 11:39 AM in reply to: sabuj.saha

Do you have the vault api help file?  You should be able to search that and see:

AllowedMappingDirection Enum

Summary

The allowed property mapping direction values.


ValuesNone
Read
ReadAndWrite
Write
 
Also, if you use Visual Studio you should have intellisense that would show you the options...
 
Thanks,
--Farren

************************************************************************************
If this post helps, please click the "thumbs up" to give kudos
If this post answers your question, please click "Accept as Solution"
************************************************************************************
Contributor
sabuj.saha
Posts: 14
Registered: ‎06-01-2012
Message 7 of 7 (399 Views)

Re: Create new property for a File in autodesk Vault 2012 in VB.net

08-23-2012 11:42 AM in reply to: FarrenYoung

Thanks you so much..I will try that and get back to you on that....

Post to the Community

Have questions about Autodesk products? Ask the community.

New Post
Announcements
New button for Platinum & Gold Subscription customers
Gold & Platinum Subscription customers can alert Autodesk if they require assistance with their forum post

Manufacturing Community
The Manufacturing Community provides additional access to tips, tutorials, blogs and networking with peers.