Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

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

Search results for query: *

  • Users: Milie
  • Order by date
  1. Milie

    Get CATIA V5R19 Object from a vb script and not R20

    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
  2. Milie

    Get CATIA V5R19 Object from a vb script and not R20

    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(""...
  3. Milie

    Get CATIA V5R19 Object from a vb script and not R20

    My bad, I did a mistake, : I typed cnext.exe regserver instead of cnext /regserver ... Will do the tests you said now... :P
  4. Milie

    Get CATIA V5R19 Object from a vb script and not R20

    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...
  5. Milie

    Get CATIA V5R19 Object from a vb script and not R20

    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...
  6. Milie

    Hide and show products/parts without using Selection with any API?

    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...
  7. Milie

    How to refresh the view in a scene in VBA?

    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 =...
  8. Milie

    In a macro, how to switch the view to a scene I created?

    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...
  9. Milie

    In a macro, how to switch the view to a scene I created?

    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...
  10. Milie

    In a macro, how to switch the view to a scene I created?

    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...
  11. Milie

    In a macro, how to switch the view to a scene I created?

    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
  12. Milie

    In a macro, how to switch the view to a scene I created?

    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...

Part and Inventory Search