|
Gary,
The
first thing you need to do is find Chapter 6 "Automating SmartCam with Macros"
in the SmartCam Customization Manual on your CD. Print it out. All the following
information and a lot more can be found there.
If you
open your macro in a text editor, you will see the various commands which
perform the work. The element will be represented by EL=yourElementNumber. You
need to provide a variable to replace "yourElementNumber", which can be any
combination of integers and letters preceded by the pound # sign. The macro
command VAR_REMOVE_ALL[] will clear all variables so that you start with a clean
slate. Also, you can make use of the system variable GRP(1), which represents
the first element in any group.
So, to
put it all together:
--
Add "VAR_REMOVE_ALL[]" (omit quotes) to the beginning of your macro. Make
it a line by itself. This will clear all variables to start.
-- On
another line, add the variable declaration: "#elmt=GRP(1)" (omit quotes). This
will initialize the variable #elmt with the first element in your
group.
--
Next, substitute "EL=#elmt" (omit quotes) for every place you find
"EL=yourElementNumber" This will allow the macro to work with any grouped
element, no matter what its element number is.
Now
group your geometry and try running your macro. If it doesn't work and you can't
figure out what's wrong, post it on the forum and someone will try to
help.
Regards,
Chris
|
- [mfg-smartcam] macro question B Rider
- RE: [mfg-smartcam] macro question Greg King
- [mfg-smartcam] Macro question gary
- [mfg-smartcam] Macro question Jeff
- RE: [mfg-smartcam] Macro question Michael Senack
- RE: [mfg-smartcam] Macro question Pete Ruehle
- [mfg-smartcam] Macro question gary
- RE: [mfg-smartcam] Macro question Chris . Kocourek
- [mfg-smartcam] macro question gary
- RE: [mfg-smartcam] macro question Michael Senack
- Re: [mfg-smartcam] macro question Chris . Kocourek
- RE: [mfg-smartcam] macro question Michael Senack
- RE: [mfg-smartcam] macro question FLauzus
- [mfg-smartcam] Macro question gary
- RE: [mfg-smartcam] macro question Pete Ruehle
- [mfg-smartcam] Macro Question Bob Manganello
- RE: [mfg-smartcam] Macro Question FLauzus
- RE: [mfg-smartcam] Macro Question Bob Manganello
- RE: [mfg-smartcam] Macro Question Chris . Kocourek
