Hello everyone,
would anyone be able to modify this macro so it translates all CGRs in folder to CATParts?
Following macro is doing file by file, with manual selection of each file...
Sub CATMain()
Dim sInputFile As String
sInputFile = CATIA.FileSelectionBox("Choose cgr file..."...
Hello all,
I am trying to make a macro for link between parameter created in Product to parameter in Drawing...
So far I have this:
'Publish Name
Dim oPubName As String
oPubName = "NAME"
Dim oProduct As ProductStructureTypeLib.Product
Set oProduct =...
Hello everyone,
I am having trouble with my macro which should call CATScript. Can anyone help?
I am getting error on line "catScriptLibraryTypeDirectory"
Private Sub CB_format_BOM_Click()
Dim param()
Dim oFilePath, oFileName, oM As String
oFilePath = sMainFolder & "\FORMAT...
Hello guys,
I would like to know, if anyone of you have an idea how to write a macro which will do following.
I have Product with many parts and one part is (lets call it master) used for positioning all the parts (containing many axis systems).
Each part have only one published axis system...
Hello all,
I would like to use a Table from CSV function, but after insertion I would like to modify column sizes of that table.
What I would expect: I select the table --> run the macro --> table modified
In the macro there would be that column 1 should be XXmm size; column 2 XXmm and so on...
Hello,
I am looking everywhere for a way how to write a formula into cell, but am keep getting this error:
---------------------------
CNEXT - CATScriptErrorMessages - ScriptingERR_1002
---------------------------
Execute the script "Excel formulas.CATScript".
The scripting engine for...
Hello,
I would like to write simple macro which will search "__" (double underscore) in part number.
Our Part number looks like this:
XXXXXXXXXXXX-XX_XXXX_SOMETHING_SOMETHING_ELSE__WORD1_WORD2_WORD3
I want to get message with
"SOMETHING SOMETHING ELSE" and "WORD1 WORD2 WORD3"
Can someone help...
Hello,
is there a way to list my properties in drawing when pointed to a product?
Simply I want a text field like this:
Property 1: "Property 1 text" (link on property 1 as in picture)
Property 2: "Property 2 text" ......
etc...
I found that I should address it like this:
Call...
Hello,
I have quite special request...
I would like to have "live" mass parameter in the drawing. ("live" in a meaning that parameter in drawing will get updated according to parameter in product and that will get updated according to part's design).
I would like to create macro which will...
Hello,
I have a macro which add a prefix to everything I select (Geometrical sets, bodies, sketches, lines, outputs, surface features, parameters etc...)
Would someone be able to modify it, so it have the same function + when I run it again on already renamed features, it will change its...
Hello,
Is it possible to insert a power copy with a macro. E.g. I have power copy with constraints: plane, line, point and 16 parameters which are already present in part where I am inserting PC and they have certain name. Is it possible that user will select only plane line and point and...
Hello,
Could anyone help with writing a macro?
I have list of external parameters e.g. 01_length; 02_angle... then I have a second group of parameters: example_01_length; example_02_angle... I would like to select 01_length run macro
Macro should do: replace 01_length with example_01_length...