Change name CATIA macro tutorial + free macro download

Change name CATIA macro

Changing names during the work in CATIA is a common act, here is free VB macro to help you organize those names.

change name catia macro1
change name catia macro

This free change name CATIA macro can help you a lot. It’s very simple but very useful. If you like to be very organized this is just the perfect solution for element names. To run this name  CATIA macro you need to enter a name for your elements and start the macro. After that, you need to select as many elements you want and macro will change names. For example, if you enter Test, it will go like Test1, Test2 and so on. 

Change name CATIA macro code

This CATIA macro is based on this code.
Add-on for VB code is making an error it converts “&” to “&”

I made adjustments for code so u can use this code also with CATScript. So you can download Visual Basic version of this CATIA macro or you can make your own with CATScript.

You can download it for free and use it.

If you have any issues feel free to contact me.

Check my YouTube channel for more cool videos CATIA Tutorials or section on this site for free macros.

10 thoughts on “Change name CATIA macro tutorial + free macro download

  • November 23, 2018 at 4:03 pm
    Permalink

    I really like your blog.. very nice colors & theme. Did you make this website yourself or did you hire someone to do it for you? Plz respond as I’m looking to create my own blog and would like to know where u got this from. many thanks

    Reply
    • November 23, 2018 at 4:06 pm
      Permalink

      We tried to send you mail but your mail address is not correct.

      Hi Scottie
      thanks for good words, i did it by myself, it’s working on WordPress, ColorMag theme and these pictures are done in Photoshop. (with some customization on theme.)

      If you have any questions feel free to ask 🙂

      If you need my help, i am here too for small fee.

      All the best

      Reply
  • February 27, 2022 at 2:14 pm
    Permalink

    Hello , thank you for the code , amazing work , but when i try to use it i get “FUNCTION OR INTERFACE MARKED AS RESTRICTED” error on the line “Status = Selection.SelectElement3(ElementsArray, “Select Elements for name change”, False, CATMultiSelectionMode.CATMultiSelTriggWhenUserValidatesSelection, False)”
    Can you help me with that ?

    Reply
    • March 15, 2022 at 4:31 pm
      Permalink

      Hello, can you maybe send the video of the problem and the macro code, so i can test it, on my mail.
      musciharun@hotmail.com

      Reply
  • May 7, 2022 at 3:35 pm
    Permalink

    Hi, thanks for the macro. It would save me a ton of time!
    I need the marco to add a three digit number with leading zeroes and without the dash.
    For example Line001, Line002 exc.
    It was easy to remove the “__” from the code, but i can’t manage to change the text format to three leading digits
    Can you help me out?

    Thanks

    Reply
    • May 17, 2022 at 10:10 am
      Permalink

      Hello Joseph, sry for late answer.
      The esiest way i can think of is like this.
      You have the loop cpunter (i or any other).
      You can put like this if i<10 then name is = "00" & i
      if i < 100 then name id "0" & i I hope this can help you.

      Reply
  • October 7, 2023 at 4:54 am
    Permalink

    Please show me how to write macros to replace names in a part.
    12345-AA001-01 12345-AA002-01
    12345-AA001-02 12345-AA002-02
    12345-AA001-03 12345-AA002-03
    12345-AA001-04 12345-AA002-04
    12345-AA001-05 12345-AA002-05
    12345-AA001-06 12345-AA002-06

    Reply
  • October 7, 2023 at 8:31 am
    Permalink

    Please help me replace the body name in a part.

    ex

    123_AA1_245 -> 123_AB1_245
    123_AA1_246 -> 123_AB1_246
    123_AA1_247 -> 123_AB1_247
    123_AA1_248 -> 123_AB1_248

    Reply
    • November 21, 2023 at 5:21 am
      Permalink

      Hello,
      I don’t know, how is this complex, if it’s simple like you write,

      You don’t need to replace it, just rename it.

      So you go like

      Make selection, than create for loop to rename these bodies, use counter to go from 1 to..

      I hope this helps

      Reply
      • November 21, 2023 at 5:21 am
        Permalink

        Hello,
        I don’t know, how is this complex, if it’s simple like you write,

        You don’t need to replace it, just rename it.

        So you go like

        Make selection, than create for loop to rename these bodies, use counter to go from 1 to..

        I hope this helps

        Reply

Leave a Reply

Your email address will not be published. Required fields are marked *