I want to create a macro which will check whether a point is inside or outside of a selected bodies of a Assembly document? Please can anyone help me.
How to determine whether a point is inside a body by using Solidworks api?
But this is not working for a Assembly document. There is a error on "Type mismatch". Please check it.
When the swPart is changes to a AssemblyDoc it gives an error saying "object doesn't support this property or method". I think there is a error with vBodies object. Please help me to fix it.
please look at 2013 SOLIDWORKS API Help - Get Bodies in Components Example (VBA)
For assembly it has to be combination of those two macros.
Retrieving data ...