Using meta-data to fill in document properties in Word

A lot of our work is done as "Projects".  I have a template that Sales uses to put in info to create a project.  This then creates an extensive folder structures with variables throughout.  When working in some sections there are other templates to create drawings, models, BOM, etc that draw in some of these variables.

I have a word document that has document properties and field in it that correspond to the same variables in this folder structure, ie. project name, date, customer, etc. My problem is that while the file works fine outside of the vault when I use the template on it I get some odd errors.  Everything looks fine to start but when I open the file I get an error that says "The cannot be opened because there are problems with the contents."  When I click OK I get another error that says "Word found unreadable content in .  Do you want to recover the contents of this document?  If you trust the source of this document, click Yes."  When I click yes it opens the file but none of the variables filled in the document properties fields.  Also, the file name changed from what ever I call it to "Document1".

I've looked over my variables and they look fine.  Custome properties with the correct extensions.

I've looked over the template and cards and they look fine.  All variables are correct.

I've even gone into a test vault, made a folder with no extra variables floating around, created a dummy three variable word file and then placed those variables into the vault.  I then created a simple template and card that would manually add the variables to use this document.  Same results.

Any ideas?

SolidworksSolidworks Pdm enterprise Pdm
Answers 5
SF
SF 2011-10-11 Best Answer

Not 100% sure what to do it might be a more reliable system if you exported the meta date to Excel Via the reporter, once in Excel It would be alot easier to Link to word? And just have it so PDM updates the meta date Files on a Day to day basis?

SF
SF 2011-10-11

I don't know if you are using a Word Template or a standard word file as a template but the following information may be interesting to you...

From the Knowledge Base Solution:

S-010193: Can SolidWorks template files (PRTDOT, DRWDOT, ASMDOT) be used as PDMWorks® Enterprise templates?
No, PDMWorks® Enterprise templates should always be using plain SolidWorks files such as SLDPRT, SLDASM and SLDDRW. SolidWorks template files do not contain all the required information to constitute
SF
SF 2011-10-11

This appears more to be a discussion between Enterprise and SolidWorks while mine is addressing Enterprise and Microsoft Office. 

SF
SF 2011-10-11

Joseph;

Well, it couldn't be a daily thing it would have to be an instantaneous update.  When info is placed or edited on a card a person should be able to go into a document and do a properties update and see the change right away.

Also, two things with the excel suggestion.  First, that would be an ugly looking template that would first dump things into excel and then transfer them into word.  Second, there are issues with using the variables with in excel as well.  Check out some of my other posts asking questions that have not been answered.

Nice try though.

SF
SF 2011-10-13

OK, figured it out. Two error messages and renaming the file is caused by, somewhere in the many variables added to the document properties, the wrong case on a single letter of an attribute name.