Skip to main content
Solved

How to ignore Object in API ?


clo
  • Monochrome
  • 6 replies

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 

Best answer by Jeff.Wilde

Hi Clotilde,

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

 

 

Regards,

Jeff

View original
Did this topic help you find an answer to your question?

4 replies

David.Nguyen
Luminary
Forum|alt.badge.img+2

@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


mocquin
Ultraviolet
  • Ultraviolet
  • 35 replies
  • March 3, 2025

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” ?


clo
  • Author
  • Monochrome
  • 6 replies
  • January 10, 2023

Hi Jeff, 

Thank you very much for your answer !! 

It is working :) 

Regards, 

Clotilde 


Jeff.Wilde
Luminary
Forum|alt.badge.img+3
  • Luminary
  • 510 replies
  • Answer
  • January 9, 2023

Hi Clotilde,

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

 

 

Regards,

Jeff


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings