CoCreate User Forum  

Go Back   CoCreate User Forum > Applications > CoCreate Drafting

Reply
 
Thread Tools Search this Thread Rating: Thread Rating: 3 votes, 5.00 average. Display Modes
  #1  
Old 04-11-2010, 04:38 AM
Gach74 Gach74 is offline
Registered User
 
Join Date: Mar 2010
Posts: 14
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.
Reply With Quote
  #2  
Old 04-11-2010, 08:42 AM
ChrisE's Avatar
ChrisE ChrisE is offline
OneSpace Member
 
Join Date: Oct 2002
Location: Grünstadt, Pfalz, Germany
Posts: 121
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
Reply With Quote
  #3  
Old 04-11-2010, 10:06 AM
Gach74 Gach74 is offline
Registered User
 
Join Date: Mar 2010
Posts: 14
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.
Reply With Quote
  #4  
Old 04-11-2010, 07:01 PM
ChrisE's Avatar
ChrisE ChrisE is offline
OneSpace Member
 
Join Date: Oct 2002
Location: Grünstadt, Pfalz, Germany
Posts: 121
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
Reply With Quote
  #5  
Old 04-13-2010, 11:47 AM
BMaverick's Avatar
BMaverick BMaverick is offline
Registered User
 
Join Date: Mar 2009
Location: Tennessee, U.S.A.
Posts: 267
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
Reply With Quote
  #6  
Old 04-13-2010, 04:13 PM
Gach74 Gach74 is offline
Registered User
 
Join Date: Mar 2010
Posts: 14
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.
Reply With Quote
  #7  
Old 04-16-2010, 01:47 AM
Shaba's Avatar
Shaba Shaba is offline
Registered User
 
Join Date: Nov 2006
Location: Italy
Posts: 215
Re: RENAME PARTS without EDIT them

Can i ask you why you need to do this?
i'm also italian
Reply With Quote
  #8  
Old 04-16-2010, 06:53 AM
Gach74 Gach74 is offline
Registered User
 
Join Date: Mar 2010
Posts: 14
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.
Reply With Quote
  #9  
Old 04-17-2010, 07:32 AM
ChrisE's Avatar
ChrisE ChrisE is offline
OneSpace Member
 
Join Date: Oct 2002
Location: Grünstadt, Pfalz, Germany
Posts: 121
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'
4. CONFIRM to rename all parts with the same name as your current part to this new name.

Enjoy

Please note:
No warranties. Usage at your own risk
Attached Files
File Type: m global_rename_part.m (1.9 KB, 634 views)
__________________
Cheers,
Chris
Reply With Quote
  #10  
Old 04-17-2010, 04:29 PM
Gach74 Gach74 is offline
Registered User
 
Join Date: Mar 2010
Posts: 14
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.
Reply With Quote
  #11  
Old 04-18-2010, 01:29 AM
Gach74 Gach74 is offline
Registered User
 
Join Date: Mar 2010
Posts: 14
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
Attached Files
File Type: txt RenameWithSameName.txt (1.5 KB, 707 views)
Reply With Quote
  #12  
Old 04-18-2010, 10:05 PM
ChrisE's Avatar
ChrisE ChrisE is offline
OneSpace Member
 
Join Date: Oct 2002
Location: Grünstadt, Pfalz, Germany
Posts: 121
Re: RENAME PARTS without EDIT them

Quote:
Originally Posted by Gach74 View Post
I spend 180 seconds to rename 180 parts.....I know it's possible to rename also up to 500 parts less than 1 second.
Well,
if you know it's possible than

- do it by your self !
or
- pay someone for writing faster code.

Quote:
Originally Posted by Gach74 View Post
Please help me
No grazie
__________________
Cheers,
Chris
Reply With Quote
  #13  
Old 04-18-2010, 11:59 PM
Gach74 Gach74 is offline
Registered User
 
Join Date: Mar 2010
Posts: 14
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.
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -8. The time now is 01:44 AM.



Hosted by SureServer    Forums   Modeling FAQ   Macro Site   Vendor/Contractors   Software Resellers   CoCreate   Gallery   Home   Board Members   Regional User Groups  By-Laws  

Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
You Rated this Thread: