It looks like you're new here. If you want to get involved, click one of these buttons!
Hi Thomas,
what do you mean by "shape coordinates"?
Like the polygon points:
shape.polygon.each_point_hull { |p| ... }
Or the bounding box center:
shape.bbox.center
Matthias
that's a DRC function. You need to use it in the context of a DRC script.
So you need to create a DRC script (Tools/DRC/New DRC Script) and use a script like this:
puts input(1, 0).area
This will print the area in square micrometers in the console.
Comments
Hi Thomas,
what do you mean by "shape coordinates"?
Like the polygon points:
Or the bounding box center:
Matthias
I just want the function "Compute Layer Area" from Tools
I found this : input(1, 0).area
but it does not work.
Thomas
Hi Thomas,
that's a DRC function. You need to use it in the context of a DRC script.
So you need to create a DRC script (Tools/DRC/New DRC Script) and use a script like this:
This will print the area in square micrometers in the console.
Matthias