×
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

Log In

Come Join Us!

Are you an
Engineering professional?
Join Eng-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

pdmwork properties questions

pdmwork properties questions

pdmwork properties questions

(OP)
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

RE: pdmwork properties questions

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





RE: pdmwork properties questions

I should add that you may need to manually refresh your vault in order to see the changes.

RE: pdmwork properties questions

(OP)
thanks

i didn't know you needed to update the vault.

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Eng-Tips forums is a member-only feature.

Click Here to join Eng-Tips and talk with other members!


Resources