Description: Sample Groovy script to read file attribute values from the 'Edit Attributes' screen and write that attribute data into custom XML parts of the .dwg file.
Context: Document (.dwg)
Document Type: File
Remark: Accessible in 'Post' task mode only.
Script:
def execute(){
HashMap<String,String> attributeMapping = new HashMap<>();
attributeMapping.put(IDocumentAttribute.REV,"Revision");
attributeMapping.put("Signatory Department","AuthorDepartment");
attributeMapping.put("My Classification","Classification");
documentService.writeAdoddleAttributesToFilePropertyAttributes(attributeMapping);
}