try something like this :

IF(TYP(SEQEL())=1)// if the type of geometry is a point
                        #TYPE=1
                                        ENDIF
IF(TYP(SEQEL())=2)// if the type of geometry is a line
                        #TYPE=2
                                      ENDIF
IF(TYP(SEQEL())=3)// if the type of geometry is an arc
                        #TYPE=3
                                      ENDIF
after you can test with #TYPE

Philippe

----- Original Message ----- 
From: "Michael Senack" <[EMAIL PROTECTED]>
To: "'[EMAIL PROTECTED]'" <[EMAIL PROTECTED]>
Sent: Saturday, February 24, 2001 4:11 PM
Subject: [mfg-smartcam] Geometry type test


> IF(TYP(SEQEL())=2)// if the type of geometry is a line
>  PAUSE[TX="Yes it is a line!", PT=0]
> ENDIF
> 
> This works fine for testing to see if the current element that
> you selected is a line.
> 
> How would you make an IF test to check for the following...
> 
> IF the element type is a LINE or an ARC carry on.
> 
> I cannot seem to find anything on the IF( TYP(??)=?) macro command.
> 
> 
> Regards,
> 
> Michael Senack, X354
> Your local friendly neighborhood CNC Programmer
> 
> 
> ======================================================================
> To find out more about this mailing list including how to unsubscribe,
> send the message "info mfg-smartcam" to [EMAIL PROTECTED]
> ======================================================================

======================================================================
To find out more about this mailing list including how to unsubscribe,
send the message "info mfg-smartcam" to [EMAIL PROTECTED]
======================================================================

Reply via email to