DOTNETARX(一个用于.net开发AutoCAD程序的类库)实例教学(续)

这篇博客介绍了如何在DOTNETARX 2.1中利用AddBlockTableRecord函数来添加BlockTableRecord。内容包括函数的不同形式,如何将屏幕上的实体添加到Block Table Record,以及CoordFromPixelToWorld(), CoordFromWorldToPixel(), GetBoundingBox(), SendCommand和Regen等辅助功能的用法。示例展示了如何创建并显示整个圆的AutoCAD命令。" 102642476,8244453,黑苹果亮度调节方法详解,"['黑苹果', '驱动', '配置']

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

 

本来已写好中文的,但不知怎么搞的,给弄丢了。先把英文的给发上来,等过段时间我再发中文的。

The following functions is provieded in DOTNETARX 2.1.

  • AddBlockTableRecord

In DOTNETARX,you can add the symbol table record using the AddSymbolTableRecord() function.But the BlockTableRecord is different from the other symbol table records.So,you must use the AddBlockTableRecord() function to add the BlockTableRecord.AddBlockTableRecord() function has two forms.The first one takes the Entity array as its argument (which represents the entities that have not added into the AutoCAD database).If you want to add the entities on the screen into the Block Table Record,you will have to use the second one.It takes the ObjectId of the entities as its argument.

 The following example show you how to use AddBlockTableRecord() to create Block Table Records.     

    void Test()
    {
        Lines line=new Lines(new Point3d(0,0,0),new Point3d(50,50,0));
        Circles circle=new Circles(new Point3d(50,50,0),
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值