TiagoFigueiredo
Industrial
I'm having something weird happening with catia and macros.
Sometimes when i have a part document opened macros left to interact with catia and i can not understand why. I have tested with CATScript, CATvba, vb.net. To solve this, I need to reboot catia, or open a CATProduct and work for a while in that product.
An example of what is happening: When this happens, if the macro needs something selected to continue running, I select the needed things, and macro says to me that there is nothing selected, then I tried to debug, and I see that for macro there is nothing selected (selection1.count=0, or ...selection.item(1).value, the value of variable remains empty). After that i try to rerun the macro, and there is an error that don't find the active document.
This is giving me completely crazy.
Tiago Figueiredo
Tooling Engineer
Youtube channel:
Sometimes when i have a part document opened macros left to interact with catia and i can not understand why. I have tested with CATScript, CATvba, vb.net. To solve this, I need to reboot catia, or open a CATProduct and work for a while in that product.
An example of what is happening: When this happens, if the macro needs something selected to continue running, I select the needed things, and macro says to me that there is nothing selected, then I tried to debug, and I see that for macro there is nothing selected (selection1.count=0, or ...selection.item(1).value, the value of variable remains empty). After that i try to rerun the macro, and there is an error that don't find the active document.
This is giving me completely crazy.
Tiago Figueiredo
Tooling Engineer
Youtube channel: