Hello. How can I send a file to MSC Marc 2020 for calculation from one computer to a second?
I read in their guide that this is possible, but I didn’t understand how to implement it.
For example, is it possible somehow in GUI in any programming language to select the path to a .dat file, press...
Hi all. Is it possible to use a macro to copy the entire contents of an open active Product and, using a special paste, paste it into a new Part or Product as a result and ONE body/Solid?
I tried to run the following code in two versions:
Dim activeDocument As...
Hello
I have a button on the vb.net form.
with its help I try to generate AllCatPart
But nothing happens, but some report menu is called up.
The code I use is below:
Dim actdoc As ProductDocument
actdoc = Catia.ActiveDocument
Dim MySel As Selection
MySel = Catia.ActiveDocument.Selection...
Hi. Is it possible to create one solid with "dead" geometry from the product?
Those macro similar to command ->Crtl+C in PartyBody and them with the mouse right bottom click in "Paste Special" and "As Result"
Hi everyone!
I'm interested in the issue of automating boolean operations. There are always two bodies statically. But always different names. How can I assign a button to remove the second body from the first?
What the macro records when executed is not entirely correct. And there is a link...
Hi all.
Is it possible to compare two parts or products and get a visual representation of the change in geometry?
Maybe some macros or ready-made solutions?
There is no access to DMU space analysis.
I looked into the topic, but it is already closed...
Hi all. I have two questions.
First question: there is a macro that renames the product structure in a loop. But if the parts were copied, then the names are duplicated with each step of the loop. Can be seen in the attached picture. How to avoid it?
For Each Item In myPrd.Products 'Documents...
There is a program written in vb.net. For several users, everything works fine. Several users get an error while working:
"System.ArgumentNullException: Value cannot be null.
Parameter name: type"
There are no references to a line of code.
It feels like the program cannot establish a...
Is it possible to use macros to put dimensions on drawings?
I tried to record actions using a macro, but I didn't find anything useful in the code.
The search for this resource also did not give any hints. In the picture below, I gave an example of exactly what sizes I mean.
Hello. I have been looking for a solution for a long time here and other resources, but I have not found a solution.
Essence of the question:: there are selected objects - parts or products. I need to change their PartNumbers and InstanceNames. The partnumber can be changed. But the instance...
Hello!
Is it possible to create a collection from selected items (parts,products)?
I need to create collection from "CATIA.ActiveDocument.Selection"
And then use For Each cycle to rename instance names in SELECTION.
For Each Item In ItemSelection gives me the error:
Error BC32023 Expression...
Hello. Is there any way to determine the id of the document? or contact by window number?
For example, I have a product where other products and desks are nested. After renaming and saving, the last element of the collection is activated for me. I want to go back later. At the same time, other...
Interested in the question: I have a form of VBA\vb.net\winforms. At startup, documents opened in the Catia are initialized there.
How can I check the type of the active open document?
And if it's not a part or a product, then display a message?
p.s. searching the forum did not answer my...
Interested in the question: in turn, I selected the necessary elements in the tree. Next, I want to change their names in the same order.
But the problem is that Сatia does not understand the order and changes names in a random order. Where is the mistake?
I did not find information in the...
Hello. How to refer to an element of not all open documents of the catalog, but only the active document?
without using selection.
For example, I want to refer to the elements shown in the picture:
Hello. I am trying to implement a search by part number. In the previous topics, they suggested how to search by instance name.
For example:
selection1.Search( "Name=" & nameNew & ".1" & ",all")
But this is an instance name lookup. I want to search by part number.
In pseudocode something like...
Hello. I cannot solve the issue with the selection of several objects.
I'm search for an element by its name. Then I need to add to the selected items.
Here example how I search all elements from active document:
dim cad = CATIA.ActiveDocument
dim sel = cad.Selection
sel.Search(...
Hello. How can the window name be updated?
I have a problem updating. when the document is already saved - the window name is displayed as the old one. although, in Catia itself it is already new.
How can the name be updated without reopening the document?
See pictures below:
Catia window...
Hello. I need help with creating algorithm.
I'm trying to assign names to CATIA tree elements from table rows. See pictures:
Tree:
Table:
I have an idea how it should look roughly in pseudocode, but I don't have enough knowledge to implement it. (vb.net language or catscript\c#\vba. does...
Hello all. I have a question: is there a macro or the ability to create one that could automatically load links for a product from the current directory?
For example: files are stored in C:/folder. When i'm load catproduct i have this broken links on black background.
I want to do this...