自動執行 Script

您必須建立 omanimator.cfg 檔,才能自動執行 Script。

程序

  1. 在建立內,建立名為 omanimator.cfg 的檔名。
  2. 為檔案提供下列參數:
    • 路徑,在其中鍵入 "..",以便將檔案產生在上一層目錄。
    • 檔案類型,您在其中選取其他

結果

當動畫啟動時,如果 IBM® Rational® Rhapsody® 找到名為 omanimator.cfg 的檔案,則它會執行該檔案。此方法對於大型專案或包含 GUI 的專案來說非常有用,這是因為可以撰寫 Script 並自動執行該 Script(如下列範例):

//================================================
// Switch off the animation before starting
watch
// Run with animation off to create all objects
go idle
// Switch animation back on
display


// Run continuously
go
//================================================

意見回饋