Maybe there is someone who has worked with the Tekla Open API - you are my last hope! I need to check whether there is a preview in the model or not. If not, then you need to create it using the Tekla Open API. Maybe someone has already come across such people and knows how to do this, please tell me.) And I wrote down a macro, thought that it would help me somehow (wpf.InvokeCommand ("CommandRepository", "Tools.CreatePreviewImage")), but no, miracle did not happen.

How to make a check whether there is a preview in the model folder, I know. And I also know that when you manually create a preview, it is thrown into the model folder and is named thumbnail.png by default.

  • Give the code snippet with which you have a problem. Indicate the problematic place with a comment, where there should be what you want, but you can’t help you. Abstrakno nobody can help. - Nikolaj Sarry
  • I understand, but the code as I determine whether there is a preview or not here will not be useful. And then I join Tekle too. And I didn’t write anything about how to programmatically preview the model because I don’t know how and can’t find anything in the API documentation. There only is how to add a preview to the plugin. I wrote to the forum topengineer.ru/forum there they did not answer me. And what to ask on the official forum of Tekla I have no permission because I use the training version of Tekla. - Hanna Bilous
  • got it Well then good luck with your search. Try searching for communities on this API in social networks and asking around. - Nikolaj Sarry
  • @NikolajSarry, thanks) - Hanna Bilous pm
  • Can you clarify a little what is the actual problem? Check for previews or create one? Just not quite clear what the problem is. - Nikolaj Sarry

0