CATIA VBA error (fresh install)
CATIA VBA error (fresh install)
(OP)
It might be a common problem, couldn't find solution. So, as fresh install was needed (B25), now I can't get to run even a simple code like this:
I'm receiving an error (Can't find project or library) right in the first line "Dim RootProduct As Product"
Where there any changes from VB6.x to 7.1? Previously I was working on VB6.
CODE -->
Sub CATMain()
Dim RootProduct As Product
Set RootProduct = CATIA.ActiveDocument.Product
MsgBox RootProduct.Name
End Sub I'm receiving an error (Can't find project or library) right in the first line "Dim RootProduct As Product"
Where there any changes from VB6.x to 7.1? Previously I was working on VB6.





RE: CATIA VBA error (fresh install)
Regards
Fernando
https://picasaweb.google.com/102257836106335725208 - Romania
https://picasaweb.google.com/103462806772634246699... - EU
RE: CATIA VBA error (fresh install)
C:\Program Files\Dassault Systemes\B##\Win_b64\Code\bin\CNEXT.exe /unregserver
and
C:\Program Files\Dassault Systemes\B25\Win_b64\Code\bin\CNEXT.exe /regserver
but still macros doesn't work... also there was no previous version of catia on this computer it's system (win10) fresh install
RE: CATIA VBA error (fresh install)
Automation usage on multiple level on the same machine can not be done in parallel but only consecutively and with unregistering the first version before registering the new one to switch fron Rn to Rn+x
In the V5Rn installation directory, in a command prompt window, type :
catstart -run V5RegServer -unset
In the V5Rn+x installation directory, in a command prompt window, type :
catstart -run V5RegServer -set ProductLine env MyV5Environment DirEnv MyV5EnvDirectory
Regards
Fernando
https://picasaweb.google.com/102257836106335725208 - Romania
https://picasaweb.google.com/103462806772634246699... - EU
RE: CATIA VBA error (fresh install)