Skip to main content
Solved

How use DoNotDrawObject?

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

 

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