forked from bguest/ansys-macros
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path_ADELE.mac
55 lines (50 loc) · 1.32 KB
/
_ADELE.mac
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
!&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&
!_ADELE.mac
!B.GUEST: bagvoo@gmail.com
!DESCRIPTION: This macro deletes areas and associated
! lines and keypoints.
!PRECONDITIONS:
! ARG1 = First area to be deleted,
! (IF ARG1=-1, all selected areas are deleted)
! ELSE = user prompted to select area
! ARG2 = Last area to be selected
! ARG3 = Increment of areas
! ARG4 = Flag Safe Mode (Won't Delete Meshed Areas)
!POSTCONDITIONS:
! areas and associated lines and keypoints
! are deleted
!&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&
_SAVE
/NOPR !PREVENT ERROR MESSAGES
FINISH
/PREP7
!------------------SAVE CURRENT SETUP
CM,temp_AREA,AREA
CM,temp_LINE,LINE
CM,temp_KP,KP
*IF,ARG1,EQ,0,THEN
*MSG,UI !--------SELECT VOLUME
SELECT AREAS TO BE DELETED
asel,r,p
*ELSEIF,ARG1,EQ,-1,THEN
*ELSE
ASEL,s,,,ARG1,ARG2,ARG3,1
*ENDIF
*if,ARG4,ne,1,then
ACLEAR,all
*endif
ADELE,ALL,,,1 !DELETE S*
!--RESUME TEMPORARY COMPONENTS
CMSEL,S,temp_AREA
CMSEL,S,temp_LINE
cMSEL,S,temp_KP
/REPLOT
!=======================CLEAN UP=========================
!--DELETE TEMPORARY COMPONENTS
CMDELE,temp_VOLU
CMDELE,temp_AREA
CMDELE,temp_LINE
CMDELE,temp_KP
/GOPR !TURN ERROR MESSAGES ON
!======THE--END========THE--END========THE--END=========
!ITS THE END OF THE MACRO AS WE KNOW IT, AND I FEEL FINE