-
Re: Select all the edges on a face
Bjorn Hulman Mar 19, 2013 12:10 PM (in response to JD Sareault)right click on the edge and use select loop. You can change the loop by clicking the yellow arrow.
-
-
Re: Select all the edges on a face
Lenny Bucholz Mar 19, 2013 1:19 PM (in response to JD Sareault)YOU are SOL for this, it would select every edge and then you would have to try to deselect. Sorry.
the right mouse on the edge you want and select loop is the best, need to hold down the control to add to it for multiples.
have you thought about doing one of each and pattering them after the draft? or how about using multible bodies and make a hexpunch, pattern and then use the combine tool to subtract???
JD,
how new are you to SW, because there are about 3 ways, but hard to explain if your a newbie.
Message was edited by: Lenny Bucholz
-
Re: Select all the edges on a face
JD Sareault Mar 19, 2013 4:03 PM (in response to Lenny Bucholz)I've been using various solid modeling programs for about 5 years (casually using solidworks for about 4), and recently been using exclusively Solidworks for the last 3 months.
I actually made the feature with a patterned body, but I didn't want to draft the seed body because I need the through-holes to be normal to the surface so I would have to draft again anyways (the image isn't my actual part, but rather a quick representation of what I'm dealing with; I can't post the original because of company policy)
-
Re: Select all the edges on a face
Alin Vargatu Mar 20, 2013 10:36 AM (in response to JD Sareault)Can you post the part file, or a dumbed down version of it?
-
-
-
Re: Select all the edges on a face
Deepak Gupta Mar 20, 2013 10:45 AM (in response to JD Sareault)Can you try something like as in the attached video. Just put a normal view and then do the window selection.
-
Select Edges.avi 2.7 MB
-
-
-
-
-
Re: Select all the edges on a face
JD Sareault Mar 19, 2013 12:37 PM (in response to Lenny Bucholz)what do you mean by rubberband around the part?
-
Re: Select all the edges on a face
Lenny Bucholz Mar 19, 2013 12:40 PM (in response to JD Sareault)JD Sareault wrote:
what do you mean by rubberband around the part?
Sorry old guy term... window around from upper left to lower right holding down the left mouse button.
pick 2
-
-
Re: Select all the edges on a face
Kieran Choy Mar 19, 2013 11:52 PM (in response to Lenny Bucholz)This is probably the best approach - but there's a couple of things worth noting
- Crossing windows (i.e. right-to-left) is no different to left-to-right in this case (at least in 2013 SP0). The window has to completely surround the edge to select it.
- If an edge is hidden, it won't be selected (unless your tools > options say otherwise). This may be handy in your case - don't try selecting the edges with the view rotated like you have it above - make sure you are viewing normal to the drafting plane, and then try, and it should only select the edges closest to you (i.e. not the edges on the other face) AND should avoid selecting any of the internal vertical edges.
-
-
Re: Select all the edges on a face
Jacob Corder Mar 20, 2013 8:09 AM (in response to JD Sareault)When all else fails, create a macro. Get the selected face, and then you will have to loop in the code to select all edges. Quite simple actually. If interested I could help you with the code
-
Re: Select all the edges on a face
JD Sareault Mar 20, 2013 12:40 PM (in response to Jacob Corder)That might be my best bet. Where do I get started coding this? I've done a little programming before but I've never used macros in Solidworks
-
Re: Select all the edges on a face
Jacob Corder Mar 20, 2013 1:45 PM (in response to JD Sareault)Dim swApp As Object
Dim ModDoc As ModelDoc2
Dim boolstatus As Boolean
Dim longstatus As Long, longwarnings As Long
Sub main()
Set swApp = Application.SldWorks
Set ModDoc = swApp.ActiveDoc
Dim SelMgr As SelectionMgr
Dim EdgeCount As Integer
Dim Edges() As Edge
Dim SelFace As Face2
Dim SelData As SelectData
Dim SelectedCount As Integer
If ModDoc Is Nothing Then
Else
Set SelMgr = ModDoc.SelectionManager
If SelMgr.GetSelectedObjectCount2(-1) = 1 Then
Select Case SelMgr.GetSelectedObjectType3(1, -1)
Case swSelectType_e.swSelFACES
Set SelFace = SelMgr.GetSelectedObject6(1, -1)
If SelFace Is Nothing Then
Else
EdgeCount = SelFace.GetEdgeCount
Edges = SelFace.GetEdges
Set SelData = SelMgr.CreateSelectData
''If you only want edges and not the original face then uncomment this out
ModDoc.ClearSelection2 (True) ' This Clears the selected Face
SelectedCount = SelMgr.AddSelectionListObjects(Edges, SelData)
swApp.SendMsgToUser2 "There Were " & SelectedCount & " Edges Selected", _
swMessageBoxIcon_e.swMbInformation, swMessageBoxBtn_e.swMbOk
End If
End Select
End If
End If
End Sub
-
Re: Select all the edges on a face
JD Sareault Mar 20, 2013 2:04 PM (in response to Jacob Corder)this works perfectly! thank you!
-
-
Re: Select all the edges on a face
Jacob Corder Mar 20, 2013 1:50 PM (in response to JD Sareault)Also we can filter the types of edges using curve objects. just create a new macro, and paste this in. if you dont want the face still selected then leave it as is, if you want the face still selected comment out or use a ' in front of the ModDoc.ClearSelection2.
If you need this to go into a feature type form we can do that to. i just need to know that form. i think you said draft. or select the face, run this macro, then hit the feature.
have you used macro buttons?
if not right click the command mananger, select customize, select the commands tab, select macro under categories, then the icon to the farthest right is a macro button that you can drag into any command mananger tab and link it to a macro.
-
-


