Quantcast
Channel: Cadence PCB Skill Forum
Viewing all 2176 articles
Browse latest View live

getting class and subclass from ministatus

$
0
0

Hi

I'm using a mini status window and is for the first time using the builtin class and subclass fields. 

But when I read the fields using axlFormGetField then I get a numeric value back.

I've searched everywhere in the manual and looked over all axl commands with layer, class etc. to figure out how I can get from the numeric to the class/subclass which is what I'm looking for,

Any hints is really appreciated, thanks.

Best regards

Ole


keyboard keys "Ctrl, Return, w,s,a,i...." on form callback

$
0
0

Hello,

Is there any way to interact to keyboard presses on a displayed form e.g when the form is displayed and the user presses "i" on his keyboard i want to display a new form for information. On the form callback I only know of buttons to be used.

;----------------------------------------------------------------
;; Form callback with select

procedure( select_form_Action(select_form)
    println(select_form->??)
    
    case(select_form->curField

...

Change the referenced spacing set of a region in constraint manager?

$
0
0

Hi all,

Is there away to change the Referenced spacing set of a region in skill?

There are no class or class to class for this particular region.

Thanks,

Jerry

grids.il program stopped working when used in v17

$
0
0

Hi, I have been using  the program grids.il form this forum in v16.6 for several years. After I used it

in v17.2 S050 I got the error:-  *Error* axlFormSetField: argument #1 should be any user-defined (other) type (type template = "otg") - nil

To make things worse now I am getting the same error in v16.6. None of my other skill programs is showing the same error.

I have some colleagues who also have the same problem on different computers.

Any ideas ?

community.cadence.com/.../grids.zip

EDIF Importing issues in Capture

$
0
0

Hi Team,

Greetings! I have a query regarding the EDIF design import in Capture.

When I try to import the design with the standard procedure(File->Import EDIF Design) it shows the below Error and Warning.

//*

EDIF 200: Reference Error: source line 829570: Identifier DDR_VTT NON-UNIQUE. Changed to DDR_VTT_0. Now it cannot be referenced!
..............................................................
..................................................................
EDIF 200 parsing finished
Could not find C:\CADENCE\SPB_DATA\
Library C:\mysys\DESKTOP\CHECK_CSK\BUILTIN.OLB is created
Library C:\mysys\DESKTOP\CHECK_CSK\TS6370K_PRELIM.OLB is created
Library C:\mysys\DESKTOP\CHECK_CSK\TS6370K.OLB is created
Library C:\mysys\DESKTOP\CHECK_CSK\TS6370K.OLB is created
Warning: Optimal grid cannot be selected. Net Graphic can change
Error: Cannot determine grid. Please, try setting grid by command line option
Fatal Error:  in OrCAD Writer:  Cannot determine grid. Please, try setting grid by command line option
Finished on Wed Feb 13 16:53:47 2019
Fatal error detected
Could not find C:\mysys\Desktop\check_csk\TS6370K.DSN
Could not find C:\mysys\DESKTOP\CHECK_CSK\TS6370K.DSN

*//

Note :  

I have imported the same .eds file with 16.6 AND  17.2 versions both are giving the same.

I would like to know what are all the possible ways to fix this issue and let me know how to fix them.

Thanks in advance.

dv.

Creating a output of every DRC used on a design in Allegro 16.6.

$
0
0

We have an eDfM who wants an excel spreadsheet filled out for every Design Rule and compliance with these rules. This creates hundreds of thousands of rules to check on a 12 layer design!

Is it possible to output each design rule and the value of the checks done (IE each pad tested and the minimum clearance value actually found) instead of just reporting that the DRC has zero errors?

If this is possible, how would it be done? Can a report be created in Cadence Allegro 16.6?

How to select object based on shape

$
0
0

Hi All,

        I want to select the object(Pin, Via & Symbol) based on the shape. please help on this.

Regards,

Sakthivel

Build panel milling with skill

$
0
0

Hi Guys,

I am trying to build milling for panel based on outline.

axlSetFindFilter ?enabled (list "linesegs" "shapes") ?onButtons (list "alltypes")
axlAddSelectAll()
axlGetSelSet()

after axlGetselSet() i got alot of the segment dbid but not sure how to continues. =(

Can someone share me some idea or sample code?

Thanks,

Eugene


Decompose shape using skill

$
0
0

Hi Guys,

I try to using skill to decompose shape but it only able to decompose one shape, second shape it will show error msg..=(

Error msg: 

dbid:removed
W- *WARNING* (axlPolyFromDB): Invalid database id argument - dbid:removed
E- *Error* fprintf/sprintf: format spec. incompatible with data - "Format is 'decompose shape;setwindow pcb;pick %f %f;setwindow pcb;prepopup;Done', argument #1 is nil"

;==========================================================================================================

axlCmdRegister( "seg" `milling ?cmdType "General")

procedure( milling()
;==========================================================================================================

;open ncroute layer only and get shapes
axlShell("QtSignal ColorVisibilityPane CVPGlobalVisOff clicked")
axlVisibleLayer("BOARD GEOMETRY/NCROUTE_PATH" t)
shapes = _EXfindAllOfType("SHAPES")

foreach( shape shapes

;Convert shape to poly and random get vertices from poly
shape_poly = car( axlPolyFromDB(shape))
shape_vertices = caar(shape_poly-> vertices)
shape_x = car(shape_vertices)
shape_y = car(cdr(shape_vertices))

axlShell(sprintf(nil "decompose shape;setwindow pcb;pick %f %f;setwindow pcb;prepopup;Done" shape_x shape_y))
)
;==========================================================================================================
)

Any idea?

Eugene

How to access user preferences via SKILL?

$
0
0

I found article 20482607 in COS (https://support.cadence.com/apex/ArticleAttachmentPortal?id=a1O0V000009ET07UAG), titled "How to customize the User Preferences Editor with custom variables".

This seems to work fine and the customizations show up in the UI, but I haven't figured out how to access those new user prefs (or any user pref, for that matter) in my SKILL programs. axlDBGetDesign() doesn't seem to have any property that helps me and I don't get any hits with a bunch of search terms in algroskill.pdf. Nor does searching this forum or online help. They also aren't shown when running "set" in the Command window (though many user prefs aren't there so I'm not concerned).

Can anybody show me how to access user prefs, especially custom ones, via SKILL?

As a related aside, is there any way to set a default value for a custom user pref? With a checkbox the wording of the pref could be inverted to make unchecked the desired default state, but with a STRING or ENUM how can I set the default value?

Difference between SPB16.6 and SPB17.2 for skill

$
0
0

Hi master,

I met a problem using skill. it is OK in Allegro 16.6, but when I use it in 17.2 it will have some problem, I make a funckey for that, for example: funckey F2 c2s, c2s is a command of skill program.

in Allegro I type F2 to run this skill, it will work, but other commands for allegro do not work, i need right click and done this skill command, then all commands work well. it never happen in 16.6, anyone can explain that? how can I fix that problem?

Radius of arc

$
0
0

Hi Guys,

Any idea how we can detect the arc radius is located inside or outside of the board outline?

Eugene

pdf_out skill stop working in 17.2-2016-S051

$
0
0

I wonder why such basic functionality was removed from OrCAD professional as pdf_out or PDF Export, which we were using to export all gerbers to one multi-page pdf with one click. 

Do anyone have some alternative for this pdf_out function?

How to detect Ctrl key pressed during list selection?

$
0
0

I have a SKILL form with a LIST-type FIELD in it. I would like the list to be multi-select and do something different if the user is holding down Ctrl when selecting an item vs not holding down any key. Is this possible? Nothing in the form callback for the list element indicates a modifier key is pressed (that I can see, anyway) and I'm not sure where else to look.

I write the subject of this discussion generic but the concept should apply to other modifier keys (for example Alt) and other form elements.

Compare Keepout Shapes

$
0
0

Hi experts,

Is there a way to compare the KEEPOUT Shapes (KOS) between designs? For example, I have an ECO board that I would like to know what/which KOS changed? Is there a way to compare the eco with the original board? If so, how do I go about it? Also, is there a Skill code available to do this check?

Thanks,

Edwin B


Can I do _something_ as chars are entered in a SKILL form text field?

$
0
0

I would like to have a filter in my form that works as characters are typed into the text box.

The old "Find by Name or Property" dialog doesn't do this and you have to hit Tab or navigate away from the text box for the filter to activate. However, the newer Find by Query dialog as a "Filter Setting" sub-dialog that seems to be dynamic and working as characters are typed in. This is what I would like to achieve.

Is there a way to capture changes in a text box as they happen? Surely filtering isn't the only application where this might apply, and I have reason to believe it's possible.

Thanks!

Add part_number to component in PCB

$
0
0

Hi

I'm creating a board file using SKILL with axlDBCreateComponent.

The problem is how I get a part_number assigned to the parts created with this method.

Since I create symbols and device files before creating the board data, I'm wondering if this is tied into the device file which is writted using axlWriteDeviceFile .

For some parts I've used the line below and are wondering what the empty list could containt. Documentation on this command is a bit sparse.

axlCreateDeviceFileTemplate(devicefilename "MECHANICAL" '())

Any suggestions?

Best regards

Ole

Create Via Structure using SKILL

$
0
0

Hi Everyone,

I have manually created a via structure constains lot of stacked via and clines, but I need to disband it, delete 1 via and re-create as a new via structure.  

Does anyone know any SKILL code to auto select the via structure, disband it, delete some item and re-create another via structure?  

I have tried axlDBCreateSymbol('("xyz_L3_L36" "MECHANICAL") 4500:5000 nil nil) , so I can attach all the vias and clines but error message popup below:

(SPMHA1-161): Cannot open the design because of database problems. Run the dbdoctor command on the design and try to open again.

Help please!!

Thank you.

Create new directory

$
0
0

Hi,

Is there a way to create new directory  in the .brd working directory with the help of skill program.

Thanks,

Pradeep

Get a size of part outline

$
0
0

Hi,

I'm trying to get a size of symbol's outline

I used axlDBGetExtents, but it only answers (0:0 0:0).

Help me to get a value of symbol's outline

Viewing all 2176 articles
Browse latest View live


Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>