Skip to main content
Question

Updating Spot Diagram

  • June 10, 2025
  • 1 reply
  • 33 views

Matt H

The ray density of the spot diagram is not being updated as expected; I have tried two different methods:

 

# spot diagram
spot = TheSystem.Analyses.New_StandardSpot()
spot.GetSettings.RayDensity = 15
spot.ApplyAndWaitForCompletion()

 

newSpot = TheSystem.Analyses.New_StandardSpot()
print("Spot has analysis specific settings? ", newSpot.HasAnalysisSpecificSettings) # True; no ModifySettings
newSettings = newSpot.GetSettings()
newSettings.RayDensity = 15
newSpot.ApplyAndWaitForCompletion()

 

However, after being run the ray density of the spot diagram does not update as expected - any ideas?

1 reply

David.Nguyen
Luminary
Forum|alt.badge.img+2

@Matt H 

 

The first snippet doesn't work because you are missing parentheses for your GetSettings() call.

The second one should work, but then there’s this: 

If you don’t want to read the long post and have a quick fix, try:

newSpot = TheSystem.Analyses.New_StandardSpot()
print("Spot has analysis specific settings? ", newSpot.HasAnalysisSpecificSettings) # True; no ModifySettings
newSettings = newSpot.GetSettings().__implementation__
newSettings.RayDensity = 15
newSpot.ApplyAndWaitForCompletion()

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