Skip to main content

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?

@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