I'm writing to you because despite my research I'm stuck on an automation project under Solidworks 2013.
I'm going to put the context back in place:
I created a macro that opens a UserForm in which the user enters various information. At validation, assembly, a rail system, this modifies by adapting its length. In fact, I take the length desired by the user and I incorporate a maximum of "standard" rails that have a fixed length. This leaves a final stretch that must be tailor-made.
I have in my assembly a "specific" piece of rail that is positioned in the right place and on which I would like to vary the length of the remaining value (which I know, and which is already linked to a variable).
I tried to do this in several ways:
Directly in the assembly by selecting ma_cote@ma_piece@mon_assemblage
By doing a part.editpart, then a modification and a part.editassembly
Do you have an idea of what to do or which order I should turn to? Or maybe it's impossible?