フィルターのクリア

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

4 ビュー (過去 30 日間)
María Alejandra Oliveros Caicedo
María Alejandra Oliveros Caicedo 2023 年 12 月 19 日
回答済み: Varun 2023 年 12 月 26 日
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?

回答 (1 件)

Varun
Varun 2023 年 12 月 26 日
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.

カテゴリ

Help Center および File ExchangeSupport Vector Machine Classification についてさらに検索

製品


リリース

R2023b

Community Treasure Hunt

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

Start Hunting!

Translated by