|
- static void testOut()
- {
- //set vars first
- struct resbuf rb;
- rb.restype = RTSHORT;
- rb.resval.rint = 1;
- acedSetVar(L"ATTDIA", &rb);
- acedSetVar(L"ATTREQ", &rb);
- //block position
- ads采用point pt1;
- pt1[X] = pt1[Y] = 4.0;
- //call command
- int rterr = acedCommand ( RTSTR, L"采用.insert", RTSTR, L"myBlock", RTPOINT,
- pt1, RTNONE );
- // ask to display attribute dialog
- acedInitDialog(Adesk::kTrue);
- // continue the command
- acedCommand(RTREAL, 1.0, RTREAL, 1.0, RTREAL, 0.0, RTNONE);
- }
复制代码 |
|