查看单个帖子
旧 2009-04-13, 09:39 AM   #1
yang686526
高级会员
 
注册日期: 06-11
帖子: 14579
精华: 1
现金: 224494 标准币
资产: 234494 标准币
yang686526 向着好的方向发展
默认 【转帖】changing a part color via api

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:
yang686526离线中   回复时引用此帖
GDT自动化论坛(仅游客可见)