admin 发表于 2024-3-14 20:41:22

[每日一码] AcEdCommand使用INSERT如何显示属性设置对话框

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 = pt1 = 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);

}
页: [1]
查看完整版本: [每日一码] AcEdCommand使用INSERT如何显示属性设置对话框