XANSYS Message: 254 [Go back to message list]
[bookmark on del.icio.us]
No rating yet
Rate item:

Subject: Re: SELECT Criteria CORRECTION
Author: Tony Artiles
Date: 1999-01-15 13:02:00

My macro below will works:
! select (arg1=0) or unselect (arg1=1) areas that are meshed...
asel,'all'
*get,ar32,'area',0,'COUNT'
ar31=0
*Do,ar30,1,ar32
ar31=ARNEXT(ar31)
*if,ar31,eq,0,then
*EXIT
*else
*get,ar33,'AREA',ar31,'ATTR','NELM'
*endif
*if,arg1,eq,0,then
*if,ar33,eq,0,then
ASEL,'U','AREA',,ar31
*endif
*else
*if,ar33,gt,0,then
ASEL,'U','AREA',,ar31
*endif
*endif
*enddo
alist,all

> -----Original Message-----
> From: Weathers, Bob [SMTP:bweathers@t...]
> Sent: Friday, January 15, 1999 12:58 PM
> To: 'xansys@o...'
> Subject: [xansys] Re: SELECT Criteria CORRECTION

> From: "Weathers, Bob"

> very close

> will still have an occasional problem, though
> consider a hollow cylinder
> 4 keypoints
> 2 areas (one from 0 to 180 degrees & other from 180 to 360 degrees)
> one area meshed and other one not

> macro (here we go again with macros!) will pick both areas

> thanks for taking the time to think about this
> your suggestion is much simpler than what i've been doing

> Bob Weathers
> bweathers@t...
> (608)787-2729

> > From: Peter Budgell[SMTP:pbudgell@o...]
> > Reply To: xansys@o...
> > Sent: Friday, January 15, 1999 11:42 AM
> > To: xansys@o...
> > Subject: [xansys] Re: SELECT Criteria CORRECTION

> > Correction to what I just sent on selecting meshed areas and volumes:

> > ksln ! select keypoints at nodes
> > lslk,s,1 ! select lines fully defined by selected keypoints
> > asll,s,1 ! select areas fully defined by selected lines
> > vsla,s,1 ! select volumes fully defined by selected areas

> > (That's what I get for typing it instead of using a copy/paste)
> > Apologies

> > -----Original Message-----
> > From: Weathers, Bob [SMTP:bweathers@t...]
> > Sent: Friday, January 15, 1999 10:26 AM
> > To: 'xansys'
> > Subject: SELECT Criteria

> > I have a need to select/unselect items (volumes & areas) that are
> already
> > meshed. Don't think there's a command for it but I could be wrong -
> > someone let me know if the command already exists.

> > If no command exists and others feel it would be useful, a
> > suggested format for ANSYS is:

> > *SEL, Type, MSHD

> > Bob Weathers
> > bweathers@t...
> > (608)787-2729


Posts possibly associated with message #254AuthorDateScore
251Re: SELECT Criteria CORRECTIONPeter Budgell1999/01/15 
252Re: SELECT Criteria CORRECTIONBob Weathers1999/01/15 
254Re: SELECT Criteria CORRECTIONTony Artiles1999/01/15 
258Re: SELECT Criteria CORRECTIONPeter Budgell1999/01/15 
259Re: SELECT Criteria CORRECTIONBob Weathers1999/01/15