Change dimensions of an element but symmetrically

Hello,

I’m trying to change the width of a volume family. I use “Element.SetParameterByName” and it changes the width of my element. But my problem is that the insertion point of my element is the center of gravity (the intersection of the 2 lines on the picture here below) and changing the width ( = “Largeur” on the printscreen) only reduces one side of the element. So my insertion point is not my center of gravity anymore. Do you know how to proceed to reduce my element from the both sides ?
Thank you ! :slight_smile:

You need a dimension that is an equality to constrain the object in both directions.

A bit late but thank you for your answer ! :slight_smile: