0

I have searched for Linq in Inventor API. but, found nothing. can anyone share the learning link or syntax for it. that would be great

I can implement Linq in Revit API not unable to implement in Inventor API

1 Answer 1

0

You can use LINQ in standard way in Inventor API

This is a sample how to select planar faces from SurfaceBody

Face[] PlanarFaces(SurfaceBody body)
{
    var planarFaces = body.Faces.OfType<Face>().Where(f=> f.SurfaceType == SurfaceTypeEnum.kPlaneSurface).ToArray();
    return planarFaces;
}
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.