Abrir vários arquivos e executar uma rotina especifica:
- Abrir arquivo no local especificado
- Desenhar um circulo (R=5m) na origem
- Salvar e fechar arquivo
_.open "C:\Users\izakiel.paz\Desktop\teste scr\Drawing2.dwg" _.circle _non 0,0,0 5 _.qsave _.close
_.open "C:\Users\izakiel.paz\Desktop\teste scr\Drawing3.dwg" _.circle _non 0,0,0 5 _.qsave _.close
_.open "C:\Users\izakiel.paz\Desktop\teste scr\Drawing4.dwg" _.circle _non 0,0,0 5 _.qsave _.close
_.open "C:\Users\izakiel.paz\Desktop\teste scr\Drawing5.dwg" _.circle _non 0,0,0 5 _.qsave _.close
- _ (underscore) Non-localised command prefix:
- This prefix ensures that the English name of a command is used, irrelevant of the language of the version in which it is invoked.
- For example, if we have a Script calling the LINE command, by prefixing the command name with an underscore (i.e. _line) the same Script can be used in, say, a French version of AutoCAD, without needing to replace every occurrence of 'line' with 'ligne'.
Note that this prefix should also be used with command keywords to allow for cases in which the keyword does not use the the same 'key letter' when translated to another language.
- . (period) Non-redefined command prefix:
- This prefix is used to account for commands that have been redefined, ensuring that the original standard command is used and not a redefined version.
-----------------------------------------------------------------------------------
AN INTRODUCTION TO SCRIPT WRITING
_.circle _non 0,0,0 5
- _ (underscore)
Non-localised command prefix: this prefix ensures that the English name of a command is used, irrelevant of the language of the version in which it is invoked. For example, if we have a Script calling the LINE command, by prefixing the command name with an underscore (i.e. _line) the same Script can be used in, say, a French version of AutoCAD, without needing to replace every occurrence of 'line' with 'ligne'.
Note that this prefix should also be used with command keywords to allow for cases in which the keyword does not use the the same 'key letter' when translated to another language.
- . (period)
Non-redefined command prefix: this prefix is used to account for commands that have been redefined, ensuring that the original standard command is used and not a redefined version.
_.open "C:\Users\izakiel.paz\Desktop\teste scr\Drawing2.dwg" _.circle _non 0,0,0 5 _.qsave _.close
_.open "C:\Users\izakiel.paz\Desktop\teste scr\Drawing3.dwg" _.circle _non 0,0,0 5 _.qsave _.close
_.open "C:\Users\izakiel.paz\Desktop\teste scr\Drawing4.dwg" _.circle _non 0,0,0 5 _.qsave _.close
_.open "C:\Users\izakiel.paz\Desktop\teste scr\Drawing5.dwg" _.circle _non 0,0,0 5 _.qsave _.close