How to create sections with linear distribution type #386
-
Hi, I am trying to learn this awesome Python client, but got stuck on creating members. #----------------------------------------------------------# Create Nodes#----------------------------------------------------------# #----------------------------------------------------------# Create Material#----------------------------------------------------------# #----------------------------------------------------------# Create Section#----------------------------------------------------------# #----------------------------------------------------------# Create Beam#----------------------------------------------------------# |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
Hello @lekuaa, Thank you for using our webservice. You can create different section distribution type beam with help of the Model(True, 'demo')
Node(1,0.0,0.0,0.0)
Node(2,10.0,0.0,0.0)
Node(3,10.0,0.0,-7.0)
Node(4,0.0,0.0,-7.0)
Material(1,'Q235')
Section(1, 'RHS 200x100x8 | GB/T 6728-2017 | --',1)
Section(2, 'RHS 400x200x10 | GB/T 6728-2017 | --',1)
# Linear distribution
Member.Beam(1, 1, 2, MemberSectionDistributionType.SECTION_DISTRIBUTION_TYPE_LINEAR, start_section_no=2, end_section_no=1, distribution_parameters=[MemberSectionAlignment.SECTION_ALIGNMENT_TOP])
# Tapered at the start of member distribution
Member.Beam(2, 4, 3, MemberSectionDistributionType.SECTION_DISTRIBUTION_TYPE_TAPERED_AT_START_OF_MEMBER, start_section_no=2, end_section_no=1, distribution_parameters=[True, 0.25, MemberSectionAlignment.SECTION_ALIGNMENT_CENTRIC]) For creating other types of member or more details you may visit our documentation pages. If you have any other questions then feel free to reach us. |
Beta Was this translation helpful? Give feedback.
Hello @lekuaa,
Thank you for using our webservice. You can create different section distribution type beam with help of the
Member.Beam()
static method of theMember
class. I have attached the small example so you can know how to use it.