ds-blue-logo
Preview  |  SOLIDWORKS USER FORUM
Use your SOLIDWORKS ID or 3DEXPERIENCE ID to log in.
JBJake Brandeluftka17/03/2024

Hello guys, 

when i run this macro i get an error: Failed to find root component. anybody has an idea what could be wrong? Thank you very much.

Option Explicit Sub SortBossExtrudesToCoreFolder() Dim swApp As SldWorks.SldWorks Dim swModel As SldWorks.ModelDoc2 Dim swFeat As SldWorks.Feature Dim swFolder As SldWorks.Feature Dim swRootComp As SldWorks.Component2 ' Get the active SOLIDWORKS application