设置或查询实体属性时,以下常量非常有用: // 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, 2025-1-23 16:27
Powered by Discuz! X3.4
Copyright © 2001-2021, Tencent Cloud.