Best Website Development Company

Members. Looks good.
Some nice looking steel. The picture has nothing to do with the Tekla API but it’s cool nonetheless.

What is the task at hand? 

  1. The user selects some beams.
  2. We then want to collate the following information into various Excel spreadsheets:
    1. Name
    2. Profile
    3. Length and finally Weight
  3. We want two views: the first aggregates the beams by their name and finish, and the second merely lists all the beams selected with the information listed above (length/weight etc).

 

WARNING: The code is very dirty. There’s a lot of repetition here. And I’ve gone up some cul de sacs incorrectly. But that’s ok. It’s code which works. We can worry about refactoring for another day – in fact, that will make for a very good exercise. Here is a link to where I document the refactoring process.

 

I’ll walk you through the code:

Here is the full code unencumbered by commentary:

3 Responses

  1. thank you for the tutorial ,can you please show me how to get the quantity of the part mark, I use GetReportProperty property to get “PART_POS”,”LENGTH”and “AREA” but i cannot figure out how to get the quantity

    1. Hi Mahfoud,

      I do not know the answer, and I cannot easily get access to my Tekla API documentation – that will take some time.

      If you get the answer please do let me know so i can make a post out of it.

      rgds
      Ben

Leave a Reply

Your email address will not be published. Required fields are marked *

WordPress PopUp Plugin