I am currently working on a certain program wherein a certain cline segment will be converted to shape(version of allegro used is 16.5).. i was able to generate the shape by first getting the polygon object of the cline then use it on axlDBCreateShape.. refer to code below..
clineDbid = (dbid of cline to converted to shape)
polyDbid = car(axlPolyFromDB(clineDbid ?endCapType 'SQUARE))
axlDBCreateShape(polyDbid t layer netName)
The program works fine but the main problem is the shape fill type. As default, solid fill shape or dynamic copper type should be generated but whenever i run the program, static crosshatch type is generated.. I need the shapes generated to be in solid fill shape/dynamic type..
Your code works OK for me. I wonder if there is a setting in your Allegro that forces shapes to fill in a certain way?
See my version of this (attached) that has some right mouse buttom options. Does it work for you?