Mike, A while back I played around with a similar concept. I wanted to be able to assign "handles" to a group of profiles so that they could be identified by another macro. It's not very polished, but it works. It assigns the first element in each profile the name, "Prof1", "Prof2", etc. The way this macro works, you must start by grouping all of the profiles you want to name, then run the macro. The profiles must be chained. Maybe the logic in it will help.
Chris Kocourek
CNC Department Manager
Flextronics Enclosures Solutions
(See attached file: Namepr.mcl)
Michael
Senack To: "'[EMAIL PROTECTED]'"
<[EMAIL PROTECTED]>
<MSenack@blou cc:
nt.ca> Subject: [mfg-smartcam] Naming elements
via a mcl file???
05/31/2001
11:45 AM
I'm trying to take a String variable and
add a Decimal variable to it, to form
a new String variable.
With this String variable I want to name
a selected element.
Can this be done?
Here's what I've come up with so far...
// Advanced_Wedm 11.5 Windows 10/16/98 16:48:10 Macro File
// w:\mcl\agiePOCK.mcl
// CREATED: 05/29/01
//
//PAUSE[TX="The so far so good macro pause!", LR=10, LC=5, SR=2, SC=40,
PT=1]
//GRAPHICS_OFF[]
VAR_REMOVE_ALL[]
#Group=GRP(0) // set the number of selected elements to the Group variable
ELMT_SEQ[BA=1, EL="0", ME=1]// insert after 0
#Counter=1 // set counter to 1 for loop
STRING: #S1
WHILE(#Counter<#Group) // start loop
#S1=STRTMP("P%#Counter")// I would like S1=P1 then S1=P2 then S1=P3 etc.
NAME_ELMT[EL="#Counter", EN="#S1"]// this will name the element yes?
#Counter=#Counter+1 // advance counter for next element
ENDW // end loop
PAUSE[TX="The so far so good macro pause!", LR=10, LC=5, SR=2, SC=40, PT=1]
Regards,
Michael Senack, CNC Programmer
Blount Canada Ltd
505 Edinburgh Road North
Guelph Ontario
N1H 6L4
519 822 6870 X354
FAX 519 822 1450
http://www.blount.com/
======================================================================
To find out more about this mailing list including how to unsubscribe,
send the message "info mfg-smartcam" to [EMAIL PROTECTED]
======================================================================
Namepr.mcl
Description: Binary data
