Gary,
A helpful thing to do would be to turn on the "Record Macro" and go thru the steps you describe, then stop the macro recording. Then open the macro you just recorded in a text editor and look at the macro commands for each step you performed. From here, you can start substituting variables for the "hard-coded" information. You will then have a functioning macro.
It will take a bit of time to figure out exactly where you will want to use variables, and how to apply them, but it isn't that hard. Just start asking questions here in the forum.
To keep it simple in the beginning, you might want to start with your geometry already grouped, then record your macro. Inserting a line before the geometry, then a lead in, can be accomplished by using "Lead in" twice. The first time, select the end point, and use Line Angle = 0 / Length = yourDesiredLength.
 
Regards,
Chris
-----Original Message-----
From: gary [mailto:[EMAIL PROTECTED]
Sent: Friday, February 28, 2003 6:43 AM
To: [EMAIL PROTECTED]
Subject: [mfg-smartcam] Macro question

I am finding myself doing the same task over and over again.
 
Unfortunaly I am not very skilled in creating macros.
 
Any help, pointers or samples would be greatly appreciated.
 
I would like to create a macro to do the following.
 
 
 
@@@
 
Start macro
 
prompt for geometry (profile) selection
 
(select geometry)
 
match layer, tool, step, offset, geometry direction
 
Insert a line before the selected geometry (prompt for length, angle, and the Z starting level )
 
add a lead in before the line ( 1 mm 45 Deg  a prompt would be nice )
 
add "@compl" before the lead in
 
go to the end of the complete profile
 
add a exit line (prompt for length and angle)
 
End of macro
 
@@@
 
 
The ultimate would be to apply the above to every profile in a selected group.
 
Can this be done ?
 
 
Thank you for your time.
 
 
Regards,
Gary

Reply via email to