Skip to content
This repository was archived by the owner on Apr 23, 2025. It is now read-only.

Commit 3c7ab23

Browse files
committed
Update
1 parent 94957b8 commit 3c7ab23

2 files changed

Lines changed: 15 additions & 1 deletion

File tree

examples/high_level_functions_demos/addon_concrete_design.js

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
/*
2+
Bug 105918 - missing APi support for NTC (Ultimate configurations, Serviceability configurations)
3+
*/
4+
15
include("../../includes/Tools/high_level_functions_support.js");
26
include("../../includes/AddOns/ConcreteDesign/ConcreteDesignSupport.js");
37
/*********************************************************************************************
@@ -42,6 +46,13 @@ var concrete_design_standards = {
4246
3: general.NATIONAL_ANNEX_AND_EDITION_SP_63_13330_2018_12
4347
};
4448

49+
if (PRERELEASE_MODE) {
50+
concrete_design_standards[4] = general.NATIONAL_ANNEX_AND_EDITION_NTC_2018_01_CONCRETE_DESIGN;
51+
}
52+
else if (standard_index === 4) {
53+
ASSERT(false, "Only for pre-release mode");
54+
}
55+
4556
if (standard_index >= Object.keys(concrete_design_standards).length) {
4657
console.log("start_index must be from range 0-" + (Object.keys(concrete_design_standards).length - 1).toString());
4758
}
@@ -301,6 +312,9 @@ switch (general.current_standard_for_concrete_design)
301312
serviceabilityConfiguration.SetCrackWidthAnalysis(0.000201, 0.000202, 0.000203, 0.000204);
302313
serviceabilityConfiguration.SetDeflectionAnalysis(true, 121, 122, false, undefined, undefined, 0.70);
303314
break;
315+
case general.NATIONAL_ANNEX_AND_EDITION_NTC_2018_01_CONCRETE_DESIGN:
316+
// No API support, bug 105918
317+
break;
304318
default:
305319
ASSERT(false, "Unknown code of standard");
306320
}

examples/high_level_functions_demos/addon_concrete_design.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@
22

33
<script>
44
<arguments>
5-
<argument argument-name="standard_index" default-value="0" label-name="Current index of standard for concrete design (0: EN, 1: ACI, 2: CSA, 3: SP)"/>
5+
<argument argument-name="standard_index" default-value="0" label-name="Current index of standard for concrete design (0: EN, 1: ACI, 2: CSA, 3: SP, 4: NTC)"/>
66
</arguments>
77
</script>

0 commit comments

Comments
 (0)