Read full existing model #362
-
I know of the Is it possible to extract all basic objects, load case and combination and loads data from an existing model? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hey @Dervis-vL, Yes, it is possible to extract all the data from an existing model with help of from RFEM.initModel import Model
from RFEM.Tools.GetObjectNumbersByType import GetAllObjects
Model(False, 'Demo')
objects, importObjects = GetAllObjects()
for item in objects:
print(item) output:
Let us know if it works for you or not. |
Beta Was this translation helpful? Give feedback.
Hey @Dervis-vL,
Yes, it is possible to extract all the data from an existing model with help of
GetAllObjects()
method. By this method you can get two lists: one list contains all the objects with their parameters and other list contains the necessary imports for those objects. Below you can find the sample code for it.output: