几何尺寸与公差论坛

 找回密码
 注册
查看: 751|回复: 0

【转帖】changing a part color via api

[复制链接]
发表于 2009-4-13 09:39:35 | 显示全部楼层 |阅读模式
changing a part color via api???
hi, i am trying to change the color of a part but i couldnt find it anywhere, i couldnt even select the hole part via api when openning a part file. i can select the bodies and the features but not the hole part. i want to change its color so when i add a cut hole the cut will not have a diferent color.
can anyone tell me at least the command.. or if it is not possible at all.
thanks
emerson

find a job or post a job opening
have you investigated the myriad macros available for download that are related to color?  
you may have to remove color from all bodies and faces first, because even if the whole part is set to red (for example), if there are bodies, faces, or features that are set to some other color that will override the part color for that boxy/feature/face.
-handleman, cswp (the new, easy test)
i searched the solidworks macro avaiable for download.. none of them changes the color of a part, only the face/body color.

modeldoc2::materialpropertyvalues
it worked.. :d
i have use modelproperties from leonard kikstra for years and haven't found another one worth changing to.  it gives you a drop-down of several pallette colors to use and also has an option to remove feature colors:
您需要登录后才可以回帖 登录 | 注册

本版积分规则

QQ|Archiver|小黑屋|几何尺寸与公差论坛

GMT+8, 2024-12-24 08:39 , Processed in 0.037968 second(s), 19 queries .

Powered by Discuz! X3.4 Licensed

© 2001-2023 Discuz! Team.

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