Home > Community > Forums > PCB SKILL > artwork film control

Email

* Required Fields

Recipients email * (separate multiple addresses with commas)

Your name *

Your email *

Message *

Contact Us

* Required Fields
First Name *

Last Name *

Email *

Company / Institution *

Comments: *

 artwork film control 

Last post Wed, May 8 2013 10:27 AM by aCraig. 5 replies.
Started by seyerfred 07 May 2013 06:17 AM. Topic has 5 replies and 1055 views
Page 1 of 1 (6 items)
Sort Posts:
  • Tue, May 7 2013 6:17 AM

    • seyerfred
    • Top 500 Contributor
    • Joined on Tue, Mar 12 2013
    • Posts 32
    • Points 765
    artwork film control Reply

    Hi,

    is there any code to set only all inner layer into supress unconnected pads? and a selection of plot mode for power/gnd plane to set posive o negative?

    Thank you 

    • Post Points: 20
  • Wed, May 8 2013 4:05 AM

    • oldmouldy
    • Top 10 Contributor
    • Joined on Tue, Jul 15 2008
    • Woking, Surrey
    • Posts 1,454
    • Points 24,710
    Re: artwork film control Reply

    You can control the unused pads suppression from Setup>Unused Pads Suppression, check the options to suppress the pads as required.

    You can control the Artwork for planes through Setup>Cross-Section but you probably want to stick with positive.

    • Post Points: 20
  • Wed, May 8 2013 5:39 AM

    • seyerfred
    • Top 500 Contributor
    • Joined on Tue, Mar 12 2013
    • Posts 32
    • Points 765
    Re: artwork film control Reply

    im making a skill for set-up general parameters that can select either positive or negative plane will use in plot mode and to set suppress all inner layer. ihave this code and form that can select positive or negative but dont know how to call the checkbox..

     

     fprintf(Gerber_Tool_Form "FIELD cmdSetArtParam\nFLOC 3 24\nMENUBUTTON \"set-up general param\"2 4\nENDFIELD\n")

    fprintf(Gerber_Tool_Form "FIELD chknegative\nFLOC 3 27\nCHECKLIST\"negative_plane\"\nENDFIELD\n") 

    fprintf(Gerber_Tool_Form "FIELD chkpositive\nFLOC 3 29\nCHECKLIST\"positve_plane\"\nENDFIELD\n") 

     

     

    (defun initSetParamR74x () 

    axlUIWPrint(Form "Setup Artwork Param!") 

    (out = outfile("./initSetParamR74x.scr")) 

    fprintf(out "%s\n" "setwindow pcb")

    fprintf(out "%s\n" "trapsize 2435") 

    fprintf(out "%s\n" "film param") 

    fprintf(out "%s\n" "setwindow form.film_control") 

    fprintf(out "%s\n" "FORM film_control general_parameters") 

    fprintf(out "%s\n" "FORM film_control format_int_places 2")

    fprintf(out "%s\n" "FORM film_control format_dec_places 5") 

    fprintf(out "%s\n" "FORM film_control gerber_rs274x YES") 

    fprintf(out "%s\n" "setwindow form.film_control")

    if((deviceType == "1") then 

       fprintf(out "%s\n" "setwindow form.film_control positive YES") else 

       fprintf(out "%s\n" "setwindow form.film_control negative YES")

    fprintf(out "%s\n" "FORM film_control ok") 

    close(out)

    axlShell("replay  initSetParamR74x.scr")

        )

     

    • Post Points: 20
  • Wed, May 8 2013 8:54 AM

    • aCraig
    • Top 50 Contributor
    • Joined on Sat, Aug 16 2008
    • Pepperell, MA
    • Posts 132
    • Points 2,070
    Re: artwork film control Reply

    It sounds like you need to write a Call Back Function for your form. There you can save the selection to use in your main function.

    Craig

    • Post Points: 20
  • Wed, May 8 2013 9:37 AM

    • seyerfred
    • Top 500 Contributor
    • Joined on Tue, Mar 12 2013
    • Posts 32
    • Points 765
    Re: artwork film control Reply

    yes thats right, but how? i also add this cmd

    ("cmdSetArtParam" 

    axlFormSetField(Gerber_Tool_Form "colSetArtParam" 

       'green

    )

    (setup_art_param)

    ("chknegative" 

    (negative_plane_selected = (Gerber_Tool_Form->curValue))

       )

    ("chkpositive" 

    (positive_plane_selected = (Gerber_Tool_Form->curValue))

       ) 

     please help.. thank you 

    • Post Points: 20
  • Wed, May 8 2013 10:27 AM

    • aCraig
    • Top 50 Contributor
    • Joined on Sat, Aug 16 2008
    • Pepperell, MA
    • Posts 132
    • Points 2,070
    Re: artwork film control Reply

    Take a look at the example form code at <allegro_install_dir>/share/pcb/form/basic

    Craig

    • Post Points: 5
Page 1 of 1 (6 items)
Sort Posts:
Started by seyerfred at 07 May 2013 06:17 AM. Topic has 5 replies.