PCB Libraries Forum Homepage
Forum Home Forum Home > PCB Footprint Expert > Questions & Answers
  New Posts New Posts RSS Feed - [Solved] OrCAD PCB Script Issues
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

[Solved] OrCAD PCB Script Issues

 Post Reply Post Reply
Author
Message
HenricE View Drop Down
Active User
Active User


Joined: 20 Nov 2013
Location: Sweden
Status: Offline
Points: 28
Post Options Post Options   Thanks (1) Thanks(1)   Quote HenricE Quote  Post ReplyReply Direct Link To This Post Topic: [Solved] OrCAD PCB Script Issues
    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

Back to Top
Back to Top
chrisa_pcb View Drop Down
Moderator Group
Moderator Group
Avatar

Joined: 29 Jul 2012
Location: San Diego
Status: Offline
Points: 772
Answer Answer
Post Options Post Options   Thanks (1) Thanks(1)   Quote chrisa_pcb Quote  Post ReplyReply Direct Link To This Post Posted: 20 Nov 2013 at 11:10am
Turn off the 'Auto-confirm loss of accuracy' selection and then click 'Save Entries As Preferences'.
Back to Top
HenricE View Drop Down
Active User
Active User


Joined: 20 Nov 2013
Location: Sweden
Status: Offline
Points: 28
Post Options Post Options   Thanks (0) Thanks(0)   Quote HenricE Quote  Post ReplyReply Direct Link To This Post Posted: 21 Nov 2013 at 1:43am
Aah! Of course! It all makes sense now. Thank you!
Back to Top
sushmitha View Drop Down
Active User
Active User


Joined: 15 Sep 2017
Status: Offline
Points: 10
Post Options Post Options   Thanks (0) Thanks(0)   Quote sushmitha Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down



This page was generated in 0.236 seconds.