Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations KootK on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. Smileyoer

    Catia environment problem

    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...
  2. Smileyoer

    Catia/Smartteam

    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?
  3. Smileyoer

    Catia/Smartteam

    But I dont know its number ín a product, so I can not reference it. I would like to select a part with user selection.
  4. Smileyoer

    Catia/Smartteam

    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)...
  5. Smileyoer

    Share catia macros

    Yeah that was the problem. You are all the best! Thank you!
  6. Smileyoer

    Share catia macros

    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...
  7. Smileyoer

    Share catia macros

    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...
  8. Smileyoer

    Share catia macros

    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...
  9. Smileyoer

    Share catia macros

    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...
  10. Smileyoer

    Share catia macros

    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...
  11. Smileyoer

    Search in proper geometrical set by name VBA

    Ohh I tried your code Ferdo thanks for your useful answer! :)
  12. Smileyoer

    Search in proper geometrical set by name VBA

    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...
  13. Smileyoer

    Search in proper geometrical set by name VBA

    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...
  14. Smileyoer

    Catia VBA startpoint, endpoint

    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...
  15. Smileyoer

    Catia VBA programming sources

    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...
  16. Smileyoer

    Catia VBA programming sources

    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...

Part and Inventory Search