Hello guys, meanwhile i got it, and gonna post what i have.
Option Explicit
Sub CATMain()
Dim prd As Product
Dim prm As AnyObject ' Use AnyObject as a flexible type for CATIA objects
Dim bd As Body
Dim result As String
Dim lvalue As String, dvalue As String
Dim xlApp As...
Hello guys,
Just wondering if jzecha could provide a little bit more information about the first one the "Bounding Box Tool", beacuse i was trying to do the same but with no success.
Best regards,
P. Paiva
Ok it wasn't what i expected, but going back to the first code you've sent me, can be modified to instead of a message giving me the info about the name, lenght and diameter on an excel, that automatically opens at the end of the code like the message?
Ty for you answers
Regards,
Paiva
Hi Little Cthulhu,
This worked perfectlly, but i want to do that on a stp without parameters, is there a way to measure the ejector pin like that?
Best regards,
P. Paiva
Hello guys,
I wanna know if it's possible to run all the automatic renames at the same time.
Like in this picture i have a couple of products that have the same name as the main product, but i only can select and rename 1 by 1 is it possible to do all at once?
Thank you in advance,
P. Paiva
Hello community,
I'm working in the Mould Injection Automation and i want to create a macro in VBA to measure ejector pins, i want the macro to run in a specific product and measure the lenght and the body's diameter of the ejector pins, is it possible, can anyone help me with that?
But if the...
I wanted to know/use something like the Drill and Tap Hole.
I'm doing a component for my company and the previous guy in my position used both the DrillHole and TapHole to do different this on the component and now i need to use one of them to use with symmetry, that's why i'm asking if is...
Hi Little Cthullu, i actually could do want i wanted but its missing some things.
Option Explicit
Sub main()
Dim productDocument1 As productDocument
Set productDocument1 = CATIA.ActiveDocument
Dim product1 As product
Set product1 = productDocument1.product
Set product1 =...
Hello kantoku-San.
I've done something like that but with no success, i'm going to show you with some pictures what i want exactly.
In this picture i have the component i insert, and it has some parameters, i want to get the parameter "Espessura_C8"
Then in this picture i have the...
Hello guys,
How can i connect two parameters "Espessura_8" and "Espessura_C8" with a formula, create a formula in the relations tab, i already have this code
Option Explicit
Dim CATIA As Object ' Declare CATIA as Object
Sub RelateParameters()
On Error Resume Next
' Define the CATIA...
Hi guys,
I'm trying to insert a new component in mold tooling design, then this window appears
and i go to parameters and associate one with another one that i already have on my mold, but when i press OK it only apply to the first one, can someone tell me why?
Or if it is something that i...
i can't get the macro to manage 1 hole and the udf doesn't show on the macro code.
I'm trying other things too and one of them is without using the udf.
Its' something like this
And i want to create a macro that enters in my product search the components with a certain name and see if...
Hello guys,
Im trying to create a macro that can pick some bodys from a part and putt them on another part, inside a product.
I want to go inside the product search if the component that i insert has the body named "Base_Extrator" and create another part to put that boy in.
All of this using...
If possible i wnat to work with both, create a macro that let me select as many holes as i want and then i use the knoledge template to insert that base on the top of the hole.
Yes your right, when i mentioned hole i was talking about the feature in the part design
this one.
I told you something wrong too, the pictures above are not macros, they're just something i did with surfaces.
I created this using a UserFeature, something like this.
Hi guys,
Im currently working with Catia V5 Macros and i already have a macro to do this in the picture
but in this macro i can only select and do one by one, im trying to improve it to select all the holes i need and than do this in the picture.
Best Regards,
Paiva