Solved

How to ignore Object in API ?

  • 9 January 2023
  • 2 replies
  • 139 views

  • 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 

icon

Best answer by Jeff.Wilde 9 January 2023, 19:28

View original

2 replies

Userlevel 7
Badge +3

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 

Reply