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..
I already installed the latest hotfix and tried the same code but still generated the same output. just to confirm that the problem is not on my code. kindly check the code below if it..
(defun clineToShapes () let((clineDbid layer netName parent polys)
axlSetFindFilter(?enabled `("noALL" "clines") ?onButtons `("noALL" "clines"))
while(axlEnterPoint() axlSingleSelectPoint(axlLastPick(nil)) clineDbid = car(axlGetSelSet()) layer = clineDbid->layer netName = clineDbid->net->name polys = car(axlPolyFromDB(clineDbid ?endCapType 'SQUARE)) axlDBCreateShape(polys t layer netName) axlDeleteObject(clineDbid) )