Insert Component Patern Feature Driven
Insert Component Patern Feature Driven
(OP)
I have been using feature driven patterns in my assembly for many repeat hardware components with great success. But then I download another component from Mcmaster, inserted it and mate it, then I do Insert Component Patern / Feature Driven, and it misaligns to the feature pattern. In this case the component is a spring pin and the features are 10-32 tapped holes put in with the hole wizard.
Maybe feature driven components don't like hole wizard tapped holes!!
any thoughts
Maybe feature driven components don't like hole wizard tapped holes!!
any thoughts
Tom Malinski
Sr Design Engineer
OKay Industries
New Britain CT






RE: Insert Component Patern Feature Driven
Are you mating the seed component to the seed Hole Wizard hole?
RE: Insert Component Patern Feature Driven
Tom
Tom Malinski
Sr Design Engineer
OKay Industries
New Britain CT
RE: Insert Component Patern Feature Driven
Tom Malinski
Sr Design Engineer
OKay Industries
New Britain CT
RE: Insert Component Patern Feature Driven
CODE
Dim swApp As SldWorks.SldWorks
Dim SelMgr As SldWorks.SelectionMgr
Dim swDoc As SldWorks.ModelDoc2
Dim SelType As SwConst.swSelectType_e
Dim sMsg As String
Dim i As Long
Dim fSelFeature As SldWorks.Feature
Dim myHwFeature As SldWorks.Feature
Dim FaceArray As Variant
Dim EdgeArray As Variant
Const MINSELECTIONS = 1
Set swApp = Application.SldWorks
Set swDoc = swApp.ActiveDoc
Set SelMgr = swDoc.SelectionManager
If SelMgr.GetSelectedObjectCount2(-1) > 1 Then
MsgBox "Please select one Wizard hole"
swDoc.ClearSelection2 True
End If
If SelMgr.GetSelectedObjectCount2(-1) < 1 Then
While SelMgr.GetSelectedObjectCount2(-1) < 1
DoEvents 'Wait
Wend
End If
If SelMgr.GetSelectedObjectType3(1, -1) = swSelBODYFEATURES Then
Set fSelFeature = SelMgr.GetSelectedObject6(1, -1)
ElseIf SelMgr.GetSelectedObjectType3(1, -1) = swSelFACES Then
Set fSelFeature = SelMgr.GetSelectedObject6(1, -1).GetFeature
Else
MsgBox "Select a hole wizard feature to use this function"
Exit Sub
End If
If fSelFeature.GetTypeName <> "HoleWzd" Then
MsgBox "Feature is not hole wizard"
Exit Sub
End If
FaceArray = fSelFeature.GetFaces
'select the first face in the array. It's probably the first hole.
FaceArray(0).Select False
EdgeArray = FaceArray(0).GetEdges
For i = 0 To UBound(EdgeArray)
EdgeArray(i).Select True
Next i
'swDoc.ViewZoomToSelection
End Sub
RE: Insert Component Patern Feature Driven
Tom Malinski
Sr Design Engineer
OKay Industries
New Britain CT
RE: Insert Component Patern Feature Driven
Just double click on the hole wizard feature in the feature tree. The hole location that has all the dimensions that define the hole feature is your seed hole.
I use the hole wizard a lot for the tools we design. I am in the habit now of placing the first hole wizard point in the upper left corner of my sketch, then adding points from there. That way when I go to add the feature driven patterns I know where to generally look for the seed hole.
Regards,
Anna Wood
SW07 SP2.1, WinXP
Dell Precision 380, Pentium D940, 4 Gigs RAM, FX3450
WD Raptors, 1 Gb network connection
http://designsmarter.typepad.com/solidmuse
RE: Insert Component Patern Feature Driven
RE: Insert Component Patern Feature Driven
Matt
CAD Engineer/ECN Analyst
Silicon Valley, CA
http://sw.fcsuper.com/index.php
RE: Insert Component Patern Feature Driven
RE: Insert Component Patern Feature Driven
Matt
CAD Engineer/ECN Analyst
Silicon Valley, CA
http://sw.fcsuper.com/index.php
RE: Insert Component Patern Feature Driven
Consider this an open invitation to put any code I've posted here on your website. Just include a plug for Eng-Tips!
RE: Insert Component Patern Feature Driven
fcsuper, I have never had to much trouble distinguishing the seed hole when I clicked on the hole wizard feature. Granted I may not be able to read the depth and OD dimensions. Don't need to.... I am just looking for the hole with the more dimensions then all the rest.
Just what I have gotten used to over the last few years....
Regards,
Anna Wood
SW07 SP2.1, WinXP
Dell Precision 380, Pentium D940, 4 Gigs RAM, FX3450
WD Raptors, 1 Gb network connection
http://designsmarter.typepad.com/solidmuse