CATIA Macro Execution Problem

Hello

A customer provided us with a VB macro to create the cartridges on the drawings. Our problem is that at runtime we get the following error: "CNEXT - CATScriptErrorMessages - ScriptingERR_1002"

We are in VATIA V5 R19 and we tried on 2 stations for an identical result...

Anyone have an idea? I'm attaching the macro.

Thanks in advance,


drawing_titleblock.catscript

Hello! I don't remember the Catia macros, 

Nevertheless, a little search on the web gives me: 

http://www.eng-tips.com/viewthread.cfm?qid=373692

According to this forum, this would be due to a problem declaring the document as a PRODUCT CATIA  -> As  ProductDocument document

 

[edit] apparently it's done in yours.... I'm drying!

Hello

Well, I'm going to try some silly things but you never know:

- Is Catia in English?

- Has the macro been renamed?

- Did you try to clear the settings before launching CATIA and the macro?

Maybe even before all of this, have you asked your client if any specific settings are needed?

1 Like

Hello

Thank you for your answers, I had contacted the customer yesterday to ask him to detail the procedure and I just got the answer: you have to place the macro in a specific file in the CATIA installation directory and have a detailed view placed in the open drawing. Now it works!

Have a good day and have a nice holiday season,

 

This message to close the post.