Skip to main content
Solved

How use DoNotDrawObject?

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

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

1 reply

David.Nguyen
Luminary
Forum|alt.badge.img+2
  • Luminary
  • 1072 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


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