# Code automatically extracted from steel_i_profile.ipynb.
from blueprints.structural_sections.steel.standard_profiles import HEB

heb_profile = HEB.HEB600

heb_profile = heb_profile.with_corrosion(corrosion=1.5)

plot = heb_profile.plot(show=True)

properties = heb_profile.section_properties()

from blueprints.structural_sections.steel.profile_definitions import IProfile

custom_i_profile = IProfile(
    top_flange_width=300,  # mm
    top_flange_thickness=20,  # mm
    bottom_flange_width=200,  # mm
    bottom_flange_thickness=10,  # mm
    total_height=600,  # mm
    web_thickness=10,  # mm
    top_radius=15,  # mm (fillet radius at top flange)
    bottom_radius=8,  # mm (fillet radius at bottom flange)
)

plot = custom_i_profile.plot(show=True)

properties = custom_i_profile.section_properties()
