Skip to main content

Hello to all,

I read the topic about : “how to ignore Surface in API”. I tried to do something similar for non-sequential object but it is not working. 

        surf4 = TheSystem.NCE.GetObjectAt(4)

        surf4.TypeData.IgnoreObjects = 1

First TypeData.IgnoreObjects want a string but I don’t know what to write. 

Thank you very much in advance fir your answer. 

Clotilde 

Hi Clotilde,

Try using:  surf4.TypeData.RaysIgnoreObject = ZOSAPI.Editors.NCE.RaysIgnoreObjectType.Always;

 

 

Regards,

Jeff


Hi Jeff, 

Thank you very much for your answer !! 

It is working :) 

Regards, 

Clotilde 


Can someone confirm that the right-click “Consider and Show object” and “Ignore and Hide Object” are just shortcuts to the object’s Type data “Rays Ignore Object” and Draw data “Do not draw object” ?


@mocquin 

 

I am quite sure that it is (at least that’s my working hypothesis). Do you have a reason to believe otherwise?

Take care,

 

David


Reply