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

1 vue (au cours des 30 derniers jours)
María Alejandra Oliveros Caicedo
Réponse apportée : Varun le 26 Déc 2023
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?

Réponses (1)

Varun
Varun le 26 Déc 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.

Produits


Version

R2023b

Community Treasure Hunt

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

Start Hunting!

Translated by