public static string Description(this AluminiumSection section) { if (section == null) { return("null section"); } return("Aluminium " + section.SectionProfile.IDescription() + " - " + CheckGetMaterialName(section.Material)); }
public static AluminiumSection AluminiumSectionFromProfile(IProfile profile, Aluminium material = null, string name = "") { //Run pre-process for section create. Calculates all section constants and checks name of profile var preProcessValues = PreProcessSectionCreate(name, profile); name = preProcessValues.Item1; profile = preProcessValues.Item2; Dictionary <string, double> constants = preProcessValues.Item3; AluminiumSection section = new AluminiumSection(profile, constants["Area"], constants["Rgy"], constants["Rgz"], constants["J"], constants["Iy"], constants["Iz"], constants["Iw"], constants["Wely"], constants["Welz"], constants["Wply"], constants["Wplz"], constants["CentreZ"], constants["CentreY"], constants["Vz"], constants["Vpz"], constants["Vy"], constants["Vpy"], constants["Asy"], constants["Asz"]); return(PostProcessSectionCreate(section, name, material, MaterialType.Aluminium)); }
/***************************************************/ private IFAttribute CreateSection(AluminiumSection sectionProperty) { IFGeometricLine lusasGeometricLine = null; if (sectionProperty.SectionProfile != null) { lusasGeometricLine = d_LusasData.createGeometricLine(sectionProperty.DescriptionOrName()); lusasGeometricLine.setValue("elementType", "3D Thick Beam"); if (CreateProfile(sectionProperty.DescriptionOrName(), sectionProperty.SectionProfile as dynamic)) { if (!(sectionProperty.SectionProfile is TaperedProfile)) { lusasGeometricLine.setFromLibrary("User Sections", "Local", sectionProperty.DescriptionOrName(), 0, 0); } } } return(lusasGeometricLine); }