how to find DOFS of a part in assembly

hi,guys.

           Rember "GetRemainingDOFS"? is it avalable?

SolidworksApi macros
Answers 2
ST
ST 2013-10-25 Best Answer

Never used it, but it still seems to be there:

Function GetRemainingDOFs(ByRef Rpoint1_status As Integer, ByRef Rpoint1 As SolidWorks.Interop.sldworks.MathPoint, ByRef Rdirection1_status As Integer, ByRef Rdirection1 As SolidWorks.Interop.sldworks.MathVector, ByRef Rpoint2_status As Integer, ByRef Rpoint2 As SolidWorks.Interop.sldworks.MathPoint, ByRef Rdirection2_status As Integer, ByRef Rdirection2 As SolidWorks.Interop.sldworks.MathVector, ByRef Tdirection1_status As Integer, ByRef Tdirection1 As SolidWorks.Interop.sldworks.MathVector, ByRef Tdirection2_status As Integer, ByRef Tdirection2 As SolidWorks.Interop.sldworks.MathVector) As Integer

     Member of SolidWorks.Interop.sldworks.IComponent2

Not sure if it still works or not though.

SF
SF 2013-10-28

thank you very much !  ....... this API has  so many parameters that i would not use it ! is there a way to get the DOFs ?