Community Tip - Want the oppurtunity to discuss enhancements to PTC products? Join a working group! X
Version: Windchill 12.1
Use Case: My company is trying to move as much information from network drives to Windchill as possible. The biggest move would be ~14k PDF drawings. I am struggling to think of a way to get them all uploaded and accessable.
Description:
The PDF's I've uploaded so far have been just normal documents, however, these are pretty much completely unusable. Whenever you try to download the "primary file" it just gives you a document filled with XML, and not everyone has Creo View. Which even if they did, publishing ~14k viewables seems like a tall ask for the Windchill+ job scheduler.
Any ideas? Or has anyone attempted a similar move?
Solved! Go to Solution.
Thanks for help and suggestions. I ended upwriting a powershell script that split all the pdfs into batchs of 1000 and tried to upload them through the Import/Export Management in utilities but still had no luck. It was recognizing the csv and xml file had in each batch but was saying it was incorrect.
I was able to get everything loaded in through New > Upload Documents from Compressed File. It did take ~15 minutes per batch of 1000 but I was able to get them all in.
You want them uploaded to what?
For now I’ll assume you want them uploaded as primary content to new WTDocuments.
The Doc number and name can be set to the pdf filename (less .pdf).
A class can be written to read the pdf filenames, create the corresponding WTDoc and add the pdf as the primary.
It’s also possible to create the WTDoc in a folder path that mirrors the folder path of the pdf.
Don’t really know exactly what you’re after.
Maybe you can post a precise spec.
Yes, we are wanting to upload them to Windchill.
The main goal is to use a library inside of Windchill as a location for all this legacy data. New PDFs are automatically attached to the parts.
The pdf files can be upload to Windchill. That was made clear in your original post.
You need to include non-ambiguous spec on EXACTLY how you want this upload to work.
How are you determining which Windchill object the pdf is to be attached to? 🤷♂️
Hi @Brn_The_Admin,
I wanted to see if you got the help you needed.
If so, please mark the appropriate reply as the Accepted Solution. It will help other members who may have the same question.
Of course, if you have more to share on your issue, please pursue the conversation.
Thanks,
Anurag
@Fadel has the right answer for uploading documents but you mentioned Windchill+. Are you using that version? The linked solution involves import via CSV2XML method were files are accessible by the server locally. Yes, you can do what you asked but not file management is not the same as document management. You might need to provide more details other than filename and location to create them. As @d_graham mentioned, you have to decide on numbering as well, name, etc. Documents can also have multiple attachments so there may be a opportunity to combine files into a single document if they are related such as a PDF and Word file.
For Windchill+, you would want to include this article: https://www.ptc.com/en/support/article/CS431027?source=search
Your last comment on viewing and seeing just the text of the PDF (XML) in Creo View is a different issue. You should be able to publish representations and thumbnails of documents as well as view normally in Creo View. I suspect some other issues is going on there.
You are right I missed that part with WC+
Thanks for help and suggestions. I ended upwriting a powershell script that split all the pdfs into batchs of 1000 and tried to upload them through the Import/Export Management in utilities but still had no luck. It was recognizing the csv and xml file had in each batch but was saying it was incorrect.
I was able to get everything loaded in through New > Upload Documents from Compressed File. It did take ~15 minutes per batch of 1000 but I was able to get them all in.