Sub Test() Dim shp1 As Shape, shp2 As Shape Set shp1 = ActiveLayer.CreateRectangle2(0, 0, 100, 50) Set shp2 = ActiveLayer.CreateLinearDimension(cdrDimensionHorizontal, _ shp1.SnapPoints(1), shp1.SnapPoints(3)) shp2.Dimension.Linear.Units = cdrDimensionUnitMillimetersEnd Sub