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...
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...
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?
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?
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 =...
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
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...
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...
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...
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 =...
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...
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...
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"...
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...
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