Hello.
The following script does not work as desired:

var json = api('getSource', {type: 'json'});
for (var i in json.FOOTPRINT) {
  if (json.FOOTPRINT.hasOwnProperty(i)) {
    for (var ii in json.FOOTPRINT[i].TEXT) {
      if (json.FOOTPRINT[i].TEXT.hasOwnProperty(ii)) {
        json.FOOTPRINT[i].TEXT[ii].strokeWidth = 0.6;
        json.FOOTPRINT[i].TEXT[ii].fontSize = 3.2;
      }
    }
  }
}
api('applySource', {source: json, createNew: true});

. The code is supposed to change the sizes of all of the footprint labels to `6 [mil]` width and `32 [mil]` height. However\, it appears that only the widths are changed; the heights aren't changed in the layout view\, despite that the value shown in the properties display window is changed to `32 [mil]`. In other words\, the heights changed only in the properties display window - but they didn't change in the displayed layout.

#Feature Requests#
#FeatureRequests#
Feature Requests

No comments yet. Be the first to comment!