明经CAD社区

 找回密码
 注册

QQ登录

只需一步,快速开始

搜索
查看: 1568|回复: 2

为什么图层的顔色不可以用rgb函数,小问题管理员请过目一下

[复制链接]
发表于 2006-4-19 22:31:00 | 显示全部楼层 |阅读模式

请问以下的RGB函数表达的图层颜色为什么都没有表示出来,而ac....表达方式都可以显示出来,多谢指教

Public Sub iso()
On Error Resume Next
Dim UP As AcadLayer, UB As AcadLayer, PH As AcadLayer, PPS As AcadLayer, PS As AcadLayer, DIE As AcadLayer
Dim LB As AcadLayer, LP As AcadLayer, U1 As AcadLayer, OH As AcadLayer
Set UP = ThisDrawing.Layers.Add("UP")
Set UB = ThisDrawing.Layers.Add("UB")
Set PH = ThisDrawing.Layers.Add("PH")
Set PPS = ThisDrawing.Layers.Add("PPS")
Set PS = ThisDrawing.Layers.Add("PS")
Set DIE = ThisDrawing.Layers.Add("DIE")
Set LB = ThisDrawing.Layers.Add("LB")
Set LP = ThisDrawing.Layers.Add("LP")
On Error Resume Next
UP.color = RGB(159, 127, 255)
UB.color = RGB(127, 255, 0)
PH.color = acGreen
PPS.color = RGB(255, 191, 0)
PS.color = acYellow
DIE.color = acWhite
LB.color = RGB(76, 152, 152)
LP.color = acBlue
End Sub

发表于 2006-4-20 14:59:00 | 显示全部楼层
[WEB]http://www.mccad.net/object/acad2004/idh_accmcolor_object.htm[/WEB]
 楼主| 发表于 2006-4-21 11:05:00 | 显示全部楼层

Thank you 版主,改天请你到大酒店

您需要登录后才可以回帖 登录 | 注册

本版积分规则

小黑屋|手机版|CAD论坛|CAD教程|CAD下载|联系我们|关于明经|明经通道 ( 粤ICP备05003914号 )  
©2000-2023 明经通道 版权所有 本站代码,在未取得本站及作者授权的情况下,不得用于商业用途

GMT+8, 2024-11-27 04:38 , Processed in 0.160921 second(s), 24 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表