Skip to main content
Question

Document File Types per Document Class using Macros


 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

Forum|alt.badge.img+14
  • Superhero (Employee)
  • 177 replies
  • October 1, 2021

Hi Nimesh,

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

Regards,

Sahan


  • Author
  • 81 replies
  • October 1, 2021

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.


Mathias Dahl
Superhero (Employee)
Forum|alt.badge.img+32
  • Superhero (Employee)
  • 2891 replies
  • October 1, 2021

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!
 


Forum|alt.badge.img+28
  • Superhero (Customer)
  • 1482 replies
  • October 1, 2021

 

The macro post mentioned by Mathias


  • Author
  • 81 replies
  • October 4, 2021

@Mathias Dahl and @ShawnBerk  Thank You!


Amila Samarasinghe
Superhero (Partner)
Forum|alt.badge.img+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


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings