Kkula
We want to copy a PDF file of a certain revision to a drive, but our programming skills are too weak for this...
How do you get a specific PDF file for a revised document?
Example: a document has 5 revisions and I want to copy the 3rd revision as a PDF to a path.
Can someone list me the complete methods and functions of the "ComosRevisionMaster.RevisionMaster" function?
We already have this in use, but only with deleting the last revision (Document.Revisions.Item(Document.Revisions.count)).DeleteAll, but I don't know how to select a revision in between so that it then falls on the drive can be copied.
Siemens has already programmed this function in a dll, but unfortunately we no longer have the source code.
You want to extract a specific revision of a PDF document within COMOS, and you're facing challenges due to limited programming expertise and lost source code. Here's a breakdown of approaches, considering you're already using ComosRevisionMaster.RevisionMaster:
Document.Revisions collection is likely index-based (starting at 1). You should be able to access the desired revision directly using its index number. For example, to access the 3rd revision: Document.Revisions.Item(3). Document.Revisions collection and check each revision's number or date against your target revision.ComosRevisionMaster.RevisionMaster function and the Document.Revisions collection.Once you've accessed the desired revision (e.g., myRevision), you'll need to extract the PDF data and save it to your desired path. This typically involves:
System.IO.File.WriteAllBytes) to write the PDF data to a file on the drive.Unfortunately, without the original source code or complete API documentation, a comprehensive list of all methods and functions within ComosRevisionMaster.RevisionMaster is difficult. However, SiePortal is your best resource:
SiePortal – Search for "COMOS API Documentation" or "ComosRevisionMaster" to access the official documentation which should detail available functions and properties.
Important Considerations:
Our flexible community website is a platform that allows users to connect, share information, and collaborate on various topics of interest. The website offers a range of features such as discussion forums, messaging, user profiles, event calendars, and more. Users can customize their experience by creating and joining different groups or communities based on their interests or location. The website is designed to be user-friendly and adaptable to the needs and preferences of our diverse user base. Whether you are looking to network professionally, share hobbies and interests, or simply connect with like-minded individuals, our flexible community website has something for everyone. Join us today and become a part of our thriving online community!
India
Copyright ©2026
Share this page with your family and friends.