I work on application (C#) repairing broken links. For sketches the task is quite easy - we can use following line refering to particular sketch in "source" file.
Sketch sketch1 = (Sketch)component1.FindObject("PARTIAL_PROTO#.Sket
However in case of datums Journal suggests to use something like that:
DatumPlane datumPlane1 = (DatumPlane)component1.FindObject("PARTIAL_PROTO#H
I wish to use datum's name like "centerplane" intead of R-1116818.
Is it possible to do so? I tried to use approach working for sketches (PARTIAL_PROTO#.Sketches|centerplane) , but it doesn’t work.
The part object has a .Datums collection that you can iterate through looking for one with a specific name. This would be one way to find a specific datum plane.