المساعد الشخصي الرقمي

مشاهدة النسخة كاملة : C# Program Structure and File Type Advice



C# Programming
04-18-2013, 12:40 AM
Hello All,

Project Brief:
I am wanting to create a program to allow the user to model a series of beams for a structural analysis program. There are many similar programs available on the web. You create nodes (points) in 3D space, link them together with members (lines) and then apply various loads and conditions to these elements. The project will consist mostly of 3D graphics (drawing primitives) which the user can interact with in order to enter the required data.

My History:
I am a structural engineer, not a software engineer, but I do a reasonable amount of coding in my free time. I am mostly familiar with Python but I have started learning C# which I feel is probably a better fit for this project. I will probably take the Winforms option for now since it a bit simpler for me to understand and will let me focus more on the structure of the program rather than the

The Question:
I would really appreciate advice on how to structure the program so I start out on the right track. My biggest question is how should I store all of the program data the user enters. I was thinking of using a database like sqlite3 so the file type for the model becomes *.db. Other options are wrapping everything up in a class (which holds node, member, loading info etc) and then dump as xml. I don’t know which option is better or even if there are other options out there. Using a database seem logical to me since the data will be somewhat relational, I just do not have the foresight to see if there are hidden challenges with this.

Any other adviCe you can give for implementing this project in C# would also be greatly appreciated.

Thanks all for your time.
Regards Jake