SetPreference {Concrete SP_63-13330-2012}

SetPreference

Syntax

SapObject.SapModel.DesignConcrete.SP63_13330_2012.SetPreference

VB6 Procedure

Function SetPreference(ByVal Item As Long, ByVal Value 
 As Double) As Long

Parameters

Item

This is an integer between 1 and 35, inclusive, indicating 
 the preference item considered.

1 = Multi-response case 
 design

2 = Number of interaction 
 curves

3 = Number of interaction 
 points

4 = Consider minimum eccentricity?

5 = Consider torsion?

6 = (qsw,1*Z1)/(Rs*As,1)

7 = Corner rebar fraction 
 top

8 = Corner rebar fraction 
 bottom

9 = Relative humidity

10 = Moisture content

11 = Gamma_b

12 = Gamma_bt

13 = Gamma_b1 short term

14 = Gamma_b1 long term

15 = Gamma_b2

16 = Gamma_b3 beams

17 = Gamma_b3 columns

18 = Gamma_b4

19 = Gamma_b5

20 = Gamma_S

21 = Gamma_S1

22 = Pattern live load 
 factor

23 = Utilization factor 
 limit

24 = Live load duration 
 factor

25 = Snow load duration 
 factor

26 = Consider crack analysis

27 = Crack width limit 
 full load

28 = Crack width limit 
 long term

29 = Longitudinal rebar 
 size top

30 = Longitudinal rebar 
 size bottom

31 = Is longitudinal rebar 
 ribbed?

32 = Reliability factor

33 = Seismic factor m
tr_strength

34 = Seismic factor m
tr_shear

35 =Site seismicity

Value

The value of the considered preference item.

1 = Multi-response case 
 design

1 
 = Envelopes

2 
 = Step-by-step

3 
 = Last step

4 
 = Envelopes -- All

5 
 = Step-by-step -- All

2 = Number of interaction 
 curves

Value 
 >= 4 and divisible by 4

3 = Number of interaction 
 points

Value >= 5 and odd

4 = Consider minimum eccentricity?

0 = No

Any other value = Yes

5 = Consider torsion?

0 = No

Any other value = Yes

6 = (qsw,1*Z1)/(Rs*As,1)

0.5 <= Value <= 
 1.5

7 = Corner rebar fraction 
 top

0 < Value <= 1

8 = Corner rebar fraction 
 bottom

0 < Value <= 1

9 = Relative humidity

0 <= Value <= 100

10 = Moisture content

0 <= Value <= 1

11 = Gamma_b

Value > 0

12 = Gamma_bt

Value > 0

13 = Gamma_b1 short term

Value > 0

14 = Gamma_b1 long term

Value > 0

15 = Gamma_b2

Value > 0

16 = Gamma_b3 beams

Value > 0

17 = Gamma_b3 columns

Value > 0

18 = Gamma_b4

Value > 0

19 = Gamma_b5

Value > 0

20 = Gamma_S

Value > 0

21 = Gamma_S1

Value > 0

22 = Pattern live load 
 factor

Value >= 0

23 = Utilization factor 
 limit

Value > 0

24 = Live load duration 
 factor

Value >= 0

25 = Snow load duration 
 factor

Value >= 0

26 = Consider crack analysis?

0 = No

Any other value = Yes

27 = Crack width limit 
 full load

Value >= 0

28 = Crack width limit 
 long term

Value >= 0

29 = Longitudinal rebar 
 size top

1 
 = #2

2 
 = #3

3 
 = #4

4 
 = #5

5 
 = #6

6 
 = #7

7 
 = #8

8 
 = #9

9 
 = #10

10 
 = #11

11 
 = #14

12 
 = #18

13 
 = 10M

14 
 = 15M

15 
 = 20M

16 
 = 25M

17 
 = 30M

18 
 = 35M

19 
 = 45M

20 
 = 55M

21 
 = 6d

22 
 = 8d

23 
 = 10d

24 
 = 12d

25 
 = 14d

26 
 = 16d

27 
 = 20d

28 
 = 25d

29 
 = 26d

30 
 = 28d

31 
 = N12

32 
 = N16

33 
 = N20

34 
 = N24

35 
 = N28

36 
 = N32

37 
 = N36

30 
 = Longitudinal rebar size bottom

1 
 = #2

2 
 = #3

3 
 = #4

4 
 = #5

5 
 = #6

6 
 = #7

7 
 = #8

8 
 = #9

9 
 = #10

10 
 = #11

11 
 = #14

12 
 = #18

13 
 = 10M

14 
 = 15M

15 
 = 20M

16 
 = 25M

17 
 = 30M

18 
 = 35M

19 
 = 45M

20 
 = 55M

21 
 = 6d

22 
 = 8d

23 
 = 10d

24 
 = 12d

25 
 = 14d

26 
 = 16d

27 
 = 20d

28 
 = 25d

29 
 = 26d

30 
 = 28d

31 
 = N12

32 
 = N16

33 
 = N20

34 
 = N24

35 
 = N28

36 
 = N32

37 
 = N36

31 = Is longitudinal rebar 
 ribbed?

0 = No

Any other value = Yes

32 = Reliability factor

Value > 0

33 = Seismic factor m
tr_strength

Value > 0

34 = Seismic factor m
tr_shear

r i g h t : 0 i n ; m a r g i n - b o t t o m : 0 i n ; 
 	 m a r g i n - l e f t : 8 4 . 0 p t ; l i n e - h e i g h t : n o r m a l ; " > V a l u e &g t ; 0 / p > 
 p c l a s s = " M s o N o r m a l " s t y l e = " m a r g i n - t o p : 0 i n ; m a r g i n - r i g h t : 0 i n ; m a r g i n - b o t t o m : 0 i n ; 
 	 m a r g i n - l e f t : 8 4 . 0 p t ; l i n e - h e i g h t : n o r m a l ; " > / p > 
 p c l a s s = " M s o N o r m a l " s t y l e = " m a r g i n - t o p : 0 i n ; m a r g i n - r i g h t : 0 i n ; m a r g i n - b o t t o m : 0 i n ; 
 	 m a r g i n - l e f t : 6 6 . 0 p t ; l i n e - h e i g h t : n o r m a l ; " > 3 5 = S i t e s e i s m i c i t y / p > 
 p c l a s s = " M s o N o r m a l " s t y l e = " m a r g i n - t o p : 0 i n ; m a r g i n - r i g h t : 0 i n ; m a r g i n - b o t t o m : 0 i n ; 
 	 m a r g i n - l e f t : 6 6 . 0 p t ; l i n e - h e i g h t : n o r m a l ; " > 1 
 = S i t e s e i s m i c i t y 9 / p > 
 p c l a s s = " M s o N o r m a l " s t y l e = " m a r g i n - t o p : 0 i n ; m a r g i n - r i g h t : 0 i n ; m a r g i n - b o t t o m : 0 i n ; 
 	 m a r g i n - l e f t : 6 6 . 0 p t ; l i n e - h e i g h t : n o r m a l ; " > 2 
 = S i t e s e i s m i c i t y 8 / p > 
 p c l a s s = " M s o N o r m a l " s t y l e = " m a r g i n - t o p : 0 i n ; m a r g i n - r i g h t : 0 i n ; m a r g i n - b o t t o m : 0 i n ; 
 	 m a r g i n - l e f t : 6 6 . 0 p t ; l i n e - h e i g h t : n o r m a l ; " > 3 
 = S i t e s e i s m i c i t y 7 / p > 
 p c l a s s = " M s o N o r m a l " s t y l e = " m a r g i n - t o p : 0 i n ; m a r g i n - r i g h t : 0 i n ; m a r g i n - b o t t o m : 0 i n ; 
 	 m a r g i n - l e f t : 6 6 . 0 p t ; l i n e - h e i g h t : n o r m a l ; " > 4 
 = N o n s e i s m i c / p > 
 h 2 c l a s s = " P a r a m e t e r D e s c r i p t i o n " > R e m a r k s / h 2 > 
 p c l a s s = " C o m m e n t " > T h i s f u n c t i o n r e t r i e v e s t h e v a l u e o f a c o n c r e t e d e s i g n 
 p r e f e r e n c e i t e m . / p > 
 p c l a s s = " C o m m e n t " > T h e f u n c t i o n r e t u r n s z e r o i f t h e i t e m i s s u c c e s s f u l l y 
 r e t r i e v e d ; o t h e r w i s e , i t r e t u r n s a n o n z e r o v a l u e . / p > 
 h 2 > V B A E x a m p l e / h 2 > 
 p c l a s s = " C o d i n g " > S u b S e t C o n c r e t e D e s i g n P r e f e r e n c e I t e m S P 6 3 _ 1 3 3 3 0 _ 2 0 1 2 ( ) b r / > 
 &# 3 9 ; d i m e n s i o n v a r i a b l e s b r / > 
 D i m S a p O b j e c t a s c O A P I b r / > 
 D i m S a p M o d e l A s c S a p M o d e l b r / > 
 D i m r e t A s L o n g b r / > 
 b r / > 
 &# 3 9 ; c r e a t e S a p 2 0 0 0 o b j e c t b r / > 
 S e t S a p O b j e c t = C r e a t e O b j e c t ( &q u o t ; C S I . S A P 2 0 0 0 . A P I . S a p O b j e c t &q u o t ; ) b r / > 
 b r / > 
 &# 3 9 ; s t a r t S a p 2 0 0 0 a p p l i c a t i o n b r / > 
 S a p O b j e c t . A p p l i c a t i o n S t a r t b r / > 
 b r / > 
 &# 3 9 ; c r e a t e S a p M o d e l o b j e c t b r / > 
 S e t S a p M o d e l = S a p O b j e c t . S a p M o d e l b r / > 
 b r / > 
 &# 3 9 ; i n i t i a l i z e m o d e l b r / > 
 r e t = S a p M o d e l . I n i t i a l i z e N e w M o d e l b r / > 
 b r / > 
 &# 3 9 ; c r e a t e n e w c o n c r e t e f r a m e s e c t i o n p r o p e r t y b r / > 
 r e t = S a p M o d e l . P r o p F r a m e . S e t R e c t a n g l e ( &q u o t ; R 1 &q u o t ; , 
 &q u o t ; 4 0 0 0 P s i &q u o t ; , 2 0 , 1 2 ) b r / > 
 b r / > 
 &# 3 9 ; c r e a t e m o d e l f r o m t e m p l a t e b r / > 
 r e t = S a p M o d e l . F i l e . N e w 2 D F r a m e ( P o r t a l F r a m e , 
 2 , 1 4 4 , 2 , 2 8 8 , T r u e , &q u o t ; R 1 &q u o t ; , &q u o t ; R 1 &q u o t ; ) b r / > 
 b r / > 
 &# 3 9 ; s e t c o n c r e t e d e s i g n c o d e b r / > 
 r e t = S a p M o d e l . D e s i g n C o n c r e t e . S e t C o d e ( &q u o t ; S P 6 3 . 1 3 3 3 0 . 2 0 1 2 &q u o t ; ) b r / > 
 b r / > 
 &# 3 9 ; s e t p r e f e r e n c e i t e m b r / > 
 r e t = S a p M o d e l . D e s i g n C o n c r e t e . S P 6 3 _ 1 3 3 3 0 _ 2 0 1 2 . S e t P r e f e r e n c e ( 1 1 , 
 1 . 2 ) b r / > 
 b r / > 
 &# 3 9 ; c l o s e S a p 2 0 0 0 b r / > 
 S a p O b j e c t . A p p l i c a t i o n E x i t F a l s e b r / > 
 S e t S a p M o d e l = N o t h i n g b r / > 
 S e t S a p O b j e c t = N o t h i n g b r / > 
 E n d S u b / p > 
 h 2 > R e l e a s e N o t e s / h 2 > 
 p c l a s s = " C o m m e n t " > I n i t i a l r e l e a s e i n v 2 0 . 1 . 0 . / p > 
 p c l a s s = " C o m m e n t " > A d d e d i t e m s 2 4 - 3 5 i n v 2 3 . 4 . 0 / p > 
 h 2 c l a s s = " C o m m e n t " > S e e A l s o / h 2 > 
 p c l a s s = " B l o c k - T e x t " > a h r e f = " G e t P r e f e r e n c e . h t m " > G e t P r e f e r e n c e / a > / p > 

 / b o d y > / h t m l >