Get the Path of current CATVBA project
Get the Path of current CATVBA project
(OP)
Hi Guys,
Could somebody let me know how to get the path of the current active CATVBA project.
I guess Application.ActiveVBProject.Filename kind of thing wont work in CATIA as they do.
Perhaps a little bit of code will help a lot.
Could somebody let me know how to get the path of the current active CATVBA project.
I guess Application.ActiveVBProject.Filename kind of thing wont work in CATIA as they do.
Perhaps a little bit of code will help a lot.
Regards,
Maddy





RE: Get the Path of current CATVBA project
Why not, did you tried?
Add a reference to 'Microsoft Visual Basic for Applications Extensibility' in your VBA project.
Then
Set oVBE = Application.VBE
MsgBox oVBE.ActiveVBProject.FileName
Regards
Fernando
https://picasaweb.google.com/102257836106335725208
https://picasaweb.google.com/103462806772634246699...
RE: Get the Path of current CATVBA project
Thanks for reply.
I did tried it, but it was giving error in application
Iin case of catia ,, how could I pass application?
thats why I'm confused.
Regards,
Maddy
RE: Get the Path of current CATVBA project
Regards
Fernando
https://picasaweb.google.com/102257836106335725208
https://picasaweb.google.com/103462806772634246699...
RE: Get the Path of current CATVBA project
no result -> What? Did you tried the same?.
Any ideas on how to use this to get the path.
Regards,
Maddy