MACROs
Hey gang,
I could use some help from the macro-wiz and witches among you. :)
I'm teaching myself MACROs in CC3 by reading the Tome and going through the tutorials. Unfortunately for me I've got no programming or scripting experience so it's easy for me to become lost. I'm not looking for a solution but at least a few hints as to what commands and structure I should follow would be helpful.
I'd like to create a macro that does the following:
Prompts the user to select a path I've drawn with FREEHAND.
Closes the path to poly with CLOSEPATH
Multipolies the new polygon to a default color with MULTIPOLY
Outlines the new multipoly in a default color (not black) with OUTLINE
Any help ya'll can provide would be deeply appreciated.
Thanks!
I could use some help from the macro-wiz and witches among you. :)
I'm teaching myself MACROs in CC3 by reading the Tome and going through the tutorials. Unfortunately for me I've got no programming or scripting experience so it's easy for me to become lost. I'm not looking for a solution but at least a few hints as to what commands and structure I should follow would be helpful.
I'd like to create a macro that does the following:
Prompts the user to select a path I've drawn with FREEHAND.
Closes the path to poly with CLOSEPATH
Multipolies the new polygon to a default color with MULTIPOLY
Outlines the new multipoly in a default color (not black) with OUTLINE
Any help ya'll can provide would be deeply appreciated.
Thanks!
Comments
To my knowledge, there is no way to close a path through a macro.
Attached you'll find an XP that operates as you wish, however there is no need to Multipoly a closed path. The XP closes your path and adds an outline as a separate entity.
You'll need first to extract the CLOSE.dll file from the attached zip file in the CC3 root folder.
To use the command :
1. Set your Fill Style to Solid.
2. Set the Line Width to the desired width of the outline
3. Set the color to the desired color of the outline
4. Launch the XP by typing CLOSE then hit Enter
5. Type the fill color then hit Enter.
6. Select your hand drawn open path.
7. Select another path or right-click to end
Here you are...
Notes
1. It seems that the UNDO command does not handle the closing (ie the path stays closed after UNDO)
2. If you set the Fill Style to a bitmap or hatch fill style, the filled entity will use said fill style instead of a solid color fill style.
3. If you want to learn more about Macros, please check my Macro Tutorials .
Hope it helps. Please feel free to ask for more options...