Hi All:
I want to use CreateFeatureFromBody3 in the assembly.
1.Select component
2.Go to edit mode: AssemblyDoc::EditPart2.
3.PartDoc.CreateFeatureFromBody3
Solid origin is the part of the originI, would like to place the assembly!
????????
--------------------
code:
Dim myFeature As Feature = AssDoc.FeatureByName("MoldCutRef-1")
myFeature.Select2(False, 1)
AssDoc.EditPart2(True, False, 0)
Dim prtDoc As PartDoc = AssDoc.GetEditTarget
..............
prtDoc.CreateFeatureFromBody3(myBody, False, swCreateFeatureBodyOpts_e.swCreateFeatureBodyCheck + swCreateFeatureBodyOpts_e.swCreateFeatureBodySimplify)
---------------------------
Thank you
SolidworksApi macros