Skip to content

Read full existing model #362

Closed Answered by heetrojivadiya
Dervis-vL asked this question in Q&A
Discussion options

You must be logged in to vote

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.

from RFEM.initModel import Model
from RFEM.Tools.GetObjectNumbersByType import GetAllObjects

Model(False, 'Demo')
objects, importObjects = GetAllObjects()
for item in objects:
    print(item)

output:

LoadCasesAndCombinations(params={'current_standard_for_combination_wizard': 6207, 'activate_combination_wizard_and_classification': True, 'activate_combination_wizard': True,…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@Dervis-vL
Comment options

Answer selected by heetrojivadiya
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants