codestack icon indicating copy to clipboard operation
codestack copied to clipboard

SolidWorks VBA Macro method to select edge in drawing view to annotate

Open StupidVillian opened this issue 11 months ago • 0 comments

I keep having to create similar drawings with the same annotations for different assemblies, mostly in size. I can't use configurations, because we have to keep them in separate files. I can't replace the model because these were built at various times over the last decade, and so internal IDs don't match anymore. I am now exploring the Macro way to do it. I am stumped at figuring out a way to select a specific predefined edge or feature of a component in the assembly visible in a drawing view and then insert an annotation onto it. I found several examples online to insert annotation on an edge already selected by a user using the selection manager. Can somebody let me know whether it is possible to do it? If yes could you help me with an example? Thanks

StupidVillian avatar Jan 15 '25 00:01 StupidVillian