Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations waross on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

Recent content by osquro

  1. osquro

    SAP2000 API using MATLAB - A Simple Question

    Sorry, I don't get it. Dit it work?
  2. osquro

    SAP2000 API using MATLAB - A Simple Question

    I will run run code tonight. In the mean time, try this: - In the line: NumberResults = zeros (1.1, 'double'); all the arguments must be separated by comas (1, 1, 'double'). - In the line: Obj = cellstr (''); use a space as an argument (' ') - Did you use the methods...
  3. osquro

    Too much data

    SAP V15 and CSI bridge are not familiar to me. I use SAP V14. But according to this http://www.facebook.com/note.php?note_id=206783049381568 You could use CSiBridge OAPI from Matlab, Excel, C#, etc. and then: - Selectively get the results, a few elements at the time. - Dispose the fields you...
  4. osquro

    SAP2000 API using MATLAB - A Simple Question

    cherifdj, 1. Explore the file SAP2000_API_Documentation.chm located on SAP2000 instalation folder. 2. Test Example code for Matlab. 3. Try to translate required VBA Examples (provided with all the functions). Be careful with syntax. We will help you with the details.
  5. osquro

    SAP2000 API using MATLAB - A Simple Question

    Hi SinaPeugeot, You can hide SAP2000 GUI from Matlab: Visible = SapObject.Visible You can also use the advanced solver: SolverType = 1; % 0 = Standard 1 = Advanced Force32BitSolver = false(); ret = SapModel.Analyze.SetSolverOption(SolverType, Force32BitSolver); Running SAP2000 from one...
  6. osquro

    SAP2000 API using MATLAB - A Simple Question

    Hi SinaPeugeot, Instead of creating one model, you can create and save hundreds of models. These models are then analyzed in SAP2000 using command line. To do this, create one or several batch files (a batch file is a text file with extension .bat) according to...
  7. osquro

    SAP2000 API using MATLAB - A Simple Question

    Hi SinaPeugeot, I'm just an enthusiast. Some tips to speed up your analyses according to my experience: - To run a few hundreds of models using 100% of all your CPU's cores and threads is better to use several batch files calling SAP2000 from command line a lot of times each...
  8. osquro

    SAP2000 API using MATLAB - A Simple Question

    Hi SinaPeugeot, try this, [code] feature('COM_SafeArraySingleDim', 1); feature('COM_PassSafeArrayByRef', 1); SapObject = actxserver('sap2000.SapObject'); SapObject.ApplicationStart; ret = SapObject.SapModel.File.OpenFile('C:\temp\1.sdb'); ret = SapObject.SapModel.Analyze.RunAnalysis(); ret =...
  9. osquro

    Creating moving loads with API

    Could you please post some code? What part is not working? Not enough information to help you...
  10. osquro

    Open older version files in a later version

    Try using .s2k (or .$2k) file. Lets say that version 14.2.4 file was created in the computer A and the computer B has SAP v14.1.0 installed. - Make sure computer B has the same regional configuration (decimal separator) of computer A. If it is not possible to check, take a look to the file...
  11. osquro

    SAP2000 API using MATLAB - Time History Analysis

    newtonthegreat It didn't work in my machine. Sometimes to learn the syntax of other commands, I've tried reading data provided by GET method before using SET method. For example, try the method GetNonPrismatic in a existing file, so you can see the expected arguments to be used in the function...
  12. osquro

    SAP2000 API using MATLAB - Time History Analysis

    In the closed thread http://www.eng-tips.com/viewthread.cfm?qid=251179 khalilalloqa asked "Hello, where could i find the VBA examples for sap verifications?" For SAP2000 V14 they are located in one file in the path: [Program files]\Computers and Structures\SAP2000...
  13. osquro

    SAP2000 API using MATLAB - Time History Analysis

    Hi newtonthegreat, If you define Value like this: Value=zeros(6,1) Value(1) = true; Value(2) = true; Value(3) = true; Value(4) = true; Value(5) = true; Value(6) = true; and then call "whos": >> whos Value Name Size Bytes Class Attributes Value 6x1...
  14. osquro

    SAP2000 API using MATLAB - Time History Analysis

    I tried, but I didn't get it (in Matlab).
  15. osquro

    SAP2000 API using MATLAB - Time History Analysis

    newtonthegreat, try this link: http://dl.dropbox.com/u/19419266/SAP2000_API_Documentation.chm It must be in your SAP2000 instalation folder.

Part and Inventory Search