How do I export files from MATLAB to autocad?

I am analyzing a shell structure for a project in SAP 2000.
I can't just draw the structure in SAP or AutoCad, I've heard I could write a program or function for the 3D shell and then export it to AutoCad and draw it there and then export the drawing to SAP.
Can you tell me if that is possible and if yes, could you give me some hints?

Answers (2)

Jan
Jan on 18 Feb 2011
Edited: John Kelly on 27 May 2014

1 Comment

the link is not found. it doesnt exist on the server. please suggest any other link. thank you

Sign in to comment.

SAP2000 has its Open-API for matlab, you do not need to draw your shell through AutoCAD. It's very easy to use the API to draw anything in SAP2000.
here are the code to start:
% code
feature('COM_SafeArraySingleDim', 1);feature('COM_PassSafeArrayByRef', 1);
SapObject = actxserver('Sap2000v15.SapObject');
SapObject.ApplicationStart(9);
SapModel = SapObject.SapModel; % create SapModel object
SapModel.InitializeNewModel; % initialize model
end
check the 《CSi_OAPI_Documentation》 on your hard disk to get fully usage.
good luck!
ps: there are MATLAB example codes in the help file.

Categories

Find more on Statistics and Machine Learning Toolbox in Help Center and File Exchange

Tags

Asked:

on 18 Feb 2011

Commented:

on 20 Feb 2016

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!