Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations waross on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

.catvba question

Status
Not open for further replies.

gvansly1

Automotive
Mar 19, 2020
5
US
Hi all,
I'm trying to run a .catvba file that a coworker from Germany wrote but I can't seem to get it to show up in the "available macros" list as shown in the image below with the blue question mark.

Steps taken:
1: Tools/macro/macros
2: macro libraries / library type = vba project
3: Add existing / filepath +file.catvba
4: File does not appear in the available list.

Any help would be appreciated



2_v2rafp.jpg

3_dydrfj.jpg

1_hwqq3s.jpg
 
Replies continue below

Recommended for you

Hi.

It looks like this catvba has no modules with public CATMain subroutine.

Open VBA editor (Alt+F11) and check if there are such modules.
 
Little Cthulhu said:
It looks like this catvba has no modules with public CATMain subroutine.

Open VBA editor (Alt+F11) and check if there are such modules.

This file is a VBA script, when I use notepad to edit/view it the file is not readable see attached image

4_g6p8lv.jpg
 
Little Cthulhu said:
Open VBA editor (Alt+F11) and check if there are such modules.

I thought I put myself pretty clear. You do know what VBA editor is, don't you?

Are you allowed to post the .catvba here?

By the way, why not to ask your "coworker from Germany" directly?
 
You were clear, I'm no expert but I am familiar with the VBA editor don't know how to open this with the editor.
The author of this no longer works at our company.
I have uploaded the file, please be patient with me as I am not on your level.
 
 https://files.engineering.com/getfile.aspx?folder=576d19eb-edfb-44de-a5e4-096aab5f04f9&file=VT_POINTS2EXCEL.catvba
in CATIA, Tools-Macro-Visual Basics Editor (or Alt F11 as Little Cthulu wrote)


regards,
LWolf
 
gvansly1 said:
please be patient with me as I am not on your level.

No worries, that's the whole point of this forum.

Thanks for uploading. I am able to observe list of modules and run the one named mod_start.
What CATIA version do you use?

Meanwhile it seems that .catvba contain nothing but two subroutines and a form that runs them. I've extracted them as CATScripts so that you can run them without VBA.

[tt][/tt]
 
Little Cthulhu said:
What CATIA version do you use?

Refer to original post last image.

Little Cthulhu said:
I am able to observe list of modules and run the one named mod_start

Little Cthulhu said:
contain nothing but two subroutines and a form that runs them

So, I did some digging in my old emails and found the instructions [see attached.pdf] on how to use this and although it's been almost 2 years since I used it last I now remember that form! It gave an option to run either of the 2 scripts you uploaded [page 2 of the pdf]. I clearly remember following the instructions to the T and it worked flawlessly.

Our IT department last month pushed an updated CATIA version out to everyone stating that without the update we would no longer be able to use CATIA.....So that makes me wonder? Is there an option somewhere that needs to be ticked? Or is there an add-on or plugin that I need?

If not, what would explain why it is that I can't open this file as you did, and as I know I have in the past?

By the way, the 2 files you uploaded work as expected, so THANK YOU for that, but would still like to understand why??? this worked for me in the past but not now? And maybe you could show me steps on how you did it? Frustrating for sure!

 
 https://files.engineering.com/getfile.aspx?folder=3fc93d54-9ba9-41ca-bae2-4157beef3dfe&file=Instructions.pdf
If not, what would explain why it is that I can't open this file as you did, and as I know I have in the past?

As .catvba format is proprietary to Dassault all questions should go to them.

My best guess is there're something wrong either with your CATIA or VBA installations.
I use CATIA R25 SP3 x64 by the way.

What VBA version do you have (again, open VBA editor with [tt]Alt + F11[/tt] and select [tt]Help - About[/tt] in the menu)?
Are you able to run other .catvba macros?
Can you please create a new .catvba, create a module in it and post it on this forum so that I could test if it would open on my PC?
 
Little Cthulhu said:
What VBA version do you have (again, open VBA editor with Alt + F11 and select Help - About in the menu)?
Are you able to run other .catvba macros?
Can you please create a new .catvba, create a module in it and post it on this forum so that I could test if it would open on my PC?

I guess that won't be possible as I write this reply from my personal home PC.
Our plant has closed for this and next week [ maybe more to follow ] and I have been working from home on my company issued laptop that suddenly has memory issues that won't allow it to load windows....aaarrrggghhhhh.
I will have to follow up when I get back to work and a working laptop....But if nothing else you helped a great deal and I appreciate your patience and taking the time to help!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top