有用的 AcGi 常量
在设置或查询实体属性时,以下常量非常有用: // 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)
父主题: |
|Archiver|CAD开发者社区 ( 苏ICP备2022047690号-1 苏公网安备32011402011833)
GMT+8, 2024-12-15 22:30
Powered by Discuz! X3.4
Copyright © 2001-2021, Tencent Cloud.