- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello Autodesk, I am reporting a bug in Inventor:
Calling SurfaceBody.IsEntityValid() from VBA succeeds.
Calling SurfaceBody.IsEntityValid() from C# fails.
Both code samples below are run on the same Part file, and the same version of Inventor Professional 2020.
Here is the VBA code which works:
You can see from the Immediate window that all properties report correctly for the two solids in the model; 'Solid9' and 'Solid19'.
Now the same properties are requested via C# code below which fails:
Note that you can see both in the Console window and in VS lines 44, 45 and 46 that Surface Body 'Solid9' was able to return the properties .IsSolid, .Visible and .IsTransient, but fails with a COM exception for the method .IsEntityValid().
For your inspection and to reproduce the behaviour I have attached the part file used in this demo.
Please can you advise of a workaround or a fix ?
Best regards
Dan
Atkins Consultants Ltd UK
+19,000 staff (M&E, Civils, Structural, Geotechnical, Environmental and more)
Solved! Go to Solution.