Hello
I am trying to create a macro that would cycle through all the parts in a folder, open them one by one, reframe and go to ISO view, take a screenshot and save it in a ppt. I have found smaller macros that are doing parts of this and managed to botch what I need. it works fine with the...
Does anyone have experience with CATIA machining module?
I have to make a back boring program using the Steiner Autofacer for front and back spotface. But the tool is "started" with a reverse motion that I don not think can be controlled from the process window.
Did anyone use this before or...
You can unlock those options by loading Catia in Admin mode. Your administrator should do that for you.
In case he doesn't you have here a link on how to do it yourself: How to Run Catia V5 in Admin Mode
Good evening everyone
I had to reset my user on my computer due to some issues (not related to the following question). After doing so I have found myself having to bring back all the setting I had in my Catia environment. For some reason, every time I try to load a specific VBA Project into...
Hello
I am trying to modify the MachiningDocument.CATScript and ToolList.CATScript to suit our company`s needs but since I know their language at a basic level I feel like these two are written in a more complex way and I am having a difficult time understanding and modifying it.
Does anyone...
Hello ferdo
I wrote it in Catvba as I am planning to use it with Office as well.
The interface for picking the path would not be required as they are standard (one is a fixed pathway from start to finish and the other will only be different until inside the project folder.)
I am not sure about...
This is for hiding the planes.
Set productDocument1 = CATIA.ActiveDocument
Set product1 = productDocument1.Product
Set productDocument1 = CATIA.ActiveDocument
Set selection1 = productDocument1.Selection
selection1.Search "CatPrtSearch.Plane,All"
Set visPropertySet1 =...
Good morning
I am working on a macro that would save my files in two different folders. I know it sounds easy except:
-Folder 1 in the same all the time so this will be easy
-Folder 2 is part of a folder structure we use for each project.
Example of folder structure:
\\User
-Project X...
Copy/cut-Paste could break the links of the BOM with the model but since you do not have the it anymore and the drawing is "dead" then there will be no problem in doing this. Unfortunately you can not set a positional link between a table and a view.
Good luck.
TiagoFigueiredo that is just a part of the code, relevant to my question.
itsmyjob Unfortunately I do not have it but I have noticed there is something similar in the machining module. I might be able to use something from there.
Thank you
Hello
In one of our processes we are required to color several surfaces differently than the rest of the component (i.e. component is blue with important surfaces yellow). I have managed to write a macro that would color a surface just by clicking on it and I was wondering if there is a way of...
Language="VBSCRIPT"
Sub CATMain()
Set productDocument1 = CATIA.ActiveDocument
Set product1 = productDocument1.Product
Set productDocument1 = CATIA.ActiveDocument
Set selection1 = productDocument1.Selection
selection1.Search "CatPrtSearch.Plane,All"
Set visPropertySet1 =...
Apologies for my late reply.
@ferdo I tried googling it but, as your example proves, you have to know what to search for :D. I found a couple of useful answers there now.
@jenial I will try your idea as well soon and let you know how it worked out. Your toolbar looks much better, I have...
Hello everyone.
I am working on a VBA macro toolbar that would have tabs and buttons for various macros. My only problem is that I feel like I am missing something.
Currently, at the end of each macro, I have "Unload Me" to let the macro run and close the toolbar window. Without this command...
Sorry for my late reply.
Thank you. It was not working on some of the projects and i have found the problem. It was just the way the parts were hidden.
Hello everyone
I am trying to create a macro that would show/hide all the features inside a Body. I have managed to get to a point where it is working nicely but I can not figure out how to make it check all the bodies and not just the ones with the name "Part Body".
Does anyone have any...
Hello
I was using a macro to count the sheets of a drawing and label them properly but I had 4 of them, one for each drawing size.
I want to use VBA and create a user form from which you can select the drawing size and it would automatically run the correct script.
However, since i moved the...