ds-blue-logo
Preview  |  SOLIDWORKS USER FORUM
Use your SOLIDWORKS ID or 3DEXPERIENCE ID to log in.
NJNathan Juergens07/01/2025

I am working on a macro to automatically color created hole wizard features. I have it working within individual parts, but i am having trouble getting it to work when editing a component within the context of an assembly. Any help would be appreciated.

Here is my current code. 

Dim WithEvents swApp As SldWorks.SldWorks
Dim swModel As SldWorks.ModelDoc2
Dim WithEvents swPart As SldWorks.PartDoc
Dim WithEvents