Advance Steel Forum
Welcome to Autodesk’s Advance Steel Forums. Share your knowledge, ask questions, and explore popular Advance Steel topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

#C API - Problems creating new Profile

3 REPLIES 3
SOLVED
Reply
Message 1 of 4
tiago.pereiraGB2J9
240 Views, 3 Replies

#C API - Problems creating new Profile

tiago.pereiraGB2J9
Enthusiast
Enthusiast

Hi,

 

I´m trying to create a new profile using C# API, but I´ve found some problems. I want to create a I Type, for example, so, I used:

                ProfileTypeI TypeI1 = new ProfileTypeI();
                
                TypeI1.H = 100;
                TypeI1.B = 50;
                TypeI1.Tf = 6.8 ;
                TypeI1.Tw = 4.5;

 

But when I tried to assigned it to my beam, it seems that the software dont recognize the type that I´ve created, like it was missing to save in the database, or something like this. 

 

I think there´s missing some command in my code.

 

Does anyone know how to solve it?

 

Thanks!

 

 

 

0 Likes

#C API - Problems creating new Profile

Hi,

 

I´m trying to create a new profile using C# API, but I´ve found some problems. I want to create a I Type, for example, so, I used:

                ProfileTypeI TypeI1 = new ProfileTypeI();
                
                TypeI1.H = 100;
                TypeI1.B = 50;
                TypeI1.Tf = 6.8 ;
                TypeI1.Tw = 4.5;

 

But when I tried to assigned it to my beam, it seems that the software dont recognize the type that I´ve created, like it was missing to save in the database, or something like this. 

 

I think there´s missing some command in my code.

 

Does anyone know how to solve it?

 

Thanks!

 

 

 

3 REPLIES 3
Message 2 of 4

Sebastian_Eiche
Mentor
Mentor

I'm not firm in the API but from my point of view:

 

Advance Steel is based on profiles from databses, you could not just create an I Type beam with settings as you want. 
You had to insert the profiles in the database and then recall it from there.


Sebastian Eiche
Application Engineer @Mensch und Maschine acadGraph

EESignature

If this information was helpful, please use the Accept as Solution function, this make it easier for other users

0 Likes

I'm not firm in the API but from my point of view:

 

Advance Steel is based on profiles from databses, you could not just create an I Type beam with settings as you want. 
You had to insert the profiles in the database and then recall it from there.


Sebastian Eiche
Application Engineer @Mensch und Maschine acadGraph

EESignature

If this information was helpful, please use the Accept as Solution function, this make it easier for other users

Message 3 of 4

tiago.pereiraGB2J9
Enthusiast
Enthusiast

Thanks @Sebastian_Eiche !

 

I´ve read about the possibility of inserting the data in the database, but I as have to insert more than 500 new sections of beams, I was thinking in a more automatic way. Besides that, thanks for the reply. 

 

Can I make more two questions?

 

  • For material type creation, it´s the same? Only writing the information in the database and then recalling it from there?
  • I´ve read that is possible to access the ADVS database in SQL, do you think it´s a good way? I mean, I´ll have the permission to write more data using SQL on the database?

 

Thanks so much again!

0 Likes

Thanks @Sebastian_Eiche !

 

I´ve read about the possibility of inserting the data in the database, but I as have to insert more than 500 new sections of beams, I was thinking in a more automatic way. Besides that, thanks for the reply. 

 

Can I make more two questions?

 

  • For material type creation, it´s the same? Only writing the information in the database and then recalling it from there?
  • I´ve read that is possible to access the ADVS database in SQL, do you think it´s a good way? I mean, I´ll have the permission to write more data using SQL on the database?

 

Thanks so much again!

Message 4 of 4

Sebastian_Eiche
Mentor
Mentor
Accepted solution

For sure you could add it directly in the databases via SQL script


Sebastian Eiche
Application Engineer @Mensch und Maschine acadGraph

EESignature

If this information was helpful, please use the Accept as Solution function, this make it easier for other users

0 Likes

For sure you could add it directly in the databases via SQL script


Sebastian Eiche
Application Engineer @Mensch und Maschine acadGraph

EESignature

If this information was helpful, please use the Accept as Solution function, this make it easier for other users

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report