Hello Gelfs!
I registered the V5R20 as you said (I didn't unregister the other one, should I?) and here is the link to my registry file Link
Thanks again!
Emilie
Hello guys!
First of all, thank you for your help :) I manage to register my CATIA V5R19 32bit again.
GEL, you proposed to have a look at my registry. Here it is :
Link
Cause I tried the
Set CATIA = WScript.GetObject("", "CATIA.Application.1")
and
Set CATIA = WScript.GetObject(""...
Hi!!
Yesterday, before seeing your comments, I read something about register and unregisterversions of CATIA so I unregistered the R20 by doing :
1.CD to the unload directory of the version of CATIA to un-register
2.Run the command cnext.exe unregserver
I reboot my pc. I can see it worked...
Hello!
I saw a lot of posts on how to get CATIA object in a vbscript and what's usually ok is to just do the following in a vbs:
Dim CATIA
Set CATIA = WScript.GetObject("", "CATIA.Application")
My problem is that I have several versions of CATIA on my machine and this script tries to get the...
Hello,
I'm working on CATIA v5 on a project where we need to hide and show a lot of parts of a model.
Do you know any way to hide and show products/parts without using Selection with any API? c#, VBS, VBA ?
I tried already a lot of stuff but I don't manage to do it. I worked a lot on scene...
Hi!
I'm on CATIA V5 on a VBA project : I'm working with scenes and I hide some products in a scene I created and I would like to update the scene so I see the object has been hidden.
To create the scene I do :
Set RootProduct = CATIA.ActiveDocument.product
ProductName =...
GREAT!!!
You're the best!
[2thumbsup]
What was missing was in my SendEnter.vbs . I didn't get all about this file.
I really appreciate your help !
I copy the SendEnter.vbs file in case it helps someone else too :
Set WshShell = WScript.CreateObject("WScript.Shell")
WScript.sleep 200...
One more question, I'm wondering : When I'm using CATIA without the macro, I just select the scene and I press 'Enter' on my keyboard nothing happen. It's only working when I double-click on the scene. Then, is it suppose to work if I ask a script to simulate the 'Enter' key ?
I ask this cause...
Hi!
Thanks you Ferdo for your help! :)
I tried this but it doesn't activate the scene... Could you help me please?
This scrip is creating a scene with the rootProduct. I would like to activate this scene so I put it in a selection, I see it is highlighted in CATIA but it is not activated.
Sub...
Thanks a lot for your help! I'm trying this :
I manage to have the scene selected (I see it is highlighted in catia) but I have one question : what do you activate? The scene's SceneProductData?
I'll also try in parallel the sendkey method.
:)
best regards,
Emilie
Hello!
I'm using Catia V5 and I did a macro in CATScript creating scenes and I would like also the macro to switch the view to one of my created scenes.
Here is my macro : it's creating 1 scene per product of the "first row" of the product tree :
Sub CATMain()
Dim i As Integer
Dim products...