Hi, I can generate shortcuts for any all commands but one of them isn't an Okay. im after generating a quick way of selecting ok on a powercopy window without having to select the ok button with the mouse everytime. Does anyone know how to do this?
Hi Kantoku,
It works great recognising the lines and generating the midpoints but doesn't seem to recognise curves or circle geometry and thus doesn't create a mid point on those.
Ive tried debugging the code and it errors at " For Each crv In targetCurves" is this a catscript unable to read...
Hi Kantoku, Thanks for your reply.
When running the sample it runs through the mesg box, I select the geoset with the lines/circles in it and nothing happens. The msg box appears then wanting you to select done. Is this because it doesnt recognise the lines/circles as curves? This is when...
Hi any help would be great, im trying to generate a mid point on lots of curves/lines in a geometrical set. I want my macro to search inside the geometrical set named "Geom" and loop through generating a mid point on all the curves and lines in that set.
here's my first attempt and it keeps...
There's one final addition im trying to maybe add to the above script and that is for every newly created Part, I want to split the partbody with an external reference surface that is held in my data model catpart(surface is published). Ive read a few articles saying that I would need to...
Thanks Wegan22. I had to modify some sections of your code to make it work for me and adjust the numbering but I've got it to do what I needed.
Sub CATMain()
'Check to make sure the user is on the assembly workbench
If CATIA.GetWorkbenchId <> "Assembly" Then
MsgBox "Only works...
I'm a young engineer trying to make his way in this world, im sure that you've been there. im trying to learn the best I can with this stuff and came to this forum to try and get the support from experts that can make me learn a lot faster than it says in a code book. I always find the best way...
Hi, Im still having trouble with the macro falling over because of my catparts having the same Item number, is there a way to identify the Instances of the item number and add it to the item number so that it can see them as seperate catparts when running the macro?
It works beautifully. The final problem I have is that within the first product ive got multiple instances of the same part. Therefore when it tries to create 50.1 to 150 it works but then 50.2 to 151 it falls over because it sees there's already a 150 been created. As you been amazing so far...
Amazing! Thanks for the response weagan22 much appreciated. Ive tried to run the macro and it creates the first catpart in the 2nd product and publishes the partbody as i want, but then it seems to get stuck from there, like it doesn't know how to add the next number. Is the intended coding to...
Hi, Im after some advice whether its possible to create a macro in Catia V5 to take a product with a number of .catparts, those catparts have a partbody that are published. I want the macro to be able to generate a new catpart in a different product and within that new .catpart have the...