Skip to main content

I’m still new to the API and having trouble getting and setting the “Ignore this surface” via the API.

I’m working in Matlab and trying:

TheLDE.GetSurfaceAt(4).GetSurfaceTypeSettings(ZOSAPI.Editors.LDE.ILDETypeData.IgnoreSurface)

but get the error:

The property 'IgnoreSurface' in class 'ZOSAPI.Editors.LDE.ILDETypeData' must be accessed from a class instance because it is not a Constant property. 

Can someone point me in the right direction?

Thank you,

John

Try this to flip the IgnoreSurface switch from Off (0) to On (1) :

surf4 = TheSystem.LDE.GetSurfaceAt(4);
surf4.TypeData.IgnoreSurface = 1;

Then you can see the results:

 


Excellent, this works. Thank you Jeff.


Hi, I would like to do the same but in non sequential mode. 

I tried this lines but it’s not working : 

        surf4 = TheSystem.NCE.GetObjectAt(4)

        surf4.TypeData.IgnoreObjects = 1

Do you know why and what I can do ? 

Thank you very much. 


See response here:

 


Reply