Skip to main content
1-Visitor
September 12, 2019
Question

doPublish() api to disable thumbnail generation

  • September 12, 2019
  • 2 replies
  • 2044 views

I have one typical requirement where I would to call api to generate representation but not thumbnail.

 

Right now I am using doPublish() api to generate viewable/representation but I do not see any option or parameter to disable thumbnail generation.. 

 

PTC Tech support said, we can disable thumbnail generation at system level but there is no way to disable for particular scenarios or thru API.

 

But I believe there might be having some other API or some kind of parameter in doPublish() to disable thumbnail generation..

 

If any one of you have any idea, please let me know.

 

Thanks,

Shyam.

 

 

2 replies

5-Regular Member
September 12, 2019

On the low API level Windchill support to disable "Create Thumbnail" com.ptc.wvs.server.PublishHelper.storeRepresentation, but on top-level, I didn't find this option for com.ptc.wvs.server.Publish.

 

I can only suggest playing with wvs properties:

 

thumbnail.byworker.enabled
thumbnail.enabled
 

 

hkotha1-VisitorAuthor
1-Visitor
September 23, 2019

Thanks fivigg for your reply.

The property you mentioned will disable thumbnail generation for all. But I would like to disable thumbnail only for the one that we publish using customization.

 

Thanks,

Shyam.

1-Visitor
March 23, 2021

Hi Shyam,

 

Could you please let me know how your generating representations using doPublish() API.

 

Thanks,

Pravallika