суббота, 8 октября 2022 г.

Tekla Structures and Lookup

I suppose, that all who develops application for Revit and AutoCAD, knows such plugins as RevitLookupARXDBG and MGDDBG. These apps can seriously help to understand an object API model of the program, and also to see what hide under hood of the program. 

Unfortunately for the Tekla Structures it's impossible to find something which would be match by its functions on the Tekla's Warehouse. Of course this doesn't interfere a process of software developing, but if such application would exist it definitely helps in work.

If anybody didn't invent bicycle, yet, I will be the first in this direction. Meet the application for the Tekla Structures - Lookup.

Tekla Lookup
Fig. 1. Main window of the program

This application allows doing next things:

  1. See all possible names of fields, properties, methods (both private and public)
  2. Browse all kinds of values of private and public fields and properties.
  3. Get and browse values of private and public methods, which don't require setting any parameters

The code of the program works through the System.Reflection mechanism of the .Net Framework, and gives to a user all information that it's possible to get from TeklaStructures API.

How to work with the application:

  1. When the Tekla Structures is running, then launch the Lookup
  2. If you chose some element in the model or drawing, then a program automatically shows a list of available properties of the API at the right panel of the program (see fig. 2)
  3. If you didn't choose any elements, then select some and push the button "GetSelected"
  4. Properties, fields, methods on the right side of the program, that have bold font - available for getting, that is possible to get it by the double click of the mouse.
  5. On the elements on the left panels it's possible to double-click the mouse click and the right side with all properties will be updated.
Lookup in TeklaStructures (using in model)
Fig 2. Lookup in TeklaStructures (using in the model)

Lookup in TeklaStructures (using in drawings)
Fig 3. Lookup in TeklaStructures (using in the drawings mode)

Using this applictation you can look through a structure of a API element, get subtypes and find out, for instance, from which items an assembly consist.

I want to mention, that application is still in beta testing, that's why it's possible to find small bugs. 

I would be glad if somebody excepts me will participate in the development of the program. A repository is located by a following link - https://github.com/karpovichpv/Lookup

Download application you can here - https://github.com/karpovichpv/Lookup/releases/

Order of the installation:
  1. Unzip archive.
  2. Copy files Lookup.exe and Microsoft.Xaml.Behaviors.dll to a folder "C:\...\Environments\common\extensions\".
  3. Copy files Lookup.cs and Lookup.bmp from the folder "run_macro" to folders "C:\...\Environments\common\macros\drawings\" and  "C:\...\Environments\common\macros\modelling\".
  4. Launch application from the standard "Application and Component" panel of the TeklaStructures.



Комментариев нет:

Отправить комментарий