Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

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

Search results for query: *

  1. Kevintp

    Importing data from Pro/E

    Hi, In my case, I converted the ProE models into IGES or STEP (better) format then I can load either one of them into CATIA. Some color and material properties may be lost, but the structure, dimensions remain unchanged. Once it has been loaded into CATIA, you can edit/modify to what you...
  2. 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...
  3. Kevintp

    Method Name does not work

    Hi Eric, Thanks a lot for your quick respond. We just tried on V5R13, but it does not work either. It appears that something is not done correctly from my end. Do you have any suggestion for me to verify (that our systems/environments are compatible) from here? Thanks.
  4. 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...
  5. 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...
  6. Kevintp

    How to save a .CATpart into IGES format using VBScript

    It's done. I already figured it out how to save the .CATPart into a different format. Thanks.
  7. 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...
  8. 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...
Back
Top