efdiloreto / PyTekla

Bringing CPython power to Tekla
MIT License
7 stars 3 forks source link

Problem importing module #4

Closed UshakovVyacheslav closed 9 months ago

UshakovVyacheslav commented 9 months ago

Hi, Eduardo. After I installed your module I tried to connect to the model, but I got an error: No module named 'Tekla'.

my code:

import pytekla from Tekla.Structures.Model import Model, Beam

then image

but when setting the path there is no problem image

what could be the problem?

efdiloreto commented 9 months ago

I think the problem could be that you are using Tekla 2019. And the API is changing between versions. PyTekla was created for Tekla 2022 and planing to update for future releases.

UshakovVyacheslav commented 9 months ago

Thanks Eduardo, new versions have connectivity. But is it possible to somehow add older versions TS?

efdiloreto commented 9 months ago

@UshakovVyacheslav Not using PyTekla. But you can still access using Python.NET like I did with PyTekla.