Solved

How use DoNotDrawObject?

  • 11 June 2024
  • 1 reply
  • 22 views

How use DoNotDrawObject?

I trued like below but seems it wrong

Object = TheNCE.GetObjectAt(obj)
Object.TypeData.RaysIgnoreObject = ZOSAPI.Editors.NCE.RaysIgnoreObjectType.Never
Object.TypeData.DoNotDrawObject = True

 

icon

Best answer by David.Nguyen 12 June 2024, 09:07

View original

1 reply

Userlevel 7
Badge +2

@Aleksandr.Makarov 

 

DoNotDrawObject is a property of DrawData and not TypeData.

Object = TheSystem.NCE.GetObjectAt(1)
ObjectDrawData = Object.DrawData
ObjectDrawData.DoNotDrawObject = True

Take care,

 

David

Reply