I take the liberty of asking for your help with a surface problem on Catia.
I want to create the closest point of one surface to another. I know how to do this with the help of the measurement tool, but unfortunately this solution is not compatible with the "Power Copy".
Hello this may be useful to you, I got around the fact that you can't select a measurement in a PowerCopy by a length user parameter associated with a formula (Measure / Distance between two geometry).
Settings and formulas are compatible with Power Copies.
Will your copy have to be rebuilt on all types of surfaces? planar of any kind, parallel, opposite or very far away?
If it should work every time (forget it) it seems easier to ask the user to create this point with the measurement tool and then complete the construction with your PowerCopy using this point as input (with a point naming rule it's even automatic).
I say all this because you could have for example integrated two points (Isolated) in contact stress each on a surface, then a distance constraint between these two points and then a formula retrieving for the value of this constraint the result of the previous (mini) measurement.
Unfortunately, the contact constraint is not limited to the surface (in the case of a flat surface), the point is actually in contact with an infinite plane confused with the flat surface. This means that it can be moved out of the box.
I'm not a macro specialist but the CATIA macro recorder doesn't record anything when ordering the measurement with the creation of the geometry so it's also badly engaged.