PDA

View Full Version : Reg : Part Browser


joseph_z
03-07-2005, 07:08 PM
Dear all,
In ME 10, is there any command which finds a part in Part Browser by just typing its name. or is there any Macro regarding the same ?
Please let me know if it is there.

Thanking you,
With Regards,

Joseph

John Scheffel
03-08-2005, 08:22 AM
I'm not aware of any ME10 command that will do this. Here is a macro that I use to find the unique part name (which is ~ followed by a number) for a part name passed as a parameter. You may be able to adapt it to your needs.

This macro will search for a part name assigned to all the subparts under the current part. If you want to search the entire tree you need to run EDIT_PART TOP before calling the macro or add this command at the top of the macro. Note that regular part names in Drafting do not need to be unique, so if you have duplicate names in the tree this macro will only find the first one then stop. It could probably be modified to find them all, but it is unclear what you want to do once you find the part name.


DEFINE Get_unique_subpart_name
PARAMETER Sub_part_name

LOCAL Test_sub_name
LOCAL Pos_tilda

INQ_PART CURRENT
LET Test_sub_name (INQ 902)
LOOP
EXIT_IF (Test_sub_name = 'END-OF-LIST')
EXIT_IF (POS Test_sub_name Sub_part_name)
LET Test_sub_name (INQ 903)
END_LOOP
IF (Test_sub_name <> 'END-OF-LIST')
LET Pos_tilda (POS Test_sub_name '~')
LET Unique_subpart_name (SUBSTR Test_sub_name Pos_tilda (LEN Test_sub_name-Pos_tilda+1))
ELSE
LET Unique_subpart_name 'NotFound'
END_IF
END_DEFINE

Darren
03-08-2005, 11:05 AM
A "find part" macro can be found in the eSupport area at cocreate.com.

The picture shows the table used to find parts with wild cards.

There is a highlight facility so you can see all the hits.

Just remember to use "refresh" if you make changes to the drawing!

Darren Litherland
Accurate Consulting (http://www.nethut.net/me10), Norway

joseph_z
03-08-2005, 09:39 PM
Thank you Mr. John and Mr.Darren.

Joseph