CAD开发者社区

 找回密码
 立即注册

QQ登录

只需一步,快速开始

ObjectARX 开发指南

以图形方式拖动选择集

2023-1-1 01:10| 发布者: admin| 查看: 273| 评论: 0|来自: AutoCAD

该函数提示用户拖动一组选定对象,如以下示例所示:acedDragGen()

int rc; 
ads_name ssname; 
ads_point return_pt; 
// Prompt the user for a general entity selection.
if (acedSSGet(NULL, NULL, NULL, NULL, ssname) == RTNORM) 
// The newly selected entities  
    rc = acedDragGen(ssname, 
        "Drag selected objects", // Prompt  
        0, // Display normal cursor (crosshairs)  
        dragsample, // Transformation function  
        return_pt); // Set to the specified location.

第四个参数指向执行实体转换的函数。有关 and 的示例,请参阅选择集的转换dragsample()acedDragGen()


路过

雷人

握手

鲜花

鸡蛋

最新评论

QQ|Archiver|CAD开发者社区 ( 苏ICP备2022047690号-1 )

GMT+8, 2024-5-19 14:59

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

返回顶部