[Me...] Posted July 26, 2018 Share Posted July 26, 2018 Hi everyone! I wondered if anyone could offer information as to how to go about capturing a screenshot during a program on the Zeiss O-Inspect? The Zeiss trainer who showed us Optics and Curve wasnt too sure about his methods of doing this at the time and now my company would like to start using this feature. Any help or tips would be greatly appreciated! Exactly what I need... Create a program that can run like any other program but can also take a screen capture of a specific feature at a specific moment during the program. Thanks! π Link to comment Share on other sites More sharing options...
[No...] Posted July 27, 2018 Share Posted July 27, 2018 I just checked the old forum to confirm that I remember this correctly: The PCM command saveViewToFile() should be able to do this and I clearly remember that I've used it once back then and it worked. Well, a minute ago I tried it again in Calypso 2017 and it didn't work for me anymore. All I got was a white picture. π Link to comment Share on other sites More sharing options...
[La...] Posted July 30, 2018 Share Posted July 30, 2018 I would really like to know if this is a possibility - we have a customer who is looking to accomplish this also. Link to comment Share on other sites More sharing options...
[No...] Posted July 31, 2018 Share Posted July 31, 2018 The information in the old forum came from Zeiss. But it probably wasn't official, since the description of that command says nothing about capturing video images. Here's the link: https://academy.imt.zeiss.com/Software/ ... ery_start= Link to comment Share on other sites More sharing options...
[Me...] Posted July 31, 2018 Author Share Posted July 31, 2018 Here is what I got after a call with Zeiss support. I gave it a shot but cannot seem to find where the images are saved if in fact it is capturing an image. It does seem like it is doing something as the screen flashes multiple times, just not sure where it is putting them. 1. Open the measured feature that follows in a CNC run 2. Click Comment 3. In the comment area, right-click and click formula. saveViewToFile(dateInNumbers()+" "+getRecordHead("planid")+" image "+getRecordHead("partnbinc")+".jpg","c:\temp\"+dateInNumbers()+" "+getRecordHead("planid")+" image "+getRecordHead("partnbinc")+".jpg") 4. Paste that phrase into the formula. 5. It will give you a warning about the formula not matching the βtextβ type. Just press yes. 6. Run it, and it will take a picture of the last camera shot of the previous feature. For instance, I want a picture of Circle1. Circle2 is the next feature. I put the phrase in the comment of Circle1. If you want every photo of Circle1 saved, letβs say there are 4 circles which match quadrants: the only way I know how to do it would be to use 4 individual arc segments and recall feature points into Circle4. The viscan images would have to be in the postsettings of the recalled quadrant circles, or the comment of the following feature, a la the βNo PCMβ trick. Link to comment Share on other sites More sharing options...
[No...] Posted August 1, 2018 Share Posted August 1, 2018 Please sign in to view this quote. I'd start looking there for the files π What I don't understand is why this command seems to need the image name as the first parameter and the save path PLUS the image name again as the second parameter. At least this is what the syntax description in the old forum said too. Maybe I'll try that out if I have some time left this week. Link to comment Share on other sites More sharing options...
[No...] Posted August 1, 2018 Share Posted August 1, 2018 Ok, I just tested the saveViewToFile command on our O-Inspect. Result: Capturing video images works in Calypso 2016, but not anymore in 2017! Calypso 2017 deliberately disables the camera view before it saves the (CAD) image. Link to comment Share on other sites More sharing options...
[Je...] Posted November 21, 2023 Share Posted November 21, 2023 Hello. New to Calypso and have been trying to capture an image using the formula provided in this thread. I have the 2022 version and it appears to only capture the cad view, not an actual image. Is there a way to capture the picture or has this been totally eliminated from Calypso? Thanks in advance! Link to comment Share on other sites More sharing options...
[No...] Posted November 24, 2023 Share Posted November 24, 2023 Please sign in to view this quote. The latter (if you refer to the PCM command) But you can always save an image from the Extras menu. Update: Here's some PCM code to save the camera image: executeCode("Zeiss.Basics.OpticalExternals new IpSaveImage: 'C:\test.png'") Note that this will only save the pure camera image, NOT any CAD elements. Link to comment Share on other sites More sharing options...
[No...] Posted November 27, 2023 Share Posted November 27, 2023 Update #2: This one should save the whole CAD view, camera image plus CAD elements. It basically saves a snapshot of the CAD window, like the corresponding item in the CAD menu does. executeCode("Zeiss.Calypso.Acis copyToClipboard") executeCode("Zeiss.Calypso.Acis saveToMiba: 'C:\test.jpg'") Link to comment Share on other sites More sharing options...
[Ma...] Posted November 27, 2023 Share Posted November 27, 2023 Please sign in to view this quote. One of the worst thing Calypso do / is programmed - using a Windows clipboard - you can not do any work while CAD views are calculating and reporting. π‘ π‘ π‘ Link to comment Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in