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..
The hotfix version that i am using is S024. here is exact text that is shown when "About.." command is clicked 16.5 S024(v16-5-13BH)(6/15/2012)i86.
Thanks in advance eDave.
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) )
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?