Showing results for 
Search instead for 
Do you mean 
Reply
Solved! Go to solution

Obtaining DatumPlane from WaveDatum

Hello everyone!

I have a code that works well for me

foreach (Feature feature in workPart.Features)
{
    if (feature.FeatureType.Equals("DATUM_PLANE"))
    {
        DatumPlaneFeature datumPlaneFeature = (DatumPlaneFeature)feature;
        DatumPlane datumPlane = datumPlaneFeature.DatumPlane;
    }
}

But now I need to work with linked Datum planes and therefore feature type is WaveDatum. It does not work anymore - cannot convert from WaveDatum to DatumPlaneFeature. I'm quite stuck here. How do I obtain DatumPlane from WaveDatum???

2 REPLIES
Solution
Solution
Accepted by topic author Scaffold
‎09-06-2016 10:30 AM

Re: Obtaining DatumPlane from WaveDatum

You can use the wave datum's .GetEntities method to get the datum plane.

Re: Obtaining DatumPlane from WaveDatum

It has already dawned on me after I posted this quiestion. Thanks anyway!