Continue to Site

Welcome to MCAD Central

Join our MCAD Central community forums, the largest resource for MCAD (Mechanical Computer-Aided Design) professionals, including files, forums, jobs, articles, calendar, and more.

Relations in Repeat regions

anand_m_s

New member
It is a practice in our company to define a parameter called "PART TYPE" which indicates whether a part is a commercial part (CP) or a manufactured part (MP). During manual drafting period, all CPs used to have item numbers (equivalent to rpt_index in pro e language) starting from 500. If we have to continue with this system of indexing the parts in Pro-E, what relations should be used while defining the repeat regions?
 
Try:


IF extract(asm_mbr_name,1,3)=="500"
part_type="CP"
else
part_type="MP"


endif


I guess "starting from 500" means "500123-456-..." not "501...", "502...", ..."599...". Please use spelling of "PART TYPE" parameter as it appear in your model if it is different from example above.
 

Sponsor

Back
Top