-
1. Re: PADS Logic - Run Script (not macro) at Startup ?
hannu.tikkanen May 20, 2009 12:14 AM (in response to jim.granville)I have tried almost the same thing - the only way that works would be to add the script to the scripts menu and launch it using mcr from there. Basically it works but as soon as the menu changes the mcr stops working (or would launch a wrong script).
-
2. Re: PADS Logic - Run Script (not macro) at Startup ?
jim.granville May 20, 2009 12:46 AM (in response to hannu.tikkanen)That's great.
(The adding to script menu tags are stored in powerlogic.ini, so that's another file to manage, as you mention)
We are now up to 5 files to manage, but it does work...
-
3. Re: PADS Logic - Run Script (not macro) at Startup ?
chuckt Jul 13, 2009 7:30 AM (in response to jim.granville)You can start a Script at program startup this way as well:
Edit the "Target" line of the shortcut used to start Logic, to read something like this:
C:\MentorGraphics\9.0PADS\SDD_HOME\Programs\powerlogic.exe /s"C:\PADS Projects\Scripts\MyScript.BAS"
I use this method to run a script for Layout, but never actually tied it for Logic.
c
-
4. Re: PADS Logic - Run Script (not macro) at Startup ?
cbedard Sep 18, 2018 8:18 AM (in response to chuckt)Chuck,
When I do this with layout (v9.4) is just opens the script for editing in the Output Window. It does NOT actually run the script.
-
5. Re: PADS Logic - Run Script (not macro) at Startup ?
chuckt Sep 25, 2018 8:10 AM (in response to cbedard)Are you trying to run a "script" (.bas) or a "macro" (.mcr)? Macros open in the Output window, I've never seen script run/open there.
Use /m for .mcr macros at startup.
-
6. Re: PADS Logic - Run Script (not macro) at Startup ?
chuckt Sep 25, 2018 12:17 PM (in response to chuckt)Sorry, that needs to be a capital "M".
-
7. Re: PADS Logic - Run Script (not macro) at Startup ?
wheelspcb Sep 25, 2018 12:26 PM (in response to chuckt)Is there a published list of switches for powerpcb.exe?
-
8. Re: PADS Logic - Run Script (not macro) at Startup ?
chuckt Sep 26, 2018 8:18 AM (in response to wheelspcb)IDK if it's complete, but try looking at startup options in the help docs.
-
9. Re: PADS Logic - Run Script (not macro) at Startup ?
wheelspcb Sep 26, 2018 10:47 AM (in response to chuckt) -
10. Re: PADS Logic - Run Script (not macro) at Startup ?
chuckt Sep 26, 2018 11:54 AM (in response to wheelspcb)1 of 1 people found this helpfullook in the HTML version:
Table 3-1. PADS Layout Command Line Options
Option
Description
file name
Opens the specified design file when you start PADS Layout. Type the full folder path and file name. Use quotation marks for folders or file names with spaces.
Example: “C:\PADS Projects\Samples\preview.pcb”
Restriction: Do not use a forward slash ( / ) before the file name in the command line.
/BMW[=initials]
( [ ] represents optional text.)
Opens the Basic Media Wizard. Use the Basic Media Wizard to start recording a session log or to convert the previous session log to media that can be replayed by Basic Log Test. To create session media files for the current PADS Layout session, use the BMW modeless command.
To use the BMW command line switch, type /BMW or /BMW=xx, where xx is your initials, in the command line. Note the capitalization.
This option is associated with another modeless command, BLT. BLT is the Log Test; it finds and runs the session media created by BMW to play back a recorded PADS Layout session.
See also: Typing Modeless Commands
/DoTest
Runs the integrity test on every file open.
/l
Opens the last file you had open when you start PADS Layout.
/mmacro name
Runs the specified macro in the default macro file. For example, to run the macro MyMacro, type /mMyMacro.
/Mmacro file
Specifies the file to use as the default macro file. For example, to run the macro MyMacro contained in the file user1.mcr, type /Muser1.mcr /mMyMacro. Note the required capitalization.
Requirement: Macros must be in the \PADS Projects folder.
/nc
Starts PADS Layout without displaying the splash screen that includes copyright information.
/NTL
Disables true layer associations. When you use Flip Side, the layer attributes will not move to the new layer with the component. Type /NTL to disable true layer associations. Note the required capitalization.
TrueLayer is enabled by default and moves mask layer definitions with a part that is placed on the opposite side of the board. It also correctly plots paste masks of documentation-level pad shapes in CAM. The layer that the definitions move to is set in the Component Layer Associations dialog box.
See also: Add or Edit a CAM Document, Associating Component and Documentation Layers
/sXXX
Starts a Basic script when you start PADS Layout. Use quotation marks for file names with spaces.
Example: “/sC:\PADS Projects\Samples\Scripts\Layout\Unsupported\Attributes to Excel.bas”
-
11. Re: PADS Logic - Run Script (not macro) at Startup ?
cbedard Sep 26, 2018 1:31 PM (in response to chuckt)I'm trying to run a .bas script.
-
12. Re: PADS Logic - Run Script (not macro) at Startup ?
chuckt Sep 27, 2018 4:57 AM (in response to cbedard)...then lower case "s".
If it's opening up in the editor and not running then you most likely have an error in the script.
I just checked it in a VX2.2 install and it still works.
c
-
13. Re: PADS Logic - Run Script (not macro) at Startup ?
cbedard Sep 27, 2018 7:06 AM (in response to chuckt)My bad, I did actually have a syntax problem. The script I am pointing to launches a custom Toolbar that I open EVERY time I work on a layout.
The script runs if I click a shortcut or open an empty instance of PADS Layout but I can't open an actual layout design and force the application to run that .bas script.
Is there a section of the powerpcb.ini file where I can point to the path and file name of the script and have it open when PADS Layout opens?
Or do I have to wait until I move up to V2.4 to use the startup.ini file?
-
14. Re: PADS Logic - Run Script (not macro) at Startup ?
chuckt Sep 27, 2018 9:14 AM (in response to cbedard)It should run automatically if you correct all the errors.