Skip to main content
1-Visitor
January 10, 2020
Question

Adding an image into icon

  • January 10, 2020
  • 2 replies
  • 998 views

Hi,

 

I am creating a buttun using CREO parametric toolkit application. I am using the following functions -ProCmdActionAdd() 

ProCmdIconSet()

ProCmdDesignate() -  all of them returns no error.

But the image is not reflecting in creo parametric tool.

.png file is in the resource folder ie, <applicationfolder>/text/resource.

 

some one please suggest me what could have gone wrong .

 

Thanks

 

2 replies

14-Alexandrite
January 10, 2020

Place it in "text\usascii\resource" and try. it may work

14-Alexandrite
January 10, 2020

Maybe the images cause the problem. Make sure that you have two images within the folder you mentioned. A small one with size 16x16 pixels and a bigger one with 32x32 . The name of the bigger one has to be named with an appended "_large".

 

Example:

my_image.png (16x16)

my_image_large.png (32x32)

 

For ProCmdIconSet() use "my_image.png" as input.

Hope this helps.