RAM Concept API - reading PT data

Hi,

I am playing around with the RAM Concept API aiming to retrieve PT tendon data and do some post-processing of it. At the moment I have a working script that accesses everything through the following pathway:

model ---> cad_maneger --> tendon_layers --> tendon_segments

This works OK, however when retrieving data for a few hundred tendon segments the processing time increases quite a lot. Is there some way to accelerate this or to bulk-export tendon segment data into some native python data structure that would have quicker handling?

  • That is the pathway you will need to use to retrieve the tendon segments.

    How long is the processing time on your end?

    Using the get_tendon_profiles.py script that is saved in "C:\Program Files\Bentley\Engineering\RAM Concept CONNECT Edition\RAM Concept CONNECT Edition V8\python\examples\walkthrough", I am able to extract and output the tendon profile information in a model with nearly 3000 tendon segments  with 10 stations per segment in less than 2 minutes.



    Answer Verified By: Konstantin Goncharov 

  • Karl,

    Thank you for pointing this out - I was not aware that we have example snippets!

    I've had a look and get_tendon_profiles.py does seem to run reasonably quickly. I think most of the speed penalty in my script relative to this example comes from the fact that I am reading a lot more data - I am reading start/end coordinates, absolute elevation, soffit elevation, inflection ratio, etc....

    Having said that, I do note that the example script makes good use of temporary class variables (location, number, etc). I initially called up all data by burrowing through all class layers (model ---> cad_maneger --> tendon_layers --> tendon_segments --> nodes --> etc) and it appears that doing so carries speed penalty in python. I've re-written with temporary class variables and execution speed for that part of the script improved by approx. 30%.

    It is slower than I would prefer, but it seems that this might just be as quick as it will go.

    I've marked your response as a verified answer.