Print Page | Close Window

[Solved] OrCAD PCB Script Issues

Printed From: PCB Libraries Forum
Category: PCB Footprint Expert
Forum Name: Questions & Answers
Forum Description: issues and technical support
URL: https://www.PCBLibraries.com/forum/forum_posts.asp?TID=1186
Printed Date: 25 Nov 2024 at 2:33am


Topic: [Solved] OrCAD PCB Script Issues
Posted By: HenricE
Subject: [Solved] OrCAD PCB Script Issues
Date Posted: 20 Nov 2013 at 4:22am
Just tested out the tool today and built a component for OrCAD PCB. This generated script files for creating both the pads and the symbol drawing. However when running the script to generate the pads it stops due to a "Command not found" error. See the journal below:


\t (00:00:00) pad_designer 16.6 S013 (v16-6-112AN) Windows 32
\t (00:00:00)     Journal start - Wed Nov 20 12:14:42 2013
\t (00:00:00)         Host=HER User=henric Pid=2124 CPUs=8
\t (00:00:00)
\i (00:00:03) setwindow form.padedit
\i (00:00:03) pse_script
\i (00:00:11) fillin "r206_60.psr"
\i (00:00:13) replay C:/SVN/IPCOrCADLibrary/FPX/symbols/SOIC127P1030X265-16L87N/r206_60.psr
\i (00:00:13) version 16.6
\t (00:00:13) Script version: 16.6
\i (00:00:13) setwindow form.padedit
\i (00:00:13) pse_new
\i (00:00:13) fillin r206_60
\i (00:00:13) FORM padedit units Millimeter
\e (00:00:13) Command not found: fillin yes
\i (00:00:30) pse_exit
\t (00:00:30)     Journal end - Wed Nov 20 12:15:12 2013


If I remove the offending line "fillin yes" from the script file the Pad designer successfully creates the pad. There are some interesting warnings/errors in the journal though. See the journal below:


\t (00:00:00) pad_designer 16.6 S013 (v16-6-112AN) Windows 32
\t (00:00:00)     Journal start - Wed Nov 20 12:16:29 2013
\t (00:00:00)         Host=HER User=henric Pid=6732 CPUs=8
\t (00:00:00)
\i (00:00:02) setwindow form.padedit
\i (00:00:02) pse_script
\i (00:00:10) fillin "r206_60.psr"
\i (00:00:11) replay C:/SVN/IPCOrCADLibrary/FPX/symbols/SOIC127P1030X265-16L87N/r206_60.psr
\i (00:00:11) version 16.6
\t (00:00:11) Script version: 16.6
\i (00:00:11) setwindow form.padedit
\i (00:00:11) pse_new
\i (00:00:11) fillin r206_60
\i (00:00:11) FORM padedit units Millimeter
\i (00:00:11) FORM padedit decimal_places 4
\i (00:00:11) FORM padedit decimal_places 4
\i (00:00:11) FORM padedit inner_layer_opt YES
\e (00:00:11) Form field label not found
\i (00:00:11) FORM padedit single YES
\e (00:00:11) Field is currently invisible or disabled.
\i (00:00:11) setwindow Form.padedit
\i (00:00:11) FORM padedit layers
\i (00:00:11) FORM padedit layers 
\i (00:00:11) FORM padedit grid row begin_layer
\i (00:00:11) FORM padedit grid row begin_layer
\i (00:00:11) FORM padedit grid change begin_layer,begin_layer TOP
\e (00:00:11) Row,Column value is not valid for field.
\i (00:00:11) FORM padedit geometry Rectangle
\i (00:00:11) FORM padedit geometry Rectangle
\i (00:00:11) FORM padedit width 2.06
\i (00:00:11) FORM padedit width 2.06
\i (00:00:11) FORM padedit height 0.6
\i (00:00:11) FORM padedit height 0.6
\i (00:00:11) FORM padedit grid row SOLDERMASK_TOP
\i (00:00:11) FORM padedit grid row soldermask_top
\i (00:00:11) FORM padedit geometry Rectangle
\i (00:00:11) FORM padedit geometry Rectangle
\i (00:00:11) FORM padedit width 2.06
\i (00:00:11) FORM padedit width 2.06
\i (00:00:11) FORM padedit height 0.6
\i (00:00:11) FORM padedit height 0.6
\i (00:00:11) FORM padedit grid row PASTEMASK_TOP
\i (00:00:11) FORM padedit grid row pastemask_top
\i (00:00:11) FORM padedit geometry Rectangle
\i (00:00:11) FORM padedit geometry Rectangle
\i (00:00:11) FORM padedit width 2.06
\i (00:00:11) FORM padedit width 2.06
\i (00:00:11) FORM padedit height 0.6
\i (00:00:11) FORM padedit height 0.6
\i (00:00:11) pse_check
\i (00:00:11) pse_save
\i (00:00:13) fillin yes
\i (00:00:13) pse_exit
\t (00:00:13)     Journal end - Wed Nov 20 12:16:42 2013


This is the pad generation script I tested:


# Allegro script
# Generated by FPX Expert
#   name: r206_60
version 16.6

setwindow form.padedit

pse_new
fillin "r206_60"
FORM padedit units Millimeter
fillin yes
FORM padedit decimal_places 4
FORM padedit inner_layer_opt YES
FORM padedit single YES

# Pads
setwindow Form.padedit
FORM padedit layers

# TOP
FORM padedit grid row begin_layer
FORM padedit grid change begin_layer,begin_layer TOP
FORM padedit geometry Rectangle
FORM padedit width 2.06
FORM padedit height 0.6

# SOLDERMASK_TOP
FORM padedit grid row SOLDERMASK_TOP
FORM padedit geometry Rectangle
FORM padedit width 2.06
FORM padedit height 0.6

# PASTEMASK_TOP
FORM padedit grid row PASTEMASK_TOP
FORM padedit geometry Rectangle
FORM padedit width 2.06
FORM padedit height 0.6

pse_check
pse_save
pse_exit




Replies:
Posted By: chrisa_pcb
Date Posted: 20 Nov 2013 at 11:10am
Turn off the 'Auto-confirm loss of accuracy' selection and then click 'Save Entries As Preferences'.


Posted By: HenricE
Date Posted: 21 Nov 2013 at 1:43am
Aah! Of course! It all makes sense now. Thank you!


Posted By: sushmitha
Date Posted: 10 Nov 2017 at 4:02am
Hello,
I am writing delphi script in altium schematic. my script is mainly to change modes of component from normal to alternate or vice versa.
i would like to know how to select particular component using altium API's in script and i came across through ToggleComponentDisplayMode , is this going to help me in any way?

Regards,
Sushmitha



Print Page | Close Window