Okay here is a SC related issue that I'm having...

How many blonds does it take to...just kidding!

Below is a simple mcl file that I use to delete all User Elements and
points.

// Advanced_Wedm 11.5 Windows 10/16/98 16:48:10 Macro File
// W:\MCL\DPU.mcl  Delete Points and User Elements
// CREATED: 06/04/00
//
// This macro deletes all points and user elements in a shape file using a
filter 

MAC_EXE[FN="W:\\MCL\\U"]// Ungroug & Zoom all assigned to F2 key

FILTER[PT=1, HL=0, LN=0, AR=0, PL=0, SP=0, EL=0, HX=0, TX=0, PX=0, UC=1,
SC=0, LY=0, ST=0, WP=0]
FILTER_USE[ON=1]
GRP_FILT_ADD[]
GRP_DELETE[]
FILTER_USE[ON=0]

This works fine for most cases. 
The problem I have is that some of our Agie wire cut programs 
require User Elements in the profile to turn on taper like 
so @TECH(#V1=16) and then turn off the taper like so 
@TECH(#V1=16).

I've attach a sample .pm4 file that has these user elements
in the profile. Hopefully it makes it through.

Now here is what I would like to do.
Create a mcl that would do...

1) Turn off all geometry except for Tool 1

2) Go through each T1 element and check to see if it is a 
    T1 User Element using a while/endw loop

3) If it is a T1 User Element, check to see if the
    first 6 charactors are @TECH(

4) It the first 6 charactors are @TECH( do NOT delete it.

The if testing would mean that you would have to
use a STRLEN( ) to see if the user element has more
then 6 charactors.

Then use STRSUB(#VAR1,1,6) to place the charactors
in a variable.

Then check that variable if it is equal to @TECH(

Is all this a possibility?

Regards,
Michael Senack

 <<AG3089.pm4>> 

Attachment: AG3089.pm4
Description: Binary data

Reply via email to