×
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

Contact US

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!

*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

needing help with etabs api error (propframe.getrectangle)

needing help with etabs api error (propframe.getrectangle)

needing help with etabs api error (propframe.getrectangle)

(OP)
hello everyone
i am working on a project and needing to get dimension of sections defined in the model using matlab. but unfortunately i face with this error
(No method 'GetRectangle' with matching signature found for class 'ETABS2016.cPropFrame'.)
here is my code


clc
clear all
format shortG
SpecifyPath = false;
ProgramPath = 'C:\Program Files\Computers and Structures\ETABS2016\ETABS.exe';
APIDLLPath = 'C:\Program Files\Computers and Structures\ ETABS2016\ETABS2016.dll';
a = NET.addAssembly(APIDLLPath);
helper = ETABS2016.Helper;
helper = NET.explicitCast(helper,'ETABS2016.cHelper'); if SpecifyPath
ETABSObject = helper.CreateObject(ProgramPath);
else
ETABSObject = helper.CreateObjectProgID('CSI.ETABS.API.ETABSObject'); end
ETABSObject = NET.explicitCast(ETABSObject,'ETABS2016.cOAPI');
helper = 0;
%%
SapModel = NET.explicitCast(ETABSObject.SapModel,'ETABS2016.cSapModel'); ETABSObject.ApplicationStart;
FileName='E:\M.EDB '
[ ret ] = OpenFile(SapModel,FileName);
[ ret ] = unlock( SapModel );
[ ret ] = SapModel.SetPresentUnits (ETABS2016.eUnits.kgf_m_C);

PropFrame = NET.explicitCast(SapModel.PropFrame,'ETABS2016.cPropFrame');
File_Name = NET.createArray('System.String',8);File_Name(8)='';
MatProp = NET.createArray('System.String',8);MatProp(8)='';
T3 = NET.createArray('System.Double',8);
T2 = NET.createArray('System.Double',8);
Color_q = -1;
Notes = NET.createArray('System.String',8);Notes(8)='' GUID = NET.createArray('System.String',8);GUID(8)='';
[ret,File_Name,MatProp,T3,T2,Color_q,Notes,GUID]... =
PropFrame.GetRectangle('R1',File_Name,MatProp,T3,T2,Color_q,Notes,GUID);

i used other command in etabs documentation by this format, but this one doesn’t work

can somebody help me please where i am wrong??
thank you

RE: needing help with etabs api error (propframe.getrectangle)

Looks like Matlab, does matlab have a function where you can view the available methods. And do you have issues when using other methods in cPropFrame.

The last line, shouldn't it be

[ret,File_Name,MatProp,T3,T2,Color_q,Notes,GUID]=PropFrame.GetRectangle('R1');

RE: needing help with etabs api error (propframe.getrectangle)

(OP)
thanks for your response
it is written in matlab
i don’t have problem with other etabs documentation in this format and can run all the (get) command by this procedure . but i can’t solve this one
also i run my code with your suggestion but nothing happened.

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! Already a Member? Login


Resources

Low-Volume Rapid Injection Molding With 3D Printed Molds
Learn methods and guidelines for using stereolithography (SLA) 3D printed molds in the injection molding process to lower costs and lead time. Discover how this hybrid manufacturing process enables on-demand mold fabrication to quickly produce small batches of thermoplastic parts. Download Now
Design for Additive Manufacturing (DfAM)
Examine how the principles of DfAM upend many of the long-standing rules around manufacturability - allowing engineers and designers to place a part’s function at the center of their design considerations. Download Now
Taking Control of Engineering Documents
This ebook covers tips for creating and managing workflows, security best practices and protection of intellectual property, Cloud vs. on-premise software solutions, CAD file management, compliance, and more. Download Now

Close Box

Join Eng-Tips® Today!

Join your peers on the Internet's largest technical engineering professional community.
It's easy to join and it's free.

Here's Why Members Love Eng-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close