Dear all
I have two part in an assembly, name part 1,part2. Please see below fig.
now I want to cut part1 use part2 's intersurface. wipe off the part2's inter portion,marked with red circle.
How do I do? any help will be appreciated
cavity is good ,but it seems only cut part 1 use outsurface
now it seems cut -use surface can only deal it with. please give me some coad, How can i cut part1 use part2's intersurface Use APi
Thanks
zhengjun yuan

Zhengjun
Edit part 1.. Insert / surface / offset = 0.00.
Next: Insert / cut / with surface
Choose which side to keep by changing direction of cut.
Thats it. - part 1 cut with surface of part 2.
David Deaville
Thank david
this is deal with by manual , I can do it.
what I want to know is dealed with by API
zhengjun yuan
According to the API help file _AssemblyDoc:;InsertCavity4 method, the last parameter should allow you to pick which side to keep.
http://help.solidworks.com/2011/English/api/sldworksapi/SolidWorks.Interop.sldworks~SolidWorks.Interop.sldworks.IAssemblyDoc~InsertCavity4.html
I did some testing and it does not work. I suggest that you submit a SR to apisupportATsolidworks.com
I record a marco, insertcavity can do work
but it cut another part use one part's outsurface.
I want to cut part use one part's intersurface.
zhengjun yuan
Yes, I understand what you are saying. I am saying it is a bug in the API.
Until the bug is fixed, what you will have to do is delete the other body that is created by the cavity feature.