Hello,
I have an issue with Catia programming.
I do a lot calculation with a macro, point coordinates, angles between lines.
My problem is that with one Catia Environment it works properly.
But with another it throws an Error.
The error is Accessviolationexception
I try to measure an angle...
Yes I gót it like this. But the main problem is that when I try to show the code that I would like to modify this part IT throws an error.
I open a part properties which opened from SmartTeam and its name is like a SmartTeam ID because its made a local representation on my computer.
Any idea?
Hello everyone,
I have faced with a issue that I still can not find a result for.
When I wrote a macro I can Tell the macro that I would like to modify a part which is user selected.
The selected part name is stored ín a strint than with that Line:
Catia.Documents.item(strint that stored name)...
Hello,
1. Catia V5 R19. I use win10 , x64
2. Correct
3. Correct
4. Correct
The code runs, but it didnt do anything.
I dont know what could be the problem...
Hello,
Yes i have seen that creating the code in VB.net will be a good solution, but because of the lack of license its sadly not an option.
@Ferdo:
I tried this code, but it doesnt work for me:
Sub CATMain()
Dim param()
Dim oFilePath, oFileName, oModule As String
Dim oSystemService As...
Hello,
Thank you for the answers.
@ferdo: Is this solution working if my catvba project is really complicated and i have at least 11 modules underneath the userform? I mean, that can i initialize the userform, or i can manage the modules umder it?
So my main goal is that i can make a button on...
Yeah maybe you are right, but I create a ribbon menu with an icon to run the userform from it. But there is no option to run it only the modules appaer so I can attach them for the button.
I tried to write a module which call the userform when the user run it. It is also appaer when I tried to...
Hello all,
I have created a macro userform for Catia with several modules underneath and calling them.
My question is that how can I share this catvba project with others, while they can run the userform but they are not able to see my code. I dont want to share my code with others but they...
Thank you for the answer Ferdo.
Maybe I am wrong, but it is possible to select example the planeoffset in the GS2 without deselecting the geometrical set?
How is it possible for multiple search, I mean search in the XY named geometrical set and then select the XY point from that geometrical...
Hello,
I have a problem which I can not find a solution for. So I have several geometrical sets with different names. Example: GS1, GS2...
In these geometrical sets I have points, lines, planes inside them, but they have the total same name in each geometrical set.
Example: GS1: point, line...
Hello guys,
I have a question regarding is there any method which gives me a 3D line Startpoint and Endpoint?
I would like to check that if the line startpoint or the endpoint is closer to a selected plane. So I mean which distance is smaller.
I tried to put two points on that curve, but I got...
Yeah, thank you guys.
I have bought Emmett Ross book. It's quite detailed and easy to understand firstly.
But I have seen there aren't any topics about drafting module, and I couldn't find any topics about that.
Do you have any good source for understanding the drafting module programming, or...
thread560-363868
Hello all,
I have seen that there are some professionals in this forum in VBA programming of catia V5.
I am totally new in this topic so could you please give me information where I can find tutorials, books where I can start learning Catia programming?
If some of you have...