Clear Filters
Clear Filters

How can I edit the Hinges already previously created in the object

4 views (last 30 days)
Hello good morning. I am trying to edit the predefined Hinges in my model from the Matlab-SAP OAPI. Could someone tell me how I can do it?

Answers (1)

Varun
Varun on 26 Dec 2023
Hi Maria,
Looks like you are trying to edit the predefined Hinges in your model from the MATLAB-SAP OAPI.
You can use SAP2000 API functions to modify the properties of the predefined hinges. This may include parameters such as rotational stiffness, hinge type, or any other relevant properties. Please refer to the following example:
% Example: Modify rotational stiffness of a hinge
elementName = 'YourElement'; % Replace with the actual element name or tag
hingeNumber = 1; % Replace with the actual hinge number
rotationalStiffness = 1000; % Replace with the desired stiffness value
SapModel.FrameObj.SetHinge('ElementName', elementName, hingeNumber, rotationalStiffness);
Here, “SapModel” is a reference to the SAP2000 model within the SAP2000 application. You can define it as shown below:
SapObject = actxserver('SAP2000v20.SapObject');
SapModel = SapObject.SapModel;
Please refer to this previous MATLAB Answers post to learn more about interaction between the MATLAB and SAP2000. It has the important tutorials and examples.

Products


Release

R2023b

Community Treasure Hunt

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

Start Hunting!