Hi, Doug
Thank you for your kindness.
It was very simple to think to modify that..
I'm so sorry to bother you.
I will try to solve a Problem once more on next time.
I really thank you.
Hi, Doug
Thank you for your answer.
I have to select the Axis System which is contained in the Geo Set.
So do you have any ideas to solve this problem?
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...
@drewmumaw
Thanks for your reply.
I made another script. This is also doesn't work.
Please, give me some tips for working. I have no idea...
I use Catia V5 R24 version.
set Selection1 = CATIA.ActiveDocument.Selection
selection1.Search "Name=*Steckbolzen_ZG*, all"
set Element =...
Hallo, Lardman.
Thanks for your reply.
I've jsut tried to do with your script.
But unfortunatly, I'm very very beginner about macroes and it doesn't work.
Could you check the below script?!
Path(0) = "C:\Users\Desktop\Part1.CATPart"
oPart =...
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, Drewmumaw. Thanks for your reply.
The "Start command" method is only way?!
When I'm using a select method, I have to make an element with 'Cneter Graph'.
I made the test macro. But it doesn't work..
Could you check this?
Set Sel1 = CATIA.ActiveDocument.Selection
Sel1.Clear
Status0 =...
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?
Thanks for your reply.
I just tried to use below script. But I didn't get a result what I want.
Because I have a Product that has included a Part.
I have to know "01_101__Lower Insert Steel"'s file name, not a Catia name, when I'm in "Sketcher" Mode.
MsgBox CATIA.ActiveDocument.Name
MsgBox...
Hello, Ferdo. Thanks for your script.
Your script can find the path in Catia tree..
I meant I want to find a path of a File in 'Sketcher' mode.. ex) "C:\Users\Desktop\Part1.CATPart"
Not "Product.1\Part.1\Geometrical Set.1\Sketch.1\Point.1"
I know only to use 'FullName' method.
But this...
Hello, lardman. Thanks for your reply.
I meant, when I am in "Sketcher" Mode and select an element(Point2D, Line2D, etc..),
how can I get a File name? Not Catia name(Part Number) and Catia instance name.
Here is my script which I found on Google and I modified a little bit.
Of course, I know...
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?
Ferdo, Thanks for your reply.
I'm sorry, I didn't understand.
Could you explain easier for me?
And did you see my youtube link?
That is what I made in the youtube the difference your script and "reset properties".
Hello, Ferdo
Thanks for your reply.
I'm sorry but I've known your script. Also that is what I already found and tried.
I think this script is good solution.
But there is only one problem in your script.
That is if I directly select a face and change color then execute your script,
only that...
Okay, I understand your mind.
I'll find it on the internet.
But before doing, could you tell me just one thing?!
Anyway is it possible in only using vbscript?
Thank you for your reply.
I found this one to do 'disassemble' function with sendkeys.
That is very simple script, but it didn't work.
I think after executing the startcommand then the catia doesn't recognize "Disassemble" window in the 'AppActivate' method.
Could you explain to me why it...
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 =...
Thanks for your reply.
Yes, I've already tried to convert with "XML Tesselation" option.
But it didn't work.
Also if I convert with "XML Tesselation" option, I can't select a piece of surface.
This means I can't measure the face to face.
Do you konw why it doesn't work?!
Please, help me!!