Handling SHEETN: I need to output it in 3-digit format

 
  • Hello Isodraft experts,


    I'm currently dealing the SHEETN in the option file. I'm having trouble, please help.

    I need to output it in 3-digit format, like XXX-001, XXX-002... XXX-011


    This code won't work:

    [FONT=&]-- OUTPUT ONES 3-DIGIT SHEET No.... 001 TO 009

    if (SHEETN LT 9) then
    TextPosition '00' X 594mm Y 79.5mm CharHeight 3mm ang 90
    TextPosition SHEETN X 594mm Y 84.5mm CharHeight 3mm ang 90

    -- OUTPUT TENS 3-DIGIT SHEET No.... 010 TO 099

    elseif (SHEETN LT 99) then
    TextPosition '0' X 594mm Y 79.5mm CharHeight 3mm ang 90
    TextPosition SHEETN X 594mm Y 82mm CharHeight 3mm ang 90

    -- OUTPUT HUNDREDS 3-DIGIT SHEET No.... 100 to up

    else
    TextPosition SHEETN X 594mm Y 79.5mm CharHeight 3mm ang 90

    endif[/FONT]


    I'm trying to capture SHEETN and put it in a variable like,

    var !SHNO = SHEETN

    and replace it in my if statements. But still won't work.


    Is there any other way to solve it or correct my coding?




    Thanks,
    july
  • [COLOR=#333333]I Do not think you will be having more then 100 sheet for each Isometric

    so add 100

    var !SHNO = SHEETN

    !SHEET = !ISHNO + 100

    $!SHEET???

    This is only my basic Idea,I have not tried or implemented on my own work..[/COLOR]
  • I agree, 100 is an exaggeration. But I do have more than 10 sheets.

    I've tried that one, but

    var !SHNO = SHEETN[/U] won't work.

    There must be something wrong or proper coding for this???



    Thank$
  • try var !SHNO SHEETN
    ISODRAFT uses old syntax.
  • YKR,

    Thanks, but OLD SCHEME won't work also.

    I've read some post that SHEETN will work with TEXTPOSITION only?
    http://52.178.132.139/showthread.php?t=7118&highlight=SHEETN

    This is 5 years ago, maybe AVEVA had already developed something on this issue???
  • Hi Isurya,


    As of now, there's no other way to do it.

    I just do the other way and with CAD modifications: Put a note in PDMS like :NOTE3 '10' (lines with 10/20 sheets and more).
    And option file goes like this:

    [FONT=&]if (:NOTE3 EQ '10') then
    TextPosition '0' X 594mm Y 79.5mm CharHeight 3mm ang 90
    TextPosition SHEETN X 594mm Y 82mm CharHeight 3mm ang 90

    else
    TextPosition '00' X 594mm Y 79.5mm CharHeight 3mm ang 90
    TextPosition SHEETN X 594mm Y 84.5mm CharHeight 3mm ang 90
    [/FONT]
    Then CAD modifications by adding one '0' is needed for sheets 1-9 to make it 001...009


    This is an isolated issue I guess. In detail design with complete line numbers would is not a trouble.




    Thnak$
  • [LEFT][COLOR=#222222]I also got query on this issue on SHEETN.. as the client wants to show it as a 2 digits (not 3 digits).. ie 01, 02, 03... 10, 11 on the isometric drawings.. [/COLOR]
    [COLOR=#222222]I really appreciate if anybody can assist.[/COLOR]

    [COLOR=#222222]Thanks in advance guys.[/COLOR][/LEFT]
  • [QUOTE=july;99827]Hi Isurya,


    As of now, there's no other way to do it.

    I just do the other way and with CAD modifications: Put a note in PDMS like :NOTE3 '10' (lines with 10/20 sheets and more).
    And option file goes like this:

    [FONT=&]if (:NOTE3 EQ '10') then
    TextPosition '0' X 594mm Y 79.5mm CharHeight 3mm ang 90
    TextPosition SHEETN X 594mm Y 82mm CharHeight 3mm ang 90

    else
    TextPosition '00' X 594mm Y 79.5mm CharHeight 3mm ang 90
    TextPosition SHEETN X 594mm Y 84.5mm CharHeight 3mm ang 90
    [/FONT]
    Then CAD modifications by adding one '0' is needed for sheets 1-9 to make it 001...009


    This is an isolated issue I guess. In detail design with complete line numbers would is not a trouble.




    Thnak$

    Good idea....