Skip to main content
12-Amethyst
September 23, 2024
Solved

Assign appearance using toolkit

  • September 23, 2024
  • 3 replies
  • 1321 views

Hello all,

 

I am trying to assign apperance to creo assembly or part using toolkit. Can someone let me know how can I assign apperance and also define the RGB value for appearance?

 

TIA

Best answer by lhoogeveen

For Toolkit, I think you want to search for ProSurfaceSideAppearancepropsSet. It used to be ProSurfaceAppearancepropsSet but that was deprecated in Creo 5.

There's a decent RGB code example in this article: https://www.ptc.com/en/support/article/CS313016

 

There's another code example https://www.ptc.com/en/support/article/CS377828 of using ProSurfaceSideAppearancepropsSet if that's helpful.

 

Depending on what you're trying to do, you may need to use ProMdlToModelitem to convert from a ProMdl to a ProMdlitem.

3 replies

RPN
18-Opal
September 23, 2024

What about reading the @&€!?ing manual Just Open the PDF, tkuse or so. After search in by PDF, search the call in the examples folder. It is really simple. 😅

17-Peridot
September 24, 2024

For Toolkit, I think you want to search for ProSurfaceSideAppearancepropsSet. It used to be ProSurfaceAppearancepropsSet but that was deprecated in Creo 5.

There's a decent RGB code example in this article: https://www.ptc.com/en/support/article/CS313016

 

There's another code example https://www.ptc.com/en/support/article/CS377828 of using ProSurfaceSideAppearancepropsSet if that's helpful.

 

Depending on what you're trying to do, you may need to use ProMdlToModelitem to convert from a ProMdl to a ProMdlitem.

Catalina
Community Moderator
September 27, 2024

Hi @Sss4598,


I wanted to see if you got the help you needed.


If so, please mark the appropriate reply as the Accepted Solution or please feel free to detail in a reply what has helped you and mark it as the Accepted Solution. It will help other members who may have the same question.
Please note that industry experts also review the replies and may eventually accept one of them as solution on your behalf.


Of course, if you have more to share on your issue, please pursue the conversation.

Thanks,

Catalina | PTC Community Moderator