Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations cowski 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: Kevintp
  • Content: Threads
  • Order by date
  1. Kevintp

    How to execute another program using CATscript

    Hi, I need to build a CATScript to execute a process in the background using the following simple code: ============= Language = "VBSCRIPT" Sub CATMain() dim str1 as string dim return_code as long dim S as SystemService Set S = CATIA.SystemService str1 = "edit c:\temp\test1.txt" msgbox str1...
  2. Kevintp

    Method Name does not work

    Hi I tried the following codes sent to me by itsmyjob (it worked for him on both V5R12SP4 and V5R13). Somehow, I cannot change the Name. First, it didn't work on V5R11SP5, I then tried it on V5R12SP6,and it still didn't work for me. It always fails at: Solid1.Name="GiveNewNameHere" with the...
  3. Kevintp

    Using Catia API to display or change a solid name

    Hi, I have a CATIA drawing with some solid bodies in the middle of screen and on the left there is a specification (reference to all the solid bodies) 1) When I use the mouse to select the 1st body from the specification, then click on the "+", it will show "solid.1" 2) use the mouse to select...
  4. Kevintp

    How to save a .CATpart into IGES format using VBScript

    Hi, I try to save the .CATPart file into IGES format using the following instructions, but it does not work: Dim my_part = CATIA.Activedocument.Part Dim new_file as string new_file = "cat_2_igs" my_part.ExportData(new_file, "igs") The error message was saying that: Cannot...
  5. Kevintp

    How to get the color /material of a part in Catia using VBscript

    Hi, I like to write a VBScript that will retrieve the color or material data of a part that I current load into Catia. I have tried this: Dim my_data as AnyObject set my_data = CATIA.Activedocument.RenderingMaterial but it gave me an error message saying that: Object does not support this...

Part and Inventory Search