diff --git a/src/Mod/Fem/femsolver/calculix/write_mesh.py b/src/Mod/Fem/femsolver/calculix/write_mesh.py index a00c8071d2e9..6c179600fe37 100644 --- a/src/Mod/Fem/femsolver/calculix/write_mesh.py +++ b/src/Mod/Fem/femsolver/calculix/write_mesh.py @@ -52,7 +52,7 @@ def write_mesh(ccxwriter): meshtools.write_D_network_element_to_inputfile(ccxwriter.femmesh_file) # Check to see if pipe beam sections are in analysis and use B32R element type - if ccxwriter.beamsec_obj.SectionType == "Pipe": + if ccxwriter.member.geos_beamsection_obj.SectionType == "Pipe": meshtools.use_B32R_for_pipe_section(ccxwriter.femmesh_file) inpfile = codecs.open(ccxwriter.file_name, "w", encoding="utf-8") @@ -74,7 +74,7 @@ def write_mesh(ccxwriter): meshtools.write_D_network_element_to_inputfile(ccxwriter.femmesh_file) # Check to see if pipe beam sections are in analysis and use B32R element type - if ccxwriter.beamsec_obj.SectionType == "Pipe": + if ccxwriter.member.geos_beamsection_obj.SectionType == "Pipe": meshtools.use_B32R_for_pipe_section(ccxwriter.femmesh_file) # reopen file with "append" to add all the rest