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!!
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????
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????
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????
RE: SAP API .....nonprismatic section????
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 :).