cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - You can subscribe to a forum, label or individual post and receive email notifications when someone posts a new topic or reply. Learn more! X

Adding an image into icon

Sekar1
12-Amethyst

Adding an image into icon

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 2
syalagudri
12-Amethyst
(To:Sekar1)

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

FabianWolf
12-Amethyst
(To:Sekar1)

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.

Top Tags