• This forum is the machine-generated translation of www.cad3d.it/forum1 - the Italian design community. Several terms are not translated correctly.

operators and, or in pro progra

  • Thread starter Thread starter Shotfree
  • Start date Start date

Shotfree

Guest
good morning to all, I am trying to check the presence of a feature and its components within a set and I would like to turn them off and turn them on according to a variable, so far all right; when however I go to set more comparison parameters the program returns strina error. to explain better below I bring back the piece of program:

if connection == "v09" or "v10" or "v11"
[bleep] err: the line contains an erroneous symbol or is not valid
add feature (initial number 10)
id internal feature 75
n. name element info status
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
1 defined quota type
2 defined variable regen method
3 quotas 1
4 variants 1a 2, defined
5 odds 2a optional dir
6 quota-variaz defined
7 variants 2a optional
guide of a (2 x 1) qta variable series

main series quotas:
d4 = (viewed) 19 dia
(memorized:) 19.0 ( 0.01, -0.01 )
d5 = (viewed:) 15
(memorized:) 15.0 ( 0.01, -0.01 )
d6 = (viewed:) 0
(memorized:) 0.0 (0.5 )
d7 = (viewed:) 30
(memorized:) -30.0 ( 0.01, -0.01 )
d8 = (viewed) 372
(memorized:) -372.0 ( 0.01, -0.01 )
add

add feature (initial number 11)
id internal feature 54
feature created in the rdt_frame_max_g
fathers = 40(#5)

hole
n. name element info
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
1 defined hole
1.1 type of right hole hole
1.2 creates normal hole
1.3 diameter 19.00
1.4 defined depth
1.4.1 side one defined
1.4.1.1 depth side 1 variable
1.4.1.2 value 15.00
1.4.2 side two defined
1.4.2.1 depth side 2 no one
1.5 reverse side 1
2 defined position
2.1 main reference supfce:f5(sport):1871320950028
2.2 radial positioning type
2.3 angle reference asm_front:f3(reference plan):259030050_fr
2.4 angle 0.0
2.5 linear reference supfce:f5(sport):1871320950028
2.6 distance 30.00
3 intersection defined parts
4 name feature defined
positioning = radial
member (1, 1) in one (2 x 1) qta variable series
feature is in levels :
02__asm_all_axes - operation = shown
main series quotas:
d4 = (viewed) 19 dia
(memorized:) 19.0 ( 0.01, -0.01 )
d5 = (viewed:) 15
(memorized:) 15.0 ( 0.01, -0.01 )
d6 = (viewed:) 0
(memorized:) 0.0 (0.5 )
d7 = (viewed:) 30
(memorized:) -30.0 ( 0.01, -0.01 )
d8 = (viewed) 372
(memorized:) -372.0 ( 0.01, -0.01 )
add

add feature (initial number 12)
id internal feature 76
feature created in the rdt_frame_max_g
fathers = 54(#11) 40(#5)

hole
n. name element info
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
1 defined hole
1.1 type of right hole hole
1.2 creates normal hole
1.3 diameter 19.00
1.4 defined depth
1.4.1 side one defined
1.4.1.1 depth side 1 variable
1.4.1.2 value 15.00
1.4.2 side two defined
1.4.2.1 depth side 2 no one
1.5 reverse side 1
2 defined position
2.1 main reference supfce:f5(sport):1871320950028
2.2 radial positioning type
2.3 angle reference asm_front:f3(reference plan):259030050_fr
2.4 angle 0.0
2.5 linear reference supfce:f5(sport):1871320950028
2.6 distance 402.00
3 intersection defined parts
4 name feature defined
positioning = radial
member (2, 1) in one (2 x 1) qta variable series
feature is in levels :
02__asm_all_axes - operation = shown
main series quotas:
d4 = (viewed) 19 dia
(memorized:) 19.0 ( 0.01, -0.01 )
d5 = (viewed:) 15
(memorized:) 15.0 ( 0.01, -0.01 )
d6 = (viewed:) 0
(memorized:) 0.0 (0.5 )
d7 = (viewed:) 30
(memorized:) -30.0 ( 0.01, -0.01 )
d8 = (viewed) 372
(memorized:) -372.0 ( 0.01, -0.01 )
add
end if

I ask you that if I avoid the or "v10" or "v11" el following conditions the program works, someone would know how to set the code to avoid error?
Thank you.
 
good morning to all, I am trying to check the presence of a feature and its components within a set and I would like to turn them off and turn them on according to a variable, so far all right; when however I go to set more comparison parameters the program returns strina error. to explain better below I bring back the piece of program:

if connection == "v09" or "v10" or "v11"

ciao [U]shotfree[/U],
it is not foreseen or in relationships, you must use the following syntax.

if connection == "v09" connection == "v10" connection == "v11"

greetings
 

Forum statistics

Threads
44,997
Messages
339,767
Members
4
Latest member
ibt

Members online

No members online now.
Back
Top