This should help. It's taken from pages 33-34 of the SmartCAM Customization
Guide:
Customizing Your SmartCAM Startup
Command line options can be used to customize your SmartCAM startup.
Anything added to the
startup will be automatically run each time you start SmartCAM.
Customizing your startup may be advantageous if, upon startup, you
want to open a regularly used
process model file containing a common set of tools and operations.
It can also be used to
automatically run a macro, create some named views, or create some
of the tool path geometry for
a specific type of part. A batch file or script file may also be
used to include several command lines
for automating common operations on many process models.
Command Line Options for SmartCAM Applications
The following command line options can be added to a startup
procedure:
-m"<macro_filename>" Macro program file. This macro is
executed when the
SmartCAM application starts
up.
-f"<process_model_filename"> Process model file. This model file
is opened when the
SmartCAM application starts
up. This command also works
without the "-f."
-j"<job_filename>" Job file. This job file is loaded
when the SmartCAM application
starts up. This information
is not required is it is the same name
as the process model file
name.
Customizing the Startup in Windows NT 4.0 and Windows 95
1. Select the Start button at the bottom of the screen. Then select
Settings-Taskbar. The
Taskbar Properties dialog box displays.
2. Select the Start Menu Programs tab.
3. Select the Advanced button. The directory tree is displayed.
4. Find your SmartCAM application shortcut in a directory such as:
c:\windows\profiles\all users\start menu\programs\smartcam.
5. Copy the shortcut file. To do this, highlight the file name,
select Edit-Copy, and then select
Edit-Paste.
6. Display the properties for the new shortcut. To do this,
highlight the shortcut name and select
File-Properties. Then select the Shortcut tab.
7. Change the Target input field to add the command line options you
want. You can add as many
startup options as you want. Be sure to leave a blank space
between each option, and start
each option with a minus (-) sign
For example, change the Target input of c:\sm11\SYSTEM\pmill.exe
to:
c:\sm11\SYSTEM\pmill.exe -f"c:\files\part1.pm4"
-m"c:\files\mymacro.mcl".
8. Select OK when your change is made.
9. Make a new application shortcut icon on your desktop for this
customized startup. Select this
icon to use the customized startup.
=============================================
Fred Lauzus, CAM Programming Coordinator
High Steel Structures, Incorporated
mailto:[EMAIL PROTECTED] http://www.highsteel.com
=============================================
-----Original Message-----
From: Kevin Clark [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, October 03, 2001 4:41 PM
To: SmartCam Fourm
Subject: [mfg-smartcam] Getting SmartCam to run Macro at startup?
I had a major hard drive malfunction a couple of weeks back and lost
smart cam files.
Does anyone know how to make smart cam run a macro at start up. You
know when you double click on the icon on the desk top?
I know that there is a command you can type in the properties of the
icon to get it to run a macro.
I got this off the Backup text file for editing the options in windows
explorer.
Something like this:
This line needs to be in Explorer / View / Options / Filetype(tab) /
PM4(scroll down)/ EDIT /EDIT/ Application used to perform action box
C:\SM9\SYSTEM\pmill.exe %1 -mg:\awpshop\macros\startup.mcl
The %1 indicates the file you double click on, and must be before the
startup macro (-m...), NOT after. All the startup macro currently does
is set a macro variable to the correct date.
But I can't figure out how to do it when first launching Smart Cam
Any help would be appreciated.
Thanks
--
Kevin M. Clark
Programmer
Abbott workholding Inc.
======================================================================
To find out more about this mailing list including how to unsubscribe,
send the message "info mfg-smartcam" to [EMAIL PROTECTED]
======================================================================
======================================================================
To find out more about this mailing list including how to unsubscribe,
send the message "info mfg-smartcam" to [EMAIL PROTECTED]
======================================================================
======================================================================
To find out more about this mailing list including how to unsubscribe,
send the message "info mfg-smartcam" to [EMAIL PROTECTED]
======================================================================