Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations waross on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

pdmwork properties questions

Status
Not open for further replies.

Dtown266

Nuclear
Oct 31, 2006
47
0
0
US
im trying to write a macro to changes the description property of a document while it is in the vault.

I can't seem to figure it out anyone trying this already.

thanks
 
Replies continue below

Recommended for you

Hi found an old bit of code...might be rickety but it seems to work - assuming you're using PDMW not PDMWE

It assumes that you've already connected to the vault..as MyConnection

Dim MyDoc as PDMWDocument
Dim errorcode

Set MyDoc = MyConnection.GetSpecificDocument("put doc name here")

MyDoc.TakeOwnerShip

MyDoc.Properties.Add("Name of property goes here")
MyDoc.Properties("Name of property goes here") = "New property value"

errorcode = MyDoc.Properties.Update()

MyDoc.ReleaseOwnerShip

As I said, this is old and needs tidying, but it should hopefully work.

Regards





 
Status
Not open for further replies.
Back
Top