Skip to main content

 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

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.


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!
 


 

The macro post mentioned by Mathias


@Mathias Dahl and @ShawnBerk  Thank You!


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