I haven't fully grasped what you are doing, but I think it's possible to do what you want on a pre-calculated basis.
How many base variables are you planning on using? You mention 'house' but are there more of them ('car', 'tree', 'garden', etc.)?
Are you trying to match data to the type of thing it is - ie, I assume model.b3d is a model of a house? Is there more than one house, or just the one?
Is the text file static or is it dynamically changing - will the content of the text file be change while your program is running?
How many base variables are you planning on using? You mention 'house' but are there more of them ('car', 'tree', 'garden', etc.)?
Are you trying to match data to the type of thing it is - ie, I assume model.b3d is a model of a house? Is there more than one house, or just the one?
Is the text file static or is it dynamically changing - will the content of the text file be change while your program is running?