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..
Dave Elder, Tait Communications
In reply to eDave:
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.
In reply to D912349:
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?
shape add setting is already set to dynamic but still the output remain the same.. is there a way to return user preferences set up back to default setting?. This may help test the routine if user preferences affects the output of the axl function..
thanks for the suggestion Dave, I also tried that but output generated is still the same.. shape fill is still static cross hatch,,
Sorry, I'm running out of ideas.
Does is happen on every net?
Does it happen on a brand new design?
Does it happen if you add a shape manually?
Yes, it happen on every net even dummy nets, same with design.. i also tried it on other machine but still shows the same output. but when I add the shape manually, dynamic copper type of shape is generated..
Another thing. is there another way of generating shape without using axlDBCreateShape given that the input data will come from cline object?. or is there a way to change shape type using dbid of a shape?.
using path might solve the problem but it is difficult to create path from a cline object. because basically, corners of the cline still needs to be solved from width and strartEnd attributes to create a path, considering that clines comes from different angles. Any way, Thanks eDave for the support, I will update whatever I find out regarding this issue..
Maybe this is due to the display pattern being selected for shapes. You can verify this be doing a display element on the shape and see what it reports for fill type.