Tekla Custom Inquiry macro script

Tekla Structures custom inquire toolOne of the main advantages of Tekla Structure is ability to get full necessary info about any part of model in couple clicks. I really appreciate this thing but all default tools has some disadvantages.

For example default Inquire return complete info about selected Entity, but about only one item per time, and only after user request. Custom Inquire – from Tools menu – is mach more flexible, but also – only one item, and  there is no way to get UDA.

Organizer tool from the same menu – is pretty cool. But at the same time it’s pretty slow, and could freeze model for couple minutes.

Reports, is awesome, but not interactive at all and require special skills and time to get used to with Template Editor.

Let’s make our own custom Inquire, and it’s qute easy with C# and Tekla Open API.

In one of previous articles was provided Tekla API Envents example from Tekla OpenAPI reference. Why not to make macro based on this feature?

All what we have to do is:

  • Make a form
  • Sign this form on Tekla Event
  • Grab data from Tekla each time when event appears
  • Show it to user, in on a form
  • Pack all this thing in Tekla MacroScript

Simple, and this macro could be downloaded under cut: Continue reading “Tekla Custom Inquiry macro script”

Tekla API: How to delete cuts with script

Tekla API, Tekla structures, remove boolean cuts from parts with scriptTekla structures include Tekla API, and we could use it for various cases which could impact engineering process at different stages. Here provided smart solution which allows to delete polygon cuts from plates filter by it’s maximum size.

It’s just an example of how complicated task could be easily solved with Tekla API.

Try to imagine a thousands of plates with various tiny holes spreader through these. These should be drilled by CNC machine tool, but each hole done as a tiny rounded plate, which ruins our plans for automatic drill. Hence we need to remove these, but there is no way to delete it all at once. Cause at the same time major holes also done by plate cuts. Clearing these plates from holes one by one manually – could  take a day. Instead of that  with API list of various issues of such type could be solved in a minutes.

Continue reading “Tekla API: How to delete cuts with script”