The attached macro creates just the outline or silhoutte edge boundary from any Drawing View - Part, Assembly or Sheetmetal.
There are some rules and steps before using this macro:
1. Place the drawing view, preferably at a scale of 1:1, though not absolutely necessary.
2. Right click the view and 'Convert to 2D View'.
3. Right-click the view again and 'Draw in View'.
4. In the 'Draw in View' mode, draw a rectangle enclosing the view.
5. Hatch the space between the view and the rectangle.
6. SELECT the hatch fill.
7. Run the macro with the hatch fill selected.
8. Outline of the drawing view will be created at the "origin" of "Sheet 1", irrespective of the sheet of the original view.
The macro creates a boundary which is 90% correct and little more trimming of extra edges may be required. This is because the hatch fill touches outer edges of view that also extend inside the view.
The video below illustrates the process:
The macro is attached at the end of this post.
All requests and suggestions to improve or modify the workflow or outcome of the macro are welcome.
I am interested in this, but seem to be getting stuck on creating the fill. I keep getting an error message that reads: The fill operation was not successful. The geometry must form a closed area and be completely within the graphic window. Also, limiting the number of geometry elements in the view by zooming in around the area to be filled will increase success.
So far, I have tried to do this on a hydraulic cylinder, and a weldment of about 20 parts. Changing the fill spacing allowed the fill to work on the cylinder, but one of the components was crosshatched. Any suggestions on how to make sure the fill works correctly?
I had this macro lying with me for several years but was hesitating to publish it for the fear of a serious user - like you, Jason - giving it a shot and eventually running into problems like the fill command simply giving up. This automatically puts a question mark on my humble macro - though I understand you did not meant to - which comes into action only after the fill is in place.
Recently some time Solid Edge started supporting the Esc key which will at least allow canceling out the hatch fill if it takes too long.
But changing the spacing to make the hatch/fill work is a nice trick, I am going to try it out first thing tomorrow.
I also don't understand if the Inspect - Area- Evaluate command works very well, the fill does not. Why ?
Jason, your tip about increasing the spacing for a successful fill is working.
In spite of all clean up on a drawing view, some times the view itself is all wrongly created. I noticed wide open gaps in drawing views in a simple 10 parts sample assembly that comes with Solid Edge. No amount of clean up or anything else is going to fill in here: