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

TCL command for "Tools > Export Properties.." in Capture CIS

$
0
0

I'm looking to automate the export of part properties from OLB files. Does anyone know if there is a TCL command/function that can use export part properties? This generates an EXP file that I am going to use for revision control of the OLB files.

I've turned on Journalling of the TCL commands and the commands that are used would not operate via the Windows command line shell as it uses the Menus/Dialog boxes.

Capture> Menu "Tools::Export Properties" | DialogBox  "OK" "C:/Users/AppData/Local/Temp/CAPTURELOG/Fri_May_04_13_48_43_2018/Export Properties_1.xml"

Here is a picture of what I am trying to automate:


Export DXF and ODB through skill

$
0
0

Hello Guys,

I am try to develop a skill that export dxf and odb with single button, in this skill i aim to auto fill in the name of the layer and directory where the file should save.

Any idea which command we can use that?

I had try to do it with "replay script" but it not user friendly enough that the file name and directory are fixed.

Regards,

Eugene

Updating Footprint on an existing BRD file

$
0
0
  1. Hello friends:
  2. I need to replace an obsolete MCU on an existing functional board.
  3. The old MCU is 100-TQFP, the new MCU is 128-TQFP.
  4. In addition, need to add one IC along with the new MCU.
  5. I plan to update the existing BRD file to fit the changes.
  6. What would be the best way to implement the changes, please?
  7. How to Syncing the dsn to BRD?
  8. Please recommend me the road map, along with detail step, please, use OrCAD PCB Designer 17.2

Replace footprint on PCB Editor

$
0
0
  1. I need to replace an obsolete component on an existing board, from 100-TQFP to 128-TQFP. How should I implement it on PCB Editor, after all, how should I verify the change?   

Loading the DFA Table using Skill

$
0
0

Hello,

Trying to modify a portion of a skill that someone else created a few years back, that adds the DFA table, it works in 16.6 but not in 17.2

In 17.2, it opens the DFA spreadsheet portion but I have to manually pick the dfa table, put "on" the DRC mode, then click OK for the rest of the skill to finish.

Below is what I'm trying to modify to make it work in Allegro 17.2

Here is the portion as it exist:     Is there a better way to accomplish this task to work for 16.6 and 17.2?

 ; Doing some setup via a script file. Don't want to do this but I
      ; couldn't get the DFA setup to work from axlShell command. Will
      ; revisit this at another time.
      ;
      scrfile = outfile("./setup.scr" "w")
      
      fprintf(scrfile "setwindow pcb; techfile in; setwindow form.tech_in\n")
      fprintf(scrfile "FORM tech_in techfile \"%s\"\n" techFile)
      fprintf(scrfile "FORM tech_in execute; setwindow pcb\n")
      fprintf(scrfile "setwindow form.tech_in\n")
      fprintf(scrfile "Form tech_in cancel\n")
      fprintf(scrfile "setwindow pcb\n")
      fprintf(scrfile "dfa_spreadsheet\n")
      fprintf(scrfile "setwindow dfa.dialog\n")
      fprintf(scrfile ;"dfa read_from_design\n")
      fprintf(scrfile "dfa browse_dfa_library\n")
      fprintf(scrfile "dfa open package_spacing_U3_Rev_01_minimum\n")
      fprintf(scrfile "dfa constraints on\n")
      fprintf(scrfile "dfa attach_to_design\n")
      fprintf(scrfile "setwindow dfa.dialog\n")
      fprintf(scrfile "dfa okay\n")

      close(scrfile)
      
      axlShell("replay ./setup.scr")
      deleteFile("./setup.scr")
      deleteFile(techFile)

Thanks

Peter

Create PCB footprint

$
0
0
  1. When create package symbol using “package symbol wizard”, need to select a padstack, how can I find the shape and size of the padstack from the list?
  2. I need to pick a padstack good for physical pin size 1.0 mm x 0.2 mm. (or 15.7 mil x 7.9 mill)

delete the visible xsection layer

$
0
0

i need a function, it get a number from user , if the number small than the currently xsectin layer number, then it will delete the visible layer pair( one conductor layer and a dielectrinic layer) , but i stuck at i verify a xsection layer are conductor and is visible currently ? im tried as follow ,but it doesnt work. so what's the right way ?

        xslayer = axlXSectionGet( nil 'all )
 foreach( xsNum xslyaer
                 if( xsNum->isEtch && secNum->visible then   ; or xsNum->CONDUCTOR i want verify the layer is conductor and visible
                        printf( "will delete layer pair %" xsNum->position ) 
                        axlDeleteByLayer(xsNum->position + 1 )  ;delete dielectronic first
                        axlDeleteByLayer(xsNum->position )     ;then conductor 
                    )
               ) ; just the position attribute is worked

Schematic Capture issue

$
0
0

I have issue to work with the .prj file that was migrated from ALTIUM. During schematic capture, when I place wire, the wire is not connecting into the junction of the part, it may cause a lot of open circuit.  Any suggestion that can prevent this happen? 


Script to auto fill in "Microsoft Print to PDF"

$
0
0

Hi Guys,

any command that i can write to auto fill in the highlight place?

Thanks,

Eugene

axlClearObjectCustomColor only clears nets

$
0
0

Hi Community,

I am currently developing a SKILL script, which will be manipulating the custom colors of nets, pins, vias, clines, shapes and rats, as per the Color Dialog (color192). As part of the program, I want to clear the custom colors everywhere. I have tried using axlClearObjectCustomColor, as seen in the code below. Unfortunately, this code only clears the custom colors of nets. Pins, vias, clines, shapes and rats maintain their custom colors, even after I have called the method on them. From the documentation, the method axlClearObjectCustomColor, takes a list of dbids and returns t/nil, depending on if a color was cleared or not. Why does this not work for anything but nets? Am I dealing with the wrong dbids? I can use the same dbids to get the custom color value...

procedure( clearCustomColors()
nlist = axlDBGetDesign()->nets ;nid = car(axlSelectByName("NET" "1V8"))
axlClearObjectCustomColor(nlist)
foreach(nid nlist
axlClearObjectCustomColor(nid->branches)
axlClearObjectCustomColor(nid->ratsnest)
)
; Alternative version:
; foreach(nid nlist
; axlClearObjectCustomColor(nid)
; foreach(bid nid->branches
; foreach(cid bid->children
; case(lowerCase(cid->objType)
; ("path"
; isEtch == t means it is a cline
; if(cid->isEtch
; then
; axlClearObjectCustomColor(cid)
; else
; axlMsgPut("Path was not a cline")
; )
; )
; ("pin"
; axlClearObjectCustomColor(cid)
; )
; ("via"
; axlClearObjectCustomColor(cid)
; )
; ("tee"
; ???
; axlMsgPut("Tee Type")
; axlMsgPut("Tee Type: %L\n" cid->name)
; )
; ("shape"
; axlClearObjectCustomColor(cid)
; )
; (t
; axlMsgPut("Another type: %L\n" cid->objType)
; )
; )
; )
; )
; foreach(rid nid->ratsnest
; axlClearObjectCustomColor(rid)
; )

; )
)

quickplace by schematic page number

$
0
0

i want quickplace components by schematic page number at different locations , how can i implement this use skill ? could anyone help me ?

i have looked throught the manual but havent find out the functions

is anybody create a context in spb 17.2?

$
0
0
  •   I followed the instructions("axlskill-building context in allegro-build standard contexts") to write the program,but 

    • I don't know what to do with step 4.anybody can tell me how to run the buildcxt.thanks!!

importing Ultra Library file to create footprint

$
0
0
  1. I try to import a library from Export of Ultra Library.
  2. In the “importing a library into cadence Concept 15 or later” document, it instruct that: “you can load the component in by clicking the COMPONENT Menu and choosing Add from the list. But I don’t know where to get the Component Menu?
  3. Is anyone can provide me a step by step procedure, please? Using 17.2

axlAirGap in 17.2 need help?

$
0
0

Hi All!

I don't know why axlAirGap in 17.2  return the result  not like 16.x version(ex image below). It cause my skill code become wrong. this change begin on 17.2 version? How can I take measure airgap as before.

Thanks.

Luan.

Inconsistent behavior of axlDBCloak?

$
0
0

Hi everyone,

I'm creating an array of vias using axlDBCloak. I realized that a number of my vias (seems like they are located in the same X coordinate) don't have a net associated. My code works as follows:

via_id=mrCreateViaPadstack() -> this function creates the padstack, this works fine all the time
axlDBCloak( 'mrCreateAllViasCloak(via_id))

procedure( mrCreateAllViasCloak(via_id)
...
...
axlDBCreateVia(via_id, -1497.7:10647.9, "VSS")
...

When I don't run axlDBCloak and just use the axlDBCreateVia command separately in the skill terminal everything works well. I am creating several hundreds of vias with axlDBCloak. Is there any limitation in this function? is it possible that it will 'misbehave' if it has to execute too many database accesses?

Help appreciated! Thanks!


Deleting / Adding subclasses in existing Artwork films

$
0
0

With the new version update, Cadence prefers to use DESIGN_OUTLINE and CUTOUT instead of OUTLINE subclass, I wanted to write a script that will go through the existing films in the design and replace the OUTLINE subclass with these two subclasses. (I am very new to SKILL) 

I've tried using the ; axlDeleteObject() and axlfcreate()  functions but I could only get them to delete / create films, not subclasses.

Cheers ,

Arash

KO Shape Report

$
0
0

Hi,

Is there a code to extract the data of (all) KO SHAPES element in the design and report it in a text format?

For instance, the 'element' shown below can be reported as follows:

(<"Ref_Des"> <(XY)> <"Class/Subclass"> <(1st XY seg/arc)> <"Properties">)

Note1: Ref_Des/XY -> leave blank if none. This is the SHAPE attached to a part or component. XY of the Ref_Des. If it can't be done, ok to ignore.

Note2: 1st XY -> 1st segment of the "Exterior Boundary". Prefer to report the center XY if it can be done.

Note3: Properties -> Any or all Properties attached to the shape, including inherited properties. This includes Comments

Note4: KO Shapes for Route KO, Via Keepout, Package Keepout/Keepin, Route Keepin and Constraint regions.

(" " ( ) PACKAGE KEEPOUT/TOP" (267.0000 -101.0000) "PACKAGE_HEIGHT_MIN = 16.5 MM Connector Region Component Max height KOZ Symbol: HOP_VHD590_MECH_REV0 at 0.0000, 0.0000 FIXED")

=======

LISTING: 1 element(s)
< SHAPE >
       class         PACKAGE KEEPOUT
       subclass      TOP
  Shape is solid filled
  Area:   359.80000  (sq cm)
Exterior boundary: 
  segment:xy (267.0000 -101.0000) xy (267.0000 -241.0000) width (0.0000) 
  segment:xy (267.0000 -241.0000) xy (10.0000 -241.0000) width (0.0000) 
  segment:xy (10.0000 -241.0000) xy (10.0000 -101.0000) width (0.0000) 
  segment:xy (10.0000 -101.0000) xy (267.0000 -101.0000) width (0.0000) 
  Properties attached to shape
    PACKAGE_HEIGHT_MIN  = 16.5 MM
    COMMENT           = Connector Region Component Max height KOZ
  Inherited properties attached to shape
    Symbol: HOP_VHD590_MECH_REV0 at 0.0000, 0.0000  FIXED

======

Thank you in advance,
Eddie

PS

==Sample VIA KEEPOUT with Ref_Des====

Item 976 < SHAPE >

       class         VIA KEEPOUT
       subclass      TOP
  RefDes:          C78C
  Shape is solid filled
  Area:   0.00428  (sq cm)
Exterior boundary: 
  segment:xy (-159.6660 -12.6140) xy (-159.6660 -13.5640) width (0.0000) 
  segment:xy (-159.6660 -13.5640) xy (-159.2160 -13.5640) width (0.0000) 
  segment:xy (-159.2160 -13.5640) xy (-159.2160 -12.6140) width (0.0000) 
  segment:xy (-159.2160 -12.6140) xy (-159.6660 -12.6140) width (0.0000) 
====
 

Trouble removing symbols and symdefs

$
0
0

Greetings, dear SKILL-proficient peers,

I am new in the SKILL community, and new to development in SKILL. I have a background as a programmer, and a more limited understanding of PCB design and the PCB Editor. I hope you will bear with me, if I ask something that seem to have an obvious solution to you.

I am developing my first SKILL application for use in PCB Editor, and I have encountered some strange behaviour, that I cannot understand or explain. As such, I have provided an example code, which should be usable on any board file. I have tested it on the board DemoK-ClassColor.brd, which is a demo design in 17.2.

The core of the issue is, that I am unable to delete the symbol and symdef from the design. I make the symbol using SKILL (as seen in the code), but when I try to delete it using SKILL, strange behaviour occur. In some cases, the symbol will leave remnants at the 0,0 position on the board. Attempting to debug with printf, shows that sometimes the symbol is not present, even though it is visible in the design. In either case, I do not seem to be able to remove the symdef.

I have researched any documentation I could find to try an wrap my head around this issue, but to no avail. I hope one of you would read through my code, shake your head at my silly mistake, and enlighten me. Alternatively, I will settle for someone who can explain how I would go about removing the symdef and symbol (including all original and attached artifacts) from the design.

The file is uploaded as MakeTOC.txt, which will need to be renamed to MakeTOC.il. I have also tried to attached the DemoK-ClassColor.brd, but it seems that it did not work. I hope you will find it in your demo designs, or can substitute with another design.

community.cadence.com/.../MakeTOC.txt

Unable to load flash symbol AB00

$
0
0

How to  fix this error code E- (SPMHDB-274) appear in Netver?

 I have my .dra and psmpath setup correctly in user preference. I am using OrCAD PCB 17.2

Form buttons stop working.

$
0
0

Hi, I have written a checklist program with a form to help checking symbols. This works ok to begin with until at some point I make a modification to the file. After this all of the form buttons stop working except for the Ok/Done button. The form will not work again after that even if I undo any changes I have made. Is there a better method to make/call a form to prevent this happening? I have attached a copy of file if anyone has the time to look at it. Thanks.

Jim O'Mahony.

community.cadence.com/.../st_5F00_SymChkLst_5F00_v1_2D00_1.zip

Viewing all 2135 articles
Browse latest View live


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