SOFiSTiK Forum

It is currently Sat Dec 07, 2019 3:27 am

All times are UTC

Post new topic Reply to topic  [ 1 post ] 
Author Message
PostPosted: Wed Nov 23, 2016 12:31 pm 

Joined: Sun May 29, 2005 8:06 pm
Posts: 2
Location: Germany
Dear SOFiSTiK users

Connecting SOFiSTiK cdb in c# code can be a tricky and unpleasant task unless you become an expert in the Marshaling.

I am offering you much more simple solution to access SOFiSTiK cdb using a c#. It is my new c# dll which enables you easy access to all records in the cdb using c#.

Let me show you one simple example if you would use my dll. If you would like to get all materials (for example CONC, STEE or TIMB) written in the database the code would be:

CDB_rw cdb = new CDB_rw(); cdb.CDB_OPEN(filename);

List<MAT_CONC> mat_con = cdb.Get_Records_List<MAT_CONC>(1, nr, 1, "1???");
List<MAT_STEE> mat_ste = cdb.Get_Records_List<MAT_STEE>(1, nr, 1, "2???");
List<MAT_TIMB> mat_tim = cdb.Get_Records_List<MAT_TIMB>(1, nr, 1, "3???");

To use this you will need SOF_CDB_RW.dll file and STRU.cs which contains the structures suitable for c# (although you can create or modify them by your self).

If you are interested for more information do not hastate to contact me.

Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 

All times are UTC

Who is online

Users browsing this forum: No registered users and 1 guest

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group