×
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

Log In

Come Join Us!

Are you an
Engineering professional?
Join Eng-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

Macros losing conection with CATIA

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.

Tiago Figueiredo
Tooling Engineer

Youtube channel:
https://www.youtube.com/channel/UC1qdlBeJJEgMgpPLV...

RE: Macros losing conection with CATIA

Happened to me with R26. After log off / log on everything worked well during a day. With R27 there's no connection loss at least for now.

Regards,
Jenia Ladkov

RE: Macros losing conection with CATIA

(OP)
Exactly R26...
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

Have you double checked that the version you are executing code in is the version currently registered with Windows (Search on /Regserver and /UnregServer from some reference on how to change).

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

May be it's not a Catia issue. I think maybe it's Visual studio. I have some old Apps developed using VB6 and newer had connections loss during Catia session. This happened with Apps developed using VS 2015. Anyway with R27 we don't have connection issues. I'll upload tomorrow what's new in R27.

Regards,
Jenia Ladkov

RE: Macros losing conection with CATIA

(OP)
Hello,

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

Do you need a connection in CATscript, catvba?

Regards,
Jenia Ladkov

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Eng-Tips forums is a member-only feature.

Click Here to join Eng-Tips and talk with other members!


Resources