cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - You can Bookmark boards, posts or articles that you'd like to access again easily! X

Can you suppress warning messages when creating CGM files?

TimSharp
6-Contributor

Can you suppress warning messages when creating CGM files?

When we have finished or amended each of our Isodraw drawings, we export a CGM version of the file for use by our authors.

We never edit CGM versions of our drawings, they are just used as a convenient format to add to Word documents.

We've found through experience that an old version of CGM works best for us - "Model Profile (ISO 8632:1992/Am.1: 1994)".

But, because it is an old format, it pops up an error message saying it doesn't support things like callouts or object infos.

I have a macro that creates the CGM files and saves them in the right directory, but it always pops up the warning message. Is there a way to suppress the error message?

1 ACCEPTED SOLUTION

Accepted Solutions

You can switch off ALL dialogs (not only the warnings!) by

app.interaction = false

Please make sure to switch that on again by

app.interaction = true

after your export command, because the setting is not limited to the macro execution.

View solution in original post

4 REPLIES 4

Could you post a sample Iso file?

TimSharp
6-Contributor
(To:thendricks)

It happens with any Isodraw file that has callouts on it. It's because we're using an old CGM standard that it comes back with warning messages that there's "No support for callouts" or for several other newer features of Isodraw that are not supported by that standard.

The CGM files are fine for our purposes, I just want to suppress the warning message that pops up every time we create a CGM file.

We've tried using newer CGM standards, but they all cause problems with the version of Word we use, so we're stuck with the old one "Model Profile (ISO 8632:1992/Am.1: 1994)".

You can switch off ALL dialogs (not only the warnings!) by

app.interaction = false

Please make sure to switch that on again by

app.interaction = true

after your export command, because the setting is not limited to the macro execution.

TimSharp
6-Contributor
(To:bgraffmann)

Thanks, that works a treat. We've spent years having to click on the warning messages!

Top Tags