CAD开发者社区

 找回密码
 立即注册

QQ登录

只需一步,快速开始

ObjectARX 开发指南

有用的 AcGi 常量

2022-12-31 15:32| 发布者: admin| 查看: 315| 评论: 0|来自: AutoCAD

设置或查询实体属性时,以下常量非常有用:

// Color
//
static const Adesk::UInt16 kColorByBlock = 0;
static const Adesk::UInt16 kRed     = 1;
static const Adesk::UInt16 kYellow  = 2;
static const Adesk::UInt16 kGreen   = 3;
static const Adesk::UInt16 kCyan    = 4;
static const Adesk::UInt16 kBlue    = 5;
static const Adesk::UInt16 kMagenta = 6;
static const Adesk::UInt16 kWhite   = 7;
static const Adesk::UInt16 kColorByLayer = 256;
// Layer
//
static const char* const kLayerZero = "0";
注意:康斯坦蒂斯白色,除非它与背景颜色冲突,在这种情况下,它会变成黑色,以便保持可见。如果按块 () 分配颜色或按图层 () 分配颜色,则需要在块或图层中查询实际颜色值。kWhitesetColor(0)setColor(256)

路过

雷人

握手

鲜花

鸡蛋

最新评论

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

GMT+8, 2024-5-27 11:02

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

返回顶部