00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033
00034
00035
00036
00037
00038
00039
00040
00041 #include <stdio.h>
00042 #include "memvirtu.h"
00043 #include "lowparam.h"
00044 #include "lowmacro.h"
00045 #include "lowsolid.h"
00046 #include "vectorop.h"
00047 #include "mancommd.h"
00048 #include "genfunc_.h"
00049 #include "hiegroup.h"
00050
00051 void MSD_execManipulateGroup(void)
00052 {
00053 int ip;
00054 char gname[30], oname[30];
00055
00056 for (ip = 0; ip == 0;)
00057 {
00058 switch (optin())
00059 {
00060 case 'd':
00061 if (1 == sscanf(restbuf, "%s", oname))
00062 {
00063 MSD_highNameDesassociateGroupElement(oname);
00064 ip = 1;
00065 }
00066 break;
00067
00068 case 'm':
00069 if (2 == sscanf(restbuf, "%s %s", gname, oname))
00070 {
00071 MSD_highNameAssociateGroupElement(gname, oname);
00072 ip = 1;
00073 }
00074 break;
00075
00076 case 'p':
00077 if (2 == sscanf(restbuf, "%s %s", gname, oname))
00078 {
00079 MSD_highNameTransferGroup(gname, oname);
00080 ip = 1;
00081 }
00082 break;
00083
00084 case 'c':
00085 if (1 == sscanf(restbuf, "%s", gname))
00086 {
00087 MSD_highNameSetGroupCurrent(gname);
00088 ip = 1;
00089 }
00090
00091 break;
00092
00093 case 'e':
00094 if (1 == sscanf(restbuf, "%s", gname))
00095 {
00096 MSD_highNameRemoveGroup(gname);
00097 ip = 1;
00098 }
00099 break;
00100
00101 case 'g':
00102 if (1 == sscanf(restbuf, "%s", gname))
00103 {
00104 MSD_highNameCreateSetGroup(gname, "FALSE");
00105 ip = 1;
00106 }
00107 break;
00108
00109 case 'G':
00110 if (1 == sscanf(restbuf, "%s", gname))
00111 {
00112 MSD_highNameCreateSetGroup(gname, "TRUE");
00113 ip = 1;
00114 }
00115 }
00116 if (ip == 0)
00117 {
00118 printf("-cdegGmp Grupo Objeto/Grupo filho\n");
00119 if (!lineins("? "))
00120 {
00121 return;
00122 }
00123 }
00124 }
00125 }