| Author |
Message |
SW Monkey
Guest
|
Posted:
Tue Nov 22, 2005 9:10 pm Post subject:
Is this possible, area of a sheetmetal part (square area) |
|
|
I know that if you click on a face, and use the measure tool,
SolidWorks will give you the area of that face. If the part has a hole
or multiple holes in, this area isnt calcualted. What I need though is
the square area of the part. In the example image below, the hole in
the center would most likely be scrapped, unless someone nested a small
part in that area (which doesnt happen much here).
Is there a way to get this value automatically? Macro maybe?
http://img.photobucket.com/albums/v154/3eleven/SolidWorks/sheetmetal.jpg
|
|
| Back to top |
|
 |
Jerry Steiger
Guest
|
Posted:
Tue Nov 22, 2005 9:10 pm Post subject:
Re: Is this possible, area of a sheetmetal part (square area |
|
|
"SW Monkey" <google311.50.spydermonkey@spamgourmet.com> wrote in message
news:1132680038.619004.120060@g44g2000cwa.googlegroups.com...
| Quote: | I know that if you click on a face, and use the measure tool,
SolidWorks will give you the area of that face. If the part has a hole
or multiple holes in, this area isnt calcualted. What I need though is
the square area of the part. In the example image below, the hole in
the center would most likely be scrapped, unless someone nested a small
part in that area (which doesnt happen much here).
Is there a way to get this value automatically? Macro maybe?
|
This isn't automatic, but you could offset a surface from the part (offset
0), then delete the hole or holes in the surface, then measure the area of
the surface.
Jerry Steiger
Tripod Data Systems
"take the garbage out, dear" |
|
| Back to top |
|
 |
Brian
Guest
|
Posted:
Wed Nov 23, 2005 1:10 am Post subject:
Re: Is this possible, area of a sheetmetal part (square area |
|
|
You might try this. Preconditions are in a part, a face pre-selected.
It should insert a sketch on the face, convert edges, then create a planer
surface, and exit the sketch. That should give you a surface, without any
holes, that you can use the measure tool on. Insert this below the standard
header info of a macro. Written for 2006.
Sub main()
Set swApp = Application.SldWorks
Set Part = swApp.ActiveDoc
Set SelMgr = Part.SelectionManager
Part.InsertSketch2 True
boolstatus = Part.SketchUseEdge2(False)
Part.InsertPlanarRefSurface
Part.ClearSelection2 True
End Sub
"Jerry Steiger" <jerrys@tdsway.garbage.com> wrote in message
news:3uhdbaF10qq81U1@individual.net...
| Quote: | "SW Monkey" <google311.50.spydermonkey@spamgourmet.com> wrote in message
news:1132680038.619004.120060@g44g2000cwa.googlegroups.com...
I know that if you click on a face, and use the measure tool,
SolidWorks will give you the area of that face. If the part has a hole
or multiple holes in, this area isnt calcualted. What I need though is
the square area of the part. In the example image below, the hole in
the center would most likely be scrapped, unless someone nested a small
part in that area (which doesnt happen much here).
Is there a way to get this value automatically? Macro maybe?
This isn't automatic, but you could offset a surface from the part (offset
0), then delete the hole or holes in the surface, then measure the area of
the surface.
Jerry Steiger
Tripod Data Systems
"take the garbage out, dear"
|
----== Posted via Newsfeeds.Com - Unlimited-Unrestricted-Secure Usenet News==----
http://www.newsfeeds.com The #1 Newsgroup Service in the World! 120,000+ Newsgroups
----= East and West-Coast Server Farms - Total Privacy via Encryption =----
|
|
| Back to top |
|
 |
SW Monkey
Guest
|
Posted:
Mon Nov 28, 2005 5:10 pm Post subject:
Re: Is this possible, area of a sheetmetal part (square area |
|
|
Thanks Brian for that macro. Im going to try and add to it where it
automatically spits out the surface area and then deletes the feature
created. |
|
| Back to top |
|
 |
|
|
|
|