Michael,
You can group the profile and use wall offset to check the direction.
For example, do a group wall offset to the left with a huge distance
relative to the work you do, then get the "result" group and check if
there are any elements in the group. If there are, your direction is
clockwise. I set DS=100. in mine because I never work on anything
close to that size. So if the direction of the profile is CCW, no
elements will be created by the wall offset.
#OFFSETDIR=0 // Set direction to left
GRP_WALL[SD=#OFFSETDIR, DS=100., ME=0, RP=1, LR=0, TA=0, AN=180]
//Offset by 100 inches
NAME_GRP[GN="PROFILE", RM=0]
NEW_GRP[] // Clear current group
GET_GRP[GN="RESULT", AR=0] // Get the 'Result' group
IF(GRP(0)<1) // Check group size, if empty, direction is CCW
GET_GRP[GN="PROFILE", AR=0] //get the original profile, and
reverse direction
GRP_REVERSE[RP=1]
ELSE
GRP_DELETE[] // If not empty, delete resulting elements.
Direction
is CW
GET_GRP[GN="PROFILE", AR=0]
Pete
Thanks to Chris K
>
>
>---- Original Message ----
>From: [EMAIL PROTECTED]
>To: [EMAIL PROTECTED]
>Subject: RE: [mfg-smartcam] Profile direction
>Date: Mon, 5 Apr 2004 17:03:44 -0400
>
>>When you insert after any element on a profile whether it be a line
>or
>>an arc, is there any macro
>>
>>command or method to determine the direction of the profile?
>>
>>
>>
>>Basically what I'm after is a method to check if a profile is going
>in a
>>CW direction, can you
>>
>>have SC find out that it is going in deed CW and then reverse it?
>>
>>
>>
>>
>>
>>Regards,
>>
>>Michael Senack
>>
>>
>>
>>
>>
>>
======================================================================
To find out more about this mailing list including how to unsubscribe,
send the message "info mfg-smartcam" to [EMAIL PROTECTED]
======================================================================