Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

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

    how can I get the coordinates with reference AxisSystem?

    Hello, guys. I'm trying to make a macro which can make coordiante points as much as what I want. So I recorded to make coordinate points with Axis System and I modified this code. And I got a problem in here. If I select the Axis which is in the "Axis Systems", then it works very well. On the...
  2. tpalsl125

    After Inserting a Part in a Product, How To Get the Instance Name

    Hello, All I found the below script to insert a Part in a Product. Path(0) = "C:\Part1.CATPart" CATIA.ActiveDocument.Product.Products.AddComponentsFromFiles Path, "All" But I really don't know, how can I get the instance name of inserted Part1? For example, there is a part in a product...
  3. tpalsl125

    When using Macro, How to use Right-button and Center Graph

    Hello, All. I'm making a macro to assembly parts with Axis to Axis. But I have some qustion. When I click macro and waiting a selection, I want to center graph and tried to click right-button of mouse. How can I click right-button mouse, when using macro?
  4. tpalsl125

    How can I get a File Name in Sketch?

    Hello, all I'm trying to make some macro. But I didn't solve to get a file name in Sketch. ALSO I know how to get a Catia Name(Part Number), a Instance Name and an object name in Sketch. But I don't really have no idea to get a File name in Sketch. Can somebody help me or give me some tips?
  5. tpalsl125

    Reset Properties (Change Colors to Automatics)

    Hi, All I made the script to make elements reset properties. But I have to click 'OK' button after executing the function. Here are my youtube link and the script. Can anybody advice about this without click 'OK' button? Youtube Set ActiveDoc = CATIA.ActiveDocument Set ActDocSel =...
  6. tpalsl125

    how to export the catia data to 3dxml with AXIS

    Hello all, I have a question when I export to 3dxml. I know how to export to 3dxml, but don't know how to export to 3dxml with Axis. Can you tell me how to make it?! ;D
  7. tpalsl125

    (VBScript) After using "CATIA.StartCommand" method, how to auto-click the ok button in VBS

    Hello, All I found the code to use the Catia function in VBScript. But I want to know, if I use this code: "CATIA.StartCommand ("Assemble")", the assemble box will pop up with 3 buttons, "OK", "Cancel" and "Preview". In here, I want to put the code to automatically click the "OK" button...
  8. tpalsl125

    (VBScript)Copy & Paste Special Problem from Another Part Bodies

    Hello, All I made the script to copy & paste special a body. It works very good only in same part. I'd like to do from another part bodies. Also I have no idea this : "Selected element(s) not allowed for this operation.". Could you explain me what is wrong? I recorded my problem and...
  9. tpalsl125

    (VBScript) Without the Selection, How to Add Bodies on the Product?

    Hello, Guys I think this is very simple script, but I can't make it. I made a script to add bodies on Product, not open the window a part. Of course, I can make it with the selection. But I don't know how to add bodies without the selection on the Product. Could you check below my scripts...
  10. tpalsl125

    VBScript Existing Component Loop Problems

    Hello all, I made the script to make Existing Component with Do ... Loop. This can make just first time and after can't make it and pop up the errors. Here is my script. Could you tell me where it is wrong? Sub CATMain() Set productDocument1 = CATIA.ActiveDocument Set product1 =...
  11. tpalsl125

    CATPart or CATProduct Copy & Paste Question

    Hallo, all I think this script is very simple but it doesn't work as what I want. I recoreded the macro to copy and paste a cataprt or catproduct. And I modified a little bit like below script. To copy "Part1" in "Product1" works very well. But it doesn't work in "Product2". I uploaded the...
  12. tpalsl125

    Open an Exel file(exel) and a Text file(txt) in Catia

    Sub CATMain() Set objNote = CreateObject("Scripting.FileSystemObject"): 'objNote.Visible = true Set objNotepad = objNote.OpenTextFiles.Open("D:\test.txt") Set objExcel = CreateObject("Excel.Application"): objExcel.Visible = true Set objWorkbook = objExcel.Workbooks.Open("D:\test.xls") End Sub...
  13. tpalsl125

    How can I get the "Part Number" in Product? not "Instance name"

    Hello all, I found this script on here site. But this can get only Instance name. For example, I have 3 plates in a prodcut. If that plate name is "Plate", instance name will be "Plate.1", "Plate.2", "Plate.3". How can I modify this scrpt to get the "Part Number" not the "Instance name"...
  14. tpalsl125

    Running a Power Copy Script in MD1 Licence

    Hello all, I made a power copy script in my computer, but I can't run this macro in my Office. And I tested this in the KT1 licence, it works very well!! Of course, I just use this with the KT1 licence, but this is very very expensive licence. How can I modify my power copy script to run in...
  15. tpalsl125

    How to make "Isolated Point" in VBScript?

    Hello, guys Like upper picture, I wnat to make a isolated point in vbscript. Also I tried to make this on recording macro. But It was failed. Could you tell me how to make it? Thanks a lot, Mr. Oh

Part and Inventory Search