×
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

OAPI SAP 2000 - Matlab

OAPI SAP 2000 - Matlab

OAPI SAP 2000 - Matlab

(OP)
Hi, I've been using the OAPI functions with Matlab in order to extract some analysis results from a computational model with shells, but now I'm having troubles with some functions. I have a cellstring with the names of the areas assigned to a section cut, then, when I try to get the Section Property name with the function GetProperty, Matlab shows this message:

No method 'GetProperty' with matching signature found for class
'Interface.SAP2000V16._cAreaObj'.

I don't know what's wrong with my code:

Name = AreaNames{1,1};
PropName = cellstr(' ');
[ret,Name,PropName]=SapObject.SapModel.AreaObj.GetProperty(Name,PropName);

Thanks for your help!

RE: OAPI SAP 2000 - Matlab

Hi! I've checked your code.
It seems "AreaNames" is an existing array containing "Objects Name" from a previos Get function
I'd suggest you to create a for loop to get the "PropName" for each item in the AreaNames array and store the output in a new variable if you want.
the code could be something like this:

PropName = cellstr(' ');
for i = 1:lenght(AreaNames)
[ret, PropName] = SapObject.SapModel.AreaObj.GetProperty(num2str(AreaName(i,1)),PropName);
end

you can remove the "Name" item next to the "ret" sentence since you already know the Name of the Area and thus is not a required output


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