Powermill Macro Hot! -
files are the bread and butter of PowerMill automation, there is a distinction between a macro and a plugin. Macros are interpreted line-by-line by PowerMill, making them easy to write and debug. For more complex requirements, developers often move toward the PowerMill API
FILE OPEN "C:\data\holes.csv" FOR READ AS read_id WHILE NOT EOF(read_id) $line = FILE READLINE read_id $X = EXTRACT($line, 1, ",") $Y = EXTRACT($line, 2, ",") CREATE HOLE ; "Hole_$X" CIRCLE $X $Y 0 powermill macro
Let’s combine everything into a professional macro. This macro will: files are the bread and butter of PowerMill