Szabadi Gergely

Forum Replies Created

Viewing 10 posts - 16 through 25 (of 25 total)
  • Author
    Posts
  • in reply to: Hotspots in section #2431

    Szabadi Gergely
    Participant

    by flags I ment unID

    G. Szabadi

  • in reply to: Hotspots in section #2430

    Szabadi Gergely
    Participant

    Thanks again! When I add flags for the hotspot, in section view the scaling follows the object, BUT If I have an object, where I use macro object more then one, I have problem with the unique flags because they have to be unique, but it is defined the same way.
    Any solution?

    Thx

    G. Szabadi

  • in reply to: Hotspots in section #2429

    Szabadi Gergely
    Participant

    Thank you!

    G. Szabadi

  • in reply to: Newparameter #2420

    Szabadi Gergely
    Participant

    I had found an other problem with it. This is nice, working fine, create 5 block, but if a3=2 still creat 5 block instead of skipping the 3th one

    parameters a1, a2, a3, a4, a5

    !MASTER SCRIPT
    
    dim 	parama[2][5]
    	parama[1][1]=1
    	parama[1][2]=2
    	parama[1][3]=3
    	parama[1][4]=4
    	parama[1][5]=5
    	parama[2][1]='opt1'
    	parama[2][2]='opt2'
    	parama[2][3]='opt3'
    	parama[2][4]='opt4'
    	parama[2][5]='opt5'
    
    dim varia[]
        varia[1]=a1
        varia[2]=a2
        varia[3]=a3
        varia[4]=a4
        varia[5]=a5
    
    !PARAMETERS SCRIPT
    
    for k=1 to 5
    values{2} "a"+str(k,1,0) parama[1], parama[2]
    next k
    
    !3D SCRIPT
    
    for i=1 to 5
    if varia[ i ]=1 then
    addx (i-1)*.5
    block 1, 1, 1
    del 1
    endif
    next i

    G. Szabadi

  • in reply to: Newparameter #2419

    Szabadi Gergely
    Participant

    Again, thanks. Huge help! Bu I don’t understand why is this working after if command and why it is not working with parameter command.

    if varia[ i ]= 1 then ! works fine
    parameters varia2[ i ]=2 ! doesn’t work

    G. Szabadi

  • in reply to: Newparameter #2417

    Szabadi Gergely
    Participant

    Thank you very much!!!!!!!!!!!!!

    G. Szabadi

  • in reply to: Newparameter #2414

    Szabadi Gergely
    Participant

    Thanks for the answer!
    I tried to create loop with arrays, but still now working. I don’t get error massage, the script is good, but not working. Does anybody has an idea, why?

    parameters a1, a2, a3, a4, a5

    !MASTER SCRIPT
    
    dim 	parama[2][5]
    	parama[1][1]=1
    	parama[1][2]=2
    	parama[1][3]=3
    	parama[1][4]=4
    	parama[1][5]=5
    	parama[2][1]='opt1'
    	parama[2][2]='opt2'
    	parama[2][3]='opt3'
    	parama[2][4]='opt4'
    	parama[2][5]='opt5'
    
    dim varia[]
        varia[1]='a1'
        varia[2]='a2'
        varia[3]='a3'
        varia[4]='a4'
        varia[5]='a5'
    
    !PARAMETERS SCRIPT
    
    for k=1 to 5
    values{2} "a"+str(k,1,0) parama[1], parama[2]
    next k
    
    !3D SCRIPT
    
    for i=1 to 5
    if varia(i)='opt1' then     !I have error to submit here the right type of bracket 
    addx (i-1)*.5
    block 1, 1, 1
    del 1
    endif
    next i

    G. Szabadi

  • in reply to: Newparameter #2373

    Szabadi Gergely
    Participant

    Thank you very much for your answer, so it seems that I can’t concanenate strings to refer a variable name. Does anybody know how to shorten these:

    variables: a1, a2, a3, a4, a5

    for i=1 to 5
    values{2} "a"+str(i,1,0) 1, 'opt1', 2, 'opt2'
    next i
    
    if a1=1 then
    ...
    endif
    
    if a2=1 then
    ....
    endif
    
    etc.
    

    if a string can equal to a string, than why is this not working?

    for i=1 to 4
    if "a"+str(i,1,0)='opt1' then
    ....
    endif
    next i

    G. Szabadi

  • in reply to: Newparameter #2370

    Szabadi Gergely
    Participant

    Thank you very much it works well!

    Can you help me script this parameter if I want to use it in an “if”- type control statement?

    for i = 1 to 10
    if "param"+STR(i,1,0) = 2 then
    ....
    else
    endif
    next i

    I get error massage with and without the quotation marks too. I can’t figure out why

    G. Szabadi

  • in reply to: Newparameter #2368

    Szabadi Gergely
    Participant

    Thank you, for your answer

    it is working fine (I don’t have so many parameters to reach the limit), but can you tell me any way, except copy the script, to add these parameters one kind of values?

    I have:

    param1
    param2
    param3
    etc.

    and I want to write same values for all of them, but it seems that this is not the best solution:

    
    values{2} "param1" 1, 'opt1', 2, 'opt2 etc...
    values{2} "param2" 1, 'opt1', 2, 'opt2 etc...
    values{2} "param3" 1, 'opt1', 2, 'opt2 etc...

    can I loop this somehow?

    G. Szabadi

Viewing 10 posts - 16 through 25 (of 25 total)