New Markings Added By IronPython Not Showing in Analyst

When I use the following code to add new markings to a new .dxp, it seems to work:

newMarkings = ['Marking A', 'Marking B', 'Marking C']

for newMarking in newMarkings:

for marking in Application.Document.Data.Markings:
		print marking.Name

I get the following output:

Marking A
Marking B
Marking C

However, when I look at the markings Document Properties -> Markings Dialog, the new markings don't show up:

Any help/direction would be much appreciated!


Hello,  can anyone replicate this issue?  I was hoping I had posted it in a way that could be easily examined / debugged by someone with a little more experience than me with IronPython.  Thanks!

bmeyer - Feb 01, 2017 - 7:09am ::

I'm using Spotfire Analyst 7.7

bmeyer - Jan 26, 2017 - 11:46am ::
+ Add a Comment

(1) Answer