Hole type 1
Hole type 1
Round hole (manhole). This hole type is defined by giving a diameter. The default is taken from the last use within the block. After block change the first default is taken from the def_norms variable setting defined in the settings.cmd file.
|
Variable |
Default |
Question |
|
|---|---|---|---|
|
|
MA |
500/ last used |
Diameter |
Hole types dialog in the Create Holes and Modify Holes functions:
label 1 ans[1]=^def_norms[23] quest[1]='Diameter' exit label 3 {numerics diameter significance 1 def_norms[23]=^ans[1] diameter=^ans[1] varstr='ma'<diameter/2> significance 0 } exit label 4 {varstr='ma100' } exit label 13 {numerics allnum,error,lstr,value strings str label13ok=1 do @cmdhole/checkans(quest,ans,@allnum,@error) if error=1 then {label13ok=-1 exit } if allnum=1:jump 3 varstr='ma' str=ans[1] lstr=len(str) if str[lstr\lstr]='%' then {str=str[1\lstr-1] value=^str varstr=varstr//<value/2>'%' } else varstr=varstr//str } exit label 31 {label31ok=1 if tm[1]='??':ans[1]='?' else {if tm[1]='%%':ans[1]=<2*vm[1]>'%' else ans[1]=<2*vm[1]> } } exit |
To defaults is taken from the def_norms variable settings. This can be changed in the settings.cmd file.
The diameter is divided by two, this because the program expect a radius instead of the diameter.
The system controls label 31 and its contents. The system automatically adds Label 31 to the hole type macro when the Construction > Holes > Modify > Relations function is used for a hole type. This label is needed for correctly processing the dimensions of the hole when its relations are modified. |
1 0 2 H HA H= T1 Hole C1*V1 Diam R TY HG HA C2 G Manhole D TY "Manhole" R2 "Diameter:" |
Variable V1 is used to define the diameter instead of the radius in the profile sketch. In the robot definition the C2 variable is used. The system automatically defines the C1 and C2 values. C1 is the radius, and C2 is the diameter.
G line is specific to the hole list. The definition is Manhole300. The diameter is added after the description. D line is specific to the "attribute ?" function. R1 is the radius, and R2 is the diameter. |