#1
|
|||
|
|||
RENAME PARTS without EDIT them
Hello guys....
I need to rename parts with same name but I don't want to edit them one to one.... ..exist a command that change partname when I inquiry the uniquenumber (~...) Thanks Luca G. |
#2
|
||||
|
||||
Re: RENAME PARTS without EDIT them
Salve Luca,
you could define a macro in ME10 like the one below: Code:
DEFINE My_rename_part PARAMETER Part_id PARAMETER New_name LOCAL Curr_part INQ_PART "." LET Curr_part (INQ 302) EDIT_PART Part_id RENAME_PART New_name EDIT_PART Curr_part END_DEFINE
__________________
Cheers, Chris |
#3
|
|||
|
|||
Re: RENAME PARTS without EDIT them
OK Chris...
vedo che possiamo parlare in italiano... meglio almeno ci capiamo prima. Io la macro che cicla tutte le parti e trova quelle che hanno lo steso nome l'ho fatta....solo che chideveo se non era possibile cambiare il nome alla parte senza fare EDIT_PART Cioč so che le parti che mi interassono sono ~12, ~18 ~25....voglio cambiare nome stando nella parte che ho attiva adesso ~18 Sorry to all users that aren't italian for this post!!!!!! Luca G. ---------------------------------------------------------------------------------------------- ENGLISH VERSION OK Chris ... I macro that loops all the parties and find those who spread the name .... I did just that asked if it was not possible to change the name to the party without EDIT_PART I mean I know that parties interesting me are ~ 12 ~ 18 ~ 25 .... I change my name being in the active part that I now ~ 18 Luca G. Last edited by Gach74; 04-11-2010 at 10:33 PM. |
#4
|
||||
|
||||
Re: RENAME PARTS without EDIT them
Ciao Luca
lo siento mucho, pero me parece que aqui no podemos hablar italiano - como aqui somos en un foro internacional. Me entiendes And as many people are not that fluent in reading and writing spanish or italian or french or whatever - let's switch back to english. Or even german D'accordo ?
__________________
Cheers, Chris |
#5
|
||||
|
||||
Re: RENAME PARTS without EDIT them
Ich glaube viel, aber es scheint mir, dass alle hier Italiener nicht sprechen können - wie wir in einem internationalen Forum sind
Maybe we all need to talk French Canadian eh?
__________________
Support Your Local Sheriff - At high noon Jason: "How much does it pay?" Citizen: "Well, none of our other sheriffs ever lived long enough to find out." Co-Create 2007 (15.50G) ANSYS Workbench 14 SolidWorks 2011 UGNX-7.5 / TeamCenter UA 8 PADS 2000 Applicon Bravo Autotrol CADAM Pro/E |
#6
|
|||
|
|||
Re: RENAME PARTS without EDIT them
Why instead of observing my post in Italian we do not try to answer the question?
I already made my apologies and then translated into English...then Ok....stop the polemics....if there were. Nobody knows how can I resolve the problem? Luca G. |
#7
|
||||
|
||||
Re: RENAME PARTS without EDIT them
Can i ask you why you need to do this?
i'm also italian |
#8
|
|||
|
|||
Re: RENAME PARTS without EDIT them
Simply I wanna rename my parts without edit one to one.....
...in my projects there are 100-200 parts with same name and when I rename them I spend many time if I must active them. Unluckly I can't copy the first that i rename to all the other positions because there are many dimensions catch to the pieces Luca G. |
#9
|
||||
|
||||
Re: RENAME PARTS without EDIT them
Salve Luca,
please find a sample solution attached. Usage: 1. INPUT the macro into ME10. 2. EDIT_PART one of the parts you would like to rename. 3. Start the macro from the command line, passing the desired new part name: Code:
My_global_rename_part 'New Part Name' Enjoy Please note: No warranties. Usage at your own risk
__________________
Cheers, Chris |
#10
|
|||
|
|||
Re: RENAME PARTS without EDIT them
OK Chris....
I see you attach....but now it's too late to reply (2.30 am) Tomorrow I post my build solution Good night.... Luca G. |
#11
|
|||
|
|||
Re: RENAME PARTS without EDIT them
Hello guys....
I post my solution....but that it's not the FINAL I don't find this.... How you can read in the last line of the code I spend 180 seconds to rename 180 parts.....I know it's possible to rename also up to 500 parts less than 1 second. My ex colleague make the macro that do it....but he is gone in bad way and the macro is secured and he say me 'If you discover the way good...also use what you are able to create!' I can continue to use its product without rewrite nothing, but unfortunately the macro is a part of file that makes some problems and the direction push to delete the entire file from the load procedure of ME10.... OK that's all Please help me Luca G. P.S. For use the macro go to command line and insert: RenameWithSameName |
#12
|
||||
|
||||
Re: RENAME PARTS without EDIT them
Quote:
if you know it's possible than - do it by your self ! or - pay someone for writing faster code. No grazie
__________________
Cheers, Chris |
#13
|
|||
|
|||
Re: RENAME PARTS without EDIT them
Why this tone? knowing that It's possibvle I think not offend anyone ... I even thought to stimulate the minds of users to find the solution.
Anyway ... apart from your rudeness ... Thank you all for ideas. My questions are aimed at finding solutions (FOR ALL) that maximize the time (OF ALL) since the public forum. Thank you all Luca G. |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
|
|