×
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

Log In

Come Join Us!

Are you an
Engineering professional?
Join Eng-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

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

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

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

(OP)
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!!

RE: SAP API .....nonprismatic section????

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.

RE: SAP API .....nonprismatic section????

(OP)
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!!!!.

RE: SAP API .....nonprismatic section????

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.

RE: SAP API .....nonprismatic section????

(OP)
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 :).

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Eng-Tips forums is a member-only feature.

Click Here to join Eng-Tips and talk with other members!


Resources