How can I edit the Hinges already previously created in the object
1 次查看(过去 30 天)
显示 更早的评论
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?
0 个评论
回答(1 个)
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.
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Classification Ensembles 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!