AnsweredAssumed Answered

Select Sketch Line by ID and Change Length (VBA)

Question asked by Diarmaid Toomey on Dec 18, 2020
Latest reply on Dec 20, 2020 by Amen Allah Jlili

Hi, hoping someone can help me out with this.


I want to be able to set the ID / Tag of a sketch line on a Sheet Format (I will need to set the same ID for the equivalent line on multiple sheet formats).


I then need another macro to be able to select the line using the ID and change it's length.


I have been able to add tags to notes previously using this: Add Tag to selected note using SOLIDWORKS API ( and then update the notes using a version of this: Macro feature to increment the numeric value in the note via SOLIDWORKS API (  I want to be able to do the same for a line on a template / sheet format but can't seem to get it to work.


It would be great if anyone could help on either setting an ID for a line or changing the length of a line using its ID, I've exhausted google at this stage.


Thanks in advance,