<div dir="ltr"><div>If you focus at this part of the error: NoneType has no attribute 'AddRule'<br><br>Then IronPython is really complaining about the expression:</div><div><br></div><div>vectorScaleRange.PointStyle</div><div><br></div><div>Which is just another way of saying that the vectorScaleRange has no actual point style because it is null (on in Python terminology: None)</div><div><br></div><div>ie. You are adding to a layer without a point style set on the given scale range</div><div><br></div><div>How can you rectify this? If this is the correct layer definition you intend to add a point rule to, then you should assign a point style if vectorScaleRange.PointStyle is None.</div><div><br></div><div>Where can you create a new point style? From the same place where you're creating point rules: The layer definition object itself.</div><div><br></div><div>- Jackie</div><div><br></div>You wrote:<div><pre style="color:rgb(0,0,0)">Hello Jackie,

I ran into a problem trying your code.

This Line does not seem to work:

vectorScaleRange.PointStyle.AddRule(pointRule)

Error when running the code:

[cid:<a href="https://lists.osgeo.org/mailman/listinfo/mapguide-users">image001.png at 01DADDBD.2CF4D050</a>]

I ran a dir() on the vectorScaleRange variable and it shows no AddRule.
I will take a better look at the API documentation

[cid:<a href="https://lists.osgeo.org/mailman/listinfo/mapguide-users">image002.png at 01DADDBD.2CF4D050</a>]

Met vriendelijke groet,

GISkit BV
Bart Oostdam</pre></div></div>