Open Program with a Picture

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Open Program with a Picture

    I am sure this has been asked but I can not seem to find it. How do I make a picture show up when I open the program?
    What I want is for a picture of the part to show up once I open a program so the operater will have some idea of what the part should look like once it on the fixture in right place.
    Also if it would be possible to have some instructions on how to set the part fixture up as they look at the picture.

    Thanks ahaed of time.

    3.5MR2
    B. Jacobs
    B&S Global 12.15.10
    2014.1

  • #2
    I don't know if you can have the picture open with the program. You can insert an external object that will open when it gets to that point in the program but the operator has to execute first.

    Comment


    • #3
      Lucky you are still on <4.0 so you have Hyper Reporting. I love it but I may be the only person here that does. Have you ever messed with it? PM me and maybe I can walk you through something, maybe even send a dummy program or code example and an example of a Hyper report that is simple and will do what you need.

      Craig
      <internet bumper sticker goes here>

      Comment


      • #4
        I'm inserting the set-up pictures right next to the set up instrutions or you can
        put instrutions in the picture too.You could have something like this.



        COMMENT/DOC,NO,$$
        ASSIGN/V1 = =C3.INPUT0
        C3 =COMMENT/INPUT,NO,'"Do you want to see set-up instrutions?
        ,.type in YES OR NO'
        IF/C3.INPUT=="YES"
        GOTO/L3
        END_IF/
        ELSE/
        GOTO/L4
        END_ELSE/
        L3 =LABEL/
        COMMENT/OPER,NO,USED 3MM X 20MM LONG STYLI
        COMMENT/OPER,NO,SET-UP OPPOSITE TO PRINT .040 FLAT PLANE AT ZPLUS & 2.95+.00/-.04 PLANE AT YMINUS!
        ,USE RAYCO FIXTURE WITH 3 7IN HEIGHT MAGNETS 1IN O.D TWO FRONT RIGHT BELOW .273 SLOTS ONE REAR EQUALLY SPACE
        ,PLACE PROBE AT CENTER OF .750 HOLE @ XPLUS TRIGGER A POINT THEN CONTINUE PRESS AUTO!
        ,MOUNT TEMPERATE SENSOR AT THE RIGHT HAND CORNER.
        insert picture picture here

        L4 =LABEL/
        POINT1 =FEAT/POINT,RECT
        THEO/32.4287,15.8432,-37.8039,1,0,0
        ACTL/31.5468,14.5047,-37.8144,0.6087195,0.7130679,-0.3478429
        MEAS/POINT,1
        HIT/BASIC,NORMAL,32.4287,15.8432,-37.8039,1,0,0,31.5468,14.5047,-37.8144,USE THEO = YES
        ENDMEAS/

        Comment


        • #5
          You should insert the external command to open the picture at the very start of the program. I include my instructions on the picture itself

          You can even insert a digital video file to play and show the setup if you want to. But to answer your question of opening a picture when you open the program, it could only be done using a visual basic GUI/Shell program that would open a picture before the program is ran.
          I used to be high on life but I built up a tolerance.

          Brown & Sharpe Global Advantage
          PCDMIS CAD++ v2011mr2
          PH10MQ/SP600M


          sigpic

          Comment


          • #6
            B. Jacobs,

            Just put this code in your program an your picture will come up automatically.

            EXTERNALCOMMAND/DISPLAY ; C:\PICTURES\kodakprv.exe C:\PICTURES\picture1.jpg
            note: I have all my pictures in a "PICTURES" directory. You will change this to yours. Also you will need "kodakprv.exe" file like this to run it. I use Kodak software to run mine. Yours may be different. It should be in your PCDmis directory, I think. Hope this helps. I do my programs more like Aguayo says w/ labeling. This way if I want to see I can, and if I don't I don't have too.
            PCDmis 3.5mr2 CAD++

            Comment


            • #7
              You can just call out a .BAT file which you create to open the picture.

              Create a .BAT file and put in there, "start <path to where your picture is>" without the quotes.

              This will tell windows to open the picture with whatever default program you use to open pictures. You can change that by going into a folder and into folder options then choosing the type of files to associate what program to use.

              Have fun.
              I used to be high on life but I built up a tolerance.

              Brown & Sharpe Global Advantage
              PCDMIS CAD++ v2011mr2
              PH10MQ/SP600M


              sigpic

              Comment


              • #8
                We are using bitmap files right in the program. Some I wish were pictures but for now the bitmaps work great.
                Xcel & MicroVal Pfx & Global 37mr4 thru 2012mr1sp3
                Contura Calypso 5.4

                Lord, keep Your arm around my shoulder and Your hand over my mouth. Amen.

                Comment


                • #9
                  Originally posted by B. Jacobs
                  I am sure this has been asked but I can not seem to find it. How do I make a picture show up when I open the program?
                  What I want is for a picture of the part to show up once I open a program so the operater will have some idea of what the part should look like once it on the fixture in right place.
                  Also if it would be possible to have some instructions on how to set the part fixture up as they look at the picture.

                  Thanks ahaed of time.

                  3.5MR2
                  In versions prior to v4.0, you can create and then insert custom HyperReports that will display setup instructions once the part program is executed.

                  In versions 4.0 and later, you can create and then insert custom Forms that will display setup instructions once the part program is executed.

                  If, however, you want to display instructions once the part is *opened* (but before it is executed), that's slightly more involved but not impossible.

                  To do this, you would need to have a separate process open up the part program. For example, using MS Excel and VBA, you can control the entire launching of PC-DMIS, opening of the part program, and then display of the setup instructions as part of an Excel form.

                  As an example, I've modified my programcreator.xls sheet from the Custom Script Repository and added the functionality to display a form of setup instructions once the part opens. See the attached.
                  Attached Files
                  Jared Hess - Techwriter @ WAI
                  [View 2008 Reporting Tutorials Here]

                  Comment


                  • #10
                    I have figured out how to insert an External Object. I have a Word Doc. that I am inserting. It opens when it gets to it and every this is great.
                    The problem I am having is I can not Unmark it so it will not show up.
                    I run alot of lot runs(100+parts) and only need it to show up at the begining or the first part.
                    Once I have it set-up I would like to unmark it show it will not show up again.
                    I have tried using a YES/NO command but that doesn't work.Here is what I have so far:


                    STARTUP =ALIGNMENT/START,RECALL:, LIST= YES
                    ALIGNMENT/END
                    MODE/MANUAL
                    LOADPROBE/4MMBY60MM
                    TIP/T1A0B0, SHANKIJK=0, 0, 1, ANGLE=0
                    FORMAT/TEXT, ,HEADINGS, , ;MEAS,NOM,TOL,DEV,OUTTOL, ,
                    C1 =COMMENT/YESNO,Would you like to view the
                    ,Set-Up instructions?
                    IF/C1.INPUT=="YES"
                    Picture & Instructions HERE
                    END_IF/
                    PLN1 =FEAT/PLANE,RECT
                    THEO/9.5135,12.7023,-24.165,0.0004247,0.0005048,0.9999998
                    ACTL/9.5135,12.7023,-24.165,0.0004247,0.0005048,0.9999998
                    MEAS/PLANE,3
                    HIT/BASIC,9.1652,15.5984,-24.1663,0.0004247,0.0005048,0.9999998,9.1652,15.59 84,-24.1663,USE THEO = YES
                    HIT/BASIC,9.1654,11.2541,-24.1641,0.0004247,0.0005048,0.9999998,9.1654,11.25 41,-24.1641,USE THEO = YES
                    HIT/BASIC,10.2098,11.2544,-24.1646,0.0004247,0.0005048,0.9999998,10.2098,11.2 544,-24.1646,USE THEO = YES
                    ENDMEAS/
                    LIN1 =FEAT/LINE,RECT,UNBND
                    THEO/10.3463,15.7306,-24.391,0.0003586,-0.9999999,0
                    ACTL/10.3463,15.7306,-24.391,0.0003586,-0.9999999,0
                    MEAS/LINE,2,WORKPLANE
                    HIT/BASIC,10.3463,15.7306,-24.391,0.9999999,0.0003586,0,10.3463,15.7306,-24.391,USE THEO = YES
                    HIT/BASIC,10.348,10.8916,-24.2394,0.9999999,0.0003586,0,10.348,10.8916,-24.2394,USE THEO = YES
                    ENDMEAS/
                    PNT1 =FEAT/POINT,RECT
                    THEO/10.2254,10.5052,-24.2394,0,-1,0
                    ACTL/10.2254,10.5052,-24.2394,0,-1,0
                    MEAS/POINT,1
                    HIT/BASIC,10.2254,10.5052,-24.2394,0,-1,0,10.2254,10.5052,-24.2394,USE THEO = YES
                    ENDMEAS/
                    MAN-ALN =ALIGNMENT/START,RECALL:, LIST= YES
                    ALIGNMENT/LEVEL,ZPLUS,PLN1
                    ALIGNMENT/ROTATE,YMINUS,TO,PNT1,ABOUT,ZPLUS
                    ALIGNMENT/TRANS,ZAXIS,PLN1
                    ALIGNMENT/TRANS,XAXIS,LIN1
                    ALIGNMENT/TRANS,YAXIS,PNT1
                    ALIGNMENT/END
                    MODE/DCC
                    B. Jacobs
                    B&S Global 12.15.10
                    2014.1

                    Comment


                    • #11
                      I believe you have to add a else if in there if they choose no.
                      I used to be high on life but I built up a tolerance.

                      Brown & Sharpe Global Advantage
                      PCDMIS CAD++ v2011mr2
                      PH10MQ/SP600M


                      sigpic

                      Comment


                      • #12
                        Originally posted by Underspec
                        I believe you have to add a else if in there if they choose no.
                        No does not need to be evaluated in this case. Yes needs to be evaluated. If there were a condition that required an evaluation of no I'd just put it in the If/End If, no need for an Else. With Boolean there can only be one of two possibilities so there is no need to evaluate more than one statement. In this case he needs to evaluate for "Yes" so he does. Remember this is linear not event driven so what is going on here is simply skipping over code.

                        Craig
                        <internet bumper sticker goes here>

                        Comment


                        • #13
                          Then try using the operator comment variable with labels, that either go to show or noshow
                          I used to be high on life but I built up a tolerance.

                          Brown & Sharpe Global Advantage
                          PCDMIS CAD++ v2011mr2
                          PH10MQ/SP600M


                          sigpic

                          Comment


                          • #14
                            Do you mean If/Goto or set a variable for a parameter? 6 of one half dozen of the other If/End If is the same without the label and slightly cleaner and less lines of code.
                            <internet bumper sticker goes here>

                            Comment


                            • #15
                              Craig,

                              Thanks for the help. I got it working great now.

                              YOU-DA-MAN.


                              (Sorry Matt)
                              B. Jacobs
                              B&S Global 12.15.10
                              2014.1

                              Comment

                              Related Topics

                              Collapse

                              Working...
                              X