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? |
Answered by
heetrojivadiya
May 13, 2024
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. |
1 reply
Answer selected by
heetrojivadiya
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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: