...continued from part 2
The following two lines then copy the image contents to the Windows clipboard:
The Clipboard class comes from the System.Windows.Forms namespace.
The task is accomplished !!
Finally, inform the user that the view is on the clipboard and ask if the temporary JPEG needs to be viewed:
The model view is on clipboard too. Just paste it in your favorite image program.
To run this program from within Solid Edge, locate a good location for a button on the ribbon like this Clip group on the View tab:
1. Right click on the Set Planes button and select Customize the Ribbon..
2. In the customize dialog, from the right-side tree view, expand View > Clip and select the On button node as shown below:
3. From the list that says 'Choose commands from:', select Macros as shown below:
4. At the bottom of the Customize dialog, click the Browse... button and pick the location where you placed the exe file downloaded from link down below on this page.
5. Pick the .exe file again from the list and click the Add>> button.
This adds the SESCapture.exe just below the On button.
6. On clicking the Add>> button, a dialog is displayed to pick an icon for the button if you are on SE ST 4 or below.
7. Click the Browse... button and pick the icon file for the button. You can copy this image by right clicking on it and Save As... etc. according to your browser - you know best how to.
8. For SE ST 6 and above, simply place.the blue camera image in the same folder as the exe and further both exe and the image file should have the same file names. Solid Edge is smart enough to pick the image as the button icon.
9. While still in the Customize dialog, right-click the button node in the tree on the right side where it was added several times and and set the options to No Text, Large button and finally rename it to Capture or something more appropriate as below:
10. You may need to add it to all environments viz. Part, Assembly and Sheetmetal.
This utility does not work in Solid Edge Draft.
Capture Screen is part of the Solid Edge Maker Faire. The other programming tutorials in this series are:
Index of all Solid Edge Tips, Tutorials and Videos...
The following two lines then copy the image contents to the Windows clipboard:
The Clipboard class comes from the System.Windows.Forms namespace.
The task is accomplished !!
Finally, inform the user that the view is on the clipboard and ask if the temporary JPEG needs to be viewed:
The model view is on clipboard too. Just paste it in your favorite image program.
To run this program from within Solid Edge, locate a good location for a button on the ribbon like this Clip group on the View tab:
1. Right click on the Set Planes button and select Customize the Ribbon..
2. In the customize dialog, from the right-side tree view, expand View > Clip and select the On button node as shown below:
3. From the list that says 'Choose commands from:', select Macros as shown below:
4. At the bottom of the Customize dialog, click the Browse... button and pick the location where you placed the exe file downloaded from link down below on this page.
5. Pick the .exe file again from the list and click the Add>> button.
This adds the SESCapture.exe just below the On button.
6. On clicking the Add>> button, a dialog is displayed to pick an icon for the button if you are on SE ST 4 or below.
7. Click the Browse... button and pick the icon file for the button. You can copy this image by right clicking on it and Save As... etc. according to your browser - you know best how to.
8. For SE ST 6 and above, simply place.the blue camera image in the same folder as the exe and further both exe and the image file should have the same file names. Solid Edge is smart enough to pick the image as the button icon.
For SE ST 6+, just place the .EXE and .PNG (or .BMP) in the same folders and both must have same file names. |
9. While still in the Customize dialog, right-click the button node in the tree on the right side where it was added several times and and set the options to No Text, Large button and finally rename it to Capture or something more appropriate as below:
10. You may need to add it to all environments viz. Part, Assembly and Sheetmetal.
This utility does not work in Solid Edge Draft.
Download the source code files for the Solid Edge Capture Screen utility from here. |
Click here to join the Solid Edge user's Facebook group Solid Edge knowledge sharing, tutorials, videos, tips, CAD cartoons, SE crosswords, puzzles, games, SE events, SE job opportunities. Keep yourself updated, contribute or just browse.Note: NOT necessary to share your profile or personal details to join this Facebook group nor be friends with the owner of the group. |
Capture Screen is part of the Solid Edge Maker Faire. The other programming tutorials in this series are:
• Making of Match Properties for Solid Edge
• Making of Purge Variables for Solid Edge
• Making of Rectangle Centerlines for Solid Edge
• Making of 'Pack and Go' for Solid Edge
Index of all Solid Edge Tips, Tutorials and Videos...
No comments:
Post a Comment