Macros losing conection with CATIA
Macros losing conection with CATIA
(OP)
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.
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:
https://www.youtube.com/channel/UC1qdlBeJJEgMgpPLV...





RE: Macros losing conection with CATIA
Regards,
Jenia Ladkov
RE: Macros losing conection with CATIA
Before I used R24 and no problem at all with that. I have talked with my CATIA provider in Portugal, and they don't had gave any solution.
there is any interesting thing in R27?
Tiago Figueiredo
Tooling Engineer
Youtube channel:
https://www.youtube.com/channel/UC1qdlBeJJEgMgpPLV...
RE: Macros losing conection with CATIA
Generally I have used the following registry key to check which version of CATIA is currently registered with the operating system.
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\CNEXT.exe
--Doug
RE: Macros losing conection with CATIA
Regards,
Jenia Ladkov
RE: Macros losing conection with CATIA
I only have one CATIA release installed, in my computer. And this is happening as well with CATscript, catvba, vb.net... I still don't understand why. But it's a crazy thing.
Tiago Figueiredo
Tooling Engineer
Youtube channel:
https://www.youtube.com/channel/UC1qdlBeJJEgMgpPLV...
RE: Macros losing conection with CATIA
Regards,
Jenia Ladkov
RE: Macros losing conection with CATIA
Tiago Figueiredo
Tooling Engineer
Youtube channel:
https://www.youtube.com/channel/UC1qdlBeJJEgMgpPLV...
RE: Macros losing conection with CATIA
Regards
Fernando
https://picasaweb.google.com/102257836106335725208 - Romania
https://picasaweb.google.com/103462806772634246699... - EU
RE: Macros losing conection with CATIA
Tiago Figueiredo
Tooling Engineer
Youtube channel:
https://www.youtube.com/channel/UC1qdlBeJJEgMgpPLV...