here is my code for all the major marker and minor markers on scale
sorry not enough space i think to pass all the menu class ect
for xi in float2_range(minag,maxag-1, step): # Big marker beginning
for xsi in float2_range(xi+step2,xi+maxag1-1, step2):
scalex=height2
scaley=w2
scalez=0
h2=2*height1/2.0
rad2=rad1-h2
print ('rad1=',rad1,'rad2=',rad2,' h2=',h2)
ang1=xsi
x1=rad2*cos(ang1*pi/180)+xc1
y1=rad2*sin(ang1*pi/180)+yc1
myplaneMesh =bpy.ops.mesh.primitive_plane_add(view_align=False, enter_editmode=False, location=(x1, y1, 0), rotation=(0, 0, 0) , layer=[True]+[False]*19)
#
xdeg=0 # Angle in degrees
ydeg=0
zdeg=ang1
# ob.rotation_euler = [0,0,xi*pi/180]
bpy.context.active_object.rotation_euler = [radians(xdeg),radians(ydeg),radians(zdeg)]
bpy.context.active_object.scale = [scalex,scaley,scalez]
print (' xi=',xi,'deg xsi=',xsi,'deg ang1=',ang1,' deg')
print ()