Question

Document File Types per Document Class using Macros

  • 1 October 2021
  • 6 replies
  • 293 views

 Hi,

I need to limit Document Class “100 - Drawing” to attach only PDF as File Type. I do not want to attach other file types to document class 100. 

Is it possible via Macros tab in Document Class Management of Class 100? or Is there any other way?

 

Thanks in advance

Nimesh


6 replies

Userlevel 6
Badge +11

Hi Nimesh,

This post is bit similar to what you locking for. Kindly check

Regards,

Sahan

Hi @Sahan Udana 

Thank you for the reply. Unfortunately this is not what I required. I just need to limit attaching FILE TYPE of PDF to a specific document class only.

Userlevel 7
Badge +30

A macro should be able to do this, but I have not tested it. There is a post here on Community about restricting files over a certain size. A similar macro could check the file type and give an error if it is not allowed.

A custom event might also work, but I'm not sure how nice the error for the user would be.

Good luck!
 

Userlevel 7
Badge +28

 

The macro post mentioned by Mathias

@Mathias Dahl and @ShawnBerk  Thank You!

Userlevel 6
Badge +14

Hi @nimesh 

You can do this with a simple macro script. There are script values to get the document class as well as the file type and you have to just raise an error within the script if the necessary conditions meet.

 

BR

Reply