×
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

Updating Custom Properties in PDM

Updating Custom Properties in PDM

Updating Custom Properties in PDM

(OP)
Hey folks,

I would like to update (and add) some custom properties for all my files in the vault, by means of the Task Scheduler. The snag I see is, what directory do I specify for the Task Scheduler? Do I select the directory where the valut resides (even though the contents don't have the correct extensions)? and will this update all revisions of the parts?

thanks in advance,


phreaq
Has anyone seen my brain today? (^_^)
www.phreaq.net

RE: Updating Custom Properties in PDM

Phreaq,

I think what you may be looking for is found in the PDMWorks Admin. However adding a custom property will not bump the revision of each document in the vault. See the quote below for further description.

Quote (SolidWorks Help):

On the VaultAdmin Properties tab, add, modify, delete, or map properties that appear in PDMWorks document information and reports. Users can also search by properties. The properties apply to all projects and documents in the Vault.

 Standard properties are Author, Number, Revision, Project, Description, and Status. You cannot edit Author, Project, or Status.

To add a property, click New Property, type a name in the dialog box, then click OK.

To modify a property, select the property, click Modify, edit the name in the dialog box, then click OK.

To delete a property, select the property, click Delete, then click OK to confirm.

Best Regards,
Jon

Challenges are what makes life interesting; overcoming them is what makes life meaningful.
http://solidworks.carbonmade.com/
Solidworks 2006 SP4.0

RE: Updating Custom Properties in PDM

(OP)
Thanks Jon!

Seems I'm almost there..... almost. Your method will add a property to a SW file, but it doesn't seem to actually assign a value to the property.

Without getting into my specific details, I want to add a property called "type" with a value of "1" for assemblies, and "2" for parts (as an example).

phreaq
Has anyone seen my brain today? (^_^)
www.phreaq.net

RE: Updating Custom Properties in PDM

Ummm, if you example is what you intend to do, SW already has that function built in.  I don't think this is a PDMWorks task (beyond the set up mentioned in JK's message above).  In fact, if your example is what you are trying to do, this isn't even an API function.  Simple create your property in our template and give it the value you want it to have within the template.  That value will carry forward to any files you create from it.

RE: Updating Custom Properties in PDM

(OP)
Hey fcsuper,

you're right, I can (and will) add these properties to my templates, but that doesn't help the 1000s of parts and assemblies I already have in the vault that need the property added with the values.

phreaq
Has anyone seen my brain today? (^_^)
www.phreaq.net

RE: Updating Custom Properties in PDM

Phreaq,

You may want to check out this macro I found. It should help you in applying the correct properties to the files. You will however have to have the files in your local working directory before using it. This means you will have to check out the 1000+ files from PDMWorks. If anyone else has a better solution please re-post.

Find it here: Rhapsody Design Solutions

Download the "Batch Parameter Creator" macro.

Best Regards,
Jon

Challenges are what makes life interesting; overcoming them is what makes life meaningful.
http://solidworks.carbonmade.com/
Solidworks 2006 SP4.0

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