Skip to main content
Solved

How use DoNotDrawObject?

  • June 11, 2024
  • 1 reply
  • 49 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

 

Best answer by David.Nguyen

@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

1 reply

David.Nguyen
Luminary
Forum|alt.badge.img+2
  • Luminary
  • 1159 replies
  • Answer
  • June 12, 2024

@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