Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations waross on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

SAP API .....nonprismatic section????

Status
Not open for further replies.

marziecivil

Structural
Feb 24, 2015
4
Hi.

please Help me.

the non prismatic section is not getting assigned through my code.

why?
% I section
ret = SapModel.PropFrame.SetISection('SEC1', 'STEEL', 0.9, 0.25, 0.01, 0.008, 0.25, 0.01);
ret = SapModel.PropFrame.SetISection('SEC2', 'STEEL', 0.55, 0.25, 0.01, 0.008, 0.25, 0.01);
ret = SapModel.PropFrame.SetISection('SEC3', 'STEEL', 0.7, 0.25, 0.01, 0.008, 0.25, 0.01);


% define I section frame NonPrismatic property
StartSec={'SEC1'; 'SEC2'; 'SEC3'};
EndSec={'SEC1'; 'SEC2'; 'SEC3'};
MyLength=[0.5; 0.5; 0.5];
MyType=[2; 2; 2];
EI33=[3; 3; 3];
EI22=[3; 3; 3];
ret = SapModel.PropFrame.SetNonPrismatic('1',NumberItems ,StartSec, EndSec, MyLength, MyType, EI33, EI22,-1);

Thanks!!
 
Replies continue below

Recommended for you

I don't fully understand the nature of your model, but it is something like a 1.5m frame, split into 3 segments with 0.5m each and with sections varying from SEC1 to SEC3 in each end and passing by SEC2 in the middle segment, right? A picture would help.

Anyway, if that's the case, probably the section definition arrays should contain something like the following, forcing a continous variation of section properties throughout segments 1 and 3 and keeping it constant in segment 2.
StartSec={'SEC1'; 'SEC2'; 'SEC2'};
EndSec={'SEC2'; 'SEC2'; 'SEC3'};

Additionally, NumberItems should be set to 3, if you haven't done so previously.

Hope it helps.
 
thanks avscorreia.

You're right! :). my model is a frame with 3 segments.I did as you suggested. but there is still a bug.I think the problem is'nt the sections.
in fact when the answer is ret= 1 in matlab, the code does'nt run in SAP.
With each change Sap dosnt run this code and ret=1.
I really do'nt know what to do!!!!.
 
I really don't have access to Matlab as the OAPI calls I make are all done with Excel VBA. I'll try to check it with VBA later.
 
Really grateful avscorreia..

I'm currently using the import sections with s2k file And continued my code.I do'nt know how to use VBA and try to learn it.Maybe it's better :).
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor