---
title: 【FAQ_756】マクロ実行時に異常終了する不具合
description: マクロの最終行に「Kousa」という記述がなくても動作は可能です。最終行に「Kousa」の記述があると、起動直後に自動的にマクロ「Kousa」が実行される仕様になっています。
---

[コンテンツまでスキップ](https://support.assistengineer.com/ja-jp/assistengineer-knowledge/マクロ実行時に異常終了する不具合#main-content)

日本語 - 日本

翻訳のサブメニューを表示

![アシストエンジニア](https://support.assistengineer.com/hs-fs/hubfs/%E3%82%A2%E3%82%B7%E3%82%B9%E3%83%88%E3%83%AD%E3%82%B4.png?width=494&height=64&name=%E3%82%A2%E3%82%B7%E3%82%B9%E3%83%88%E3%83%AD%E3%82%B4.png)

- ホーム
- 製品
- 価格
- ブログ
- 会社

メインナビゲーションを開く

メインナビゲーションを閉じる

- ホーム
- 製品
- 価格
- ブログ
- 会社
- 日本語 - 日本
  
  翻訳のサブメニューを表示
- [お問い合わせ](https://share-na2.hsforms.com/2EM4y3pr-RQu57xIXla3qTg41tzyq)

[お問い合わせ](https://share-na2.hsforms.com/2EM4y3pr-RQu57xIXla3qTg41tzyq)

 何かお困りですか？

- 検索フィールドが空なので、候補はありません。

1. [アシストエンジニア ナレッジベース](https://support.assistengineer.com/ja-jp/assistengineer-knowledge?hsLang=ja-jp)
2. [Creo Elements/Direct](https://support.assistengineer.com/ja-jp/assistengineer-knowledge/creo-elements-direct?hsLang=ja-jp)
3. [図面＆印刷](https://support.assistengineer.com/ja-jp/assistengineer-knowledge/creo-elements-direct?hsLang=ja-jp#%E5%9B%B3%E9%9D%A2%E5%8D%B0%E5%88%B7)

# 【FAQ\_756】マクロ実行時に異常終了する不具合

## Drafting（クラシックUI）でマクロを実行すると反応がなくすぐに終了してしまい、次回起動時にカスタマイズファイルを読み込めない状態になる。インストールフォルダを削除すると正常に戻る。マクロ自体は従来から使用できていたコマンドのみで構成されている。原因を特定できず、TRACEでも判別できない。

マクロの最終行に「Kousa」という記述がなくても動作は可能です。最終行に「Kousa」の記述があると、起動直後に自動的にマクロ「Kousa」が実行される仕様になっています。標準環境ではデフォルト設定のままで、カスタマイズしたマクロは含まれていません。マクロを読み込ませる場合は、「startup.m」または「customize.m」に「INPUT '任意のマクロファイル名'」のように記述し、起動時に読み込ませたうえで、キーボードからマクロ名を入力して実行する方法が一般的です。過去の環境で記述が必要だった場合は、その環境の仕様に合わせて記述を追記する必要があります。なお、環境ごとにカスタマイズの内容が異なるため、標準環境と動作が異なる場合がある点に注意してください。

- [Creo Parametric](https://support.assistengineer.com/ja-jp/assistengineer-knowledge/creo-parametric?hsLang=ja-jp#main-content)

    - [アセンブリ](https://support.assistengineer.com/ja-jp/assistengineer-knowledge/creo-parametric?hsLang=ja-jp#%E3%82%A2%E3%82%BB%E3%83%B3%E3%83%96%E3%83%AA)
    - [インストール](https://support.assistengineer.com/ja-jp/assistengineer-knowledge/creo-parametric?hsLang=ja-jp#%E3%82%A4%E3%83%B3%E3%82%B9%E3%83%88%E3%83%BC%E3%83%AB)
    - [スケッチ](https://support.assistengineer.com/ja-jp/assistengineer-knowledge/creo-parametric?hsLang=ja-jp#%E3%82%B9%E3%82%B1%E3%83%83%E3%83%81)
    - [その他モジュール](https://support.assistengineer.com/ja-jp/assistengineer-knowledge/creo-parametric?hsLang=ja-jp#%E3%81%9D%E3%81%AE%E4%BB%96%E3%83%A2%E3%82%B8%E3%83%A5%E3%83%BC%E3%83%AB)
    - [データ管理](https://support.assistengineer.com/ja-jp/assistengineer-knowledge/creo-parametric?hsLang=ja-jp#%E3%83%87%E3%83%BC%E3%82%BF%E7%AE%A1%E7%90%86)
    - [データ変換](https://support.assistengineer.com/ja-jp/assistengineer-knowledge/creo-parametric?hsLang=ja-jp#%E3%83%87%E3%83%BC%E3%82%BF%E5%A4%89%E6%8F%9B)
    - [モデリング](https://support.assistengineer.com/ja-jp/assistengineer-knowledge/creo-parametric?hsLang=ja-jp#%E3%83%A2%E3%83%87%E3%83%AA%E3%83%B3%E3%82%B0)
    - [ライセンス](https://support.assistengineer.com/ja-jp/assistengineer-knowledge/creo-parametric?hsLang=ja-jp#%E3%83%A9%E3%82%A4%E3%82%BB%E3%83%B3%E3%82%B9)
    - [解析](https://support.assistengineer.com/ja-jp/assistengineer-knowledge/creo-parametric?hsLang=ja-jp#%E8%A7%A3%E6%9E%90)
    - [図面＆印刷](https://support.assistengineer.com/ja-jp/assistengineer-knowledge/creo-parametric?hsLang=ja-jp#%E5%9B%B3%E9%9D%A2%E5%8D%B0%E5%88%B7)
    - [製造](https://support.assistengineer.com/ja-jp/assistengineer-knowledge/creo-parametric?hsLang=ja-jp#%E8%A3%BD%E9%80%A0)
    - [板金](https://support.assistengineer.com/ja-jp/assistengineer-knowledge/creo-parametric?hsLang=ja-jp#%E6%9D%BF%E9%87%91)
- [Creo Elements/Direct](https://support.assistengineer.com/ja-jp/assistengineer-knowledge/creo-elements-direct?hsLang=ja-jp#main-content)

    - [ライセンス](https://support.assistengineer.com/ja-jp/assistengineer-knowledge/creo-elements-direct?hsLang=ja-jp#%E3%83%A9%E3%82%A4%E3%82%BB%E3%83%B3%E3%82%B9)
    - [データ変換](https://support.assistengineer.com/ja-jp/assistengineer-knowledge/creo-elements-direct?hsLang=ja-jp#%E3%83%87%E3%83%BC%E3%82%BF%E5%A4%89%E6%8F%9B)
    - [データ管理](https://support.assistengineer.com/ja-jp/assistengineer-knowledge/creo-elements-direct?hsLang=ja-jp#%E3%83%87%E3%83%BC%E3%82%BF%E7%AE%A1%E7%90%86)
    - [アセンブリ](https://support.assistengineer.com/ja-jp/assistengineer-knowledge/creo-elements-direct?hsLang=ja-jp#%E3%82%A2%E3%82%BB%E3%83%B3%E3%83%96%E3%83%AA)
    - [その他モジュール](https://support.assistengineer.com/ja-jp/assistengineer-knowledge/creo-elements-direct?hsLang=ja-jp#%E3%81%9D%E3%81%AE%E4%BB%96%E3%83%A2%E3%82%B8%E3%83%A5%E3%83%BC%E3%83%AB)
    - [モデリング](https://support.assistengineer.com/ja-jp/assistengineer-knowledge/creo-elements-direct?hsLang=ja-jp#%E3%83%A2%E3%83%87%E3%83%AA%E3%83%B3%E3%82%B0)
    - [図面＆印刷](https://support.assistengineer.com/ja-jp/assistengineer-knowledge/creo-elements-direct?hsLang=ja-jp#%E5%9B%B3%E9%9D%A2%E5%8D%B0%E5%88%B7)
    - [インストール](https://support.assistengineer.com/ja-jp/assistengineer-knowledge/creo-elements-direct?hsLang=ja-jp#%E3%82%A4%E3%83%B3%E3%82%B9%E3%83%88%E3%83%BC%E3%83%AB)
    - [スケッチ](https://support.assistengineer.com/ja-jp/assistengineer-knowledge/creo-elements-direct?hsLang=ja-jp#%E3%82%B9%E3%82%B1%E3%83%83%E3%83%81)
    - [解析](https://support.assistengineer.com/ja-jp/assistengineer-knowledge/creo-elements-direct?hsLang=ja-jp#%E8%A7%A3%E6%9E%90)
- [Creo View](https://support.assistengineer.com/ja-jp/assistengineer-knowledge/creo-view?hsLang=ja-jp#main-content)

    - [その他モジュール](https://support.assistengineer.com/ja-jp/assistengineer-knowledge/creo-view?hsLang=ja-jp#%E3%81%9D%E3%81%AE%E4%BB%96%E3%83%A2%E3%82%B8%E3%83%A5%E3%83%BC%E3%83%AB)
    - [解析](https://support.assistengineer.com/ja-jp/assistengineer-knowledge/creo-view?hsLang=ja-jp#%E8%A7%A3%E6%9E%90)
    - [インストール](https://support.assistengineer.com/ja-jp/assistengineer-knowledge/creo-view?hsLang=ja-jp#%E3%82%A4%E3%83%B3%E3%82%B9%E3%83%88%E3%83%BC%E3%83%AB)
    - [モデリング](https://support.assistengineer.com/ja-jp/assistengineer-knowledge/creo-view?hsLang=ja-jp#%E3%83%A2%E3%83%87%E3%83%AA%E3%83%B3%E3%82%B0)
    - [ライセンス](https://support.assistengineer.com/ja-jp/assistengineer-knowledge/creo-view?hsLang=ja-jp#%E3%83%A9%E3%82%A4%E3%82%BB%E3%83%B3%E3%82%B9)
    - [データ変換](https://support.assistengineer.com/ja-jp/assistengineer-knowledge/creo-view?hsLang=ja-jp#%E3%83%87%E3%83%BC%E3%82%BF%E5%A4%89%E6%8F%9B)
    - [図面＆印刷](https://support.assistengineer.com/ja-jp/assistengineer-knowledge/creo-view?hsLang=ja-jp#%E5%9B%B3%E9%9D%A2%E5%8D%B0%E5%88%B7)
- [Creo Simulate](https://support.assistengineer.com/ja-jp/assistengineer-knowledge/creo-simulate?hsLang=ja-jp#main-content)

    - [ライセンス](https://support.assistengineer.com/ja-jp/assistengineer-knowledge/creo-simulate?hsLang=ja-jp#%E3%83%A9%E3%82%A4%E3%82%BB%E3%83%B3%E3%82%B9)
    - [データ変換](https://support.assistengineer.com/ja-jp/assistengineer-knowledge/creo-simulate?hsLang=ja-jp#%E3%83%87%E3%83%BC%E3%82%BF%E5%A4%89%E6%8F%9B)
    - [解析](https://support.assistengineer.com/ja-jp/assistengineer-knowledge/creo-simulate?hsLang=ja-jp#%E8%A7%A3%E6%9E%90)
    - [インストール](https://support.assistengineer.com/ja-jp/assistengineer-knowledge/creo-simulate?hsLang=ja-jp#%E3%82%A4%E3%83%B3%E3%82%B9%E3%83%88%E3%83%BC%E3%83%AB)
    - [スケッチ](https://support.assistengineer.com/ja-jp/assistengineer-knowledge/creo-simulate?hsLang=ja-jp#%E3%82%B9%E3%82%B1%E3%83%83%E3%83%81)
    - [モデリング](https://support.assistengineer.com/ja-jp/assistengineer-knowledge/creo-simulate?hsLang=ja-jp#%E3%83%A2%E3%83%87%E3%83%AA%E3%83%B3%E3%82%B0)
- [Mathcad](https://support.assistengineer.com/ja-jp/assistengineer-knowledge/mathcad?hsLang=ja-jp#main-content)

    - [インストール](https://support.assistengineer.com/ja-jp/assistengineer-knowledge/mathcad?hsLang=ja-jp#%E3%82%A4%E3%83%B3%E3%82%B9%E3%83%88%E3%83%BC%E3%83%AB)
    - [ライセンス](https://support.assistengineer.com/ja-jp/assistengineer-knowledge/mathcad?hsLang=ja-jp#%E3%83%A9%E3%82%A4%E3%82%BB%E3%83%B3%E3%82%B9)
    - [解析](https://support.assistengineer.com/ja-jp/assistengineer-knowledge/mathcad?hsLang=ja-jp#%E8%A7%A3%E6%9E%90)
    - [その他モジュール](https://support.assistengineer.com/ja-jp/assistengineer-knowledge/mathcad?hsLang=ja-jp#%E3%81%9D%E3%81%AE%E4%BB%96%E3%83%A2%E3%82%B8%E3%83%A5%E3%83%BC%E3%83%AB)
- [Windchill](https://support.assistengineer.com/ja-jp/assistengineer-knowledge/windchill?hsLang=ja-jp#main-content)

    - [データ変換](https://support.assistengineer.com/ja-jp/assistengineer-knowledge/windchill?hsLang=ja-jp#%E3%83%87%E3%83%BC%E3%82%BF%E5%A4%89%E6%8F%9B)
    - [インストール](https://support.assistengineer.com/ja-jp/assistengineer-knowledge/windchill?hsLang=ja-jp#%E3%82%A4%E3%83%B3%E3%82%B9%E3%83%88%E3%83%BC%E3%83%AB)
    - [その他モジュール](https://support.assistengineer.com/ja-jp/assistengineer-knowledge/windchill?hsLang=ja-jp#%E3%81%9D%E3%81%AE%E4%BB%96%E3%83%A2%E3%82%B8%E3%83%A5%E3%83%BC%E3%83%AB)
    - [データ管理](https://support.assistengineer.com/ja-jp/assistengineer-knowledge/windchill?hsLang=ja-jp#%E3%83%87%E3%83%BC%E3%82%BF%E7%AE%A1%E7%90%86)
    - [モデリング](https://support.assistengineer.com/ja-jp/assistengineer-knowledge/windchill?hsLang=ja-jp#%E3%83%A2%E3%83%87%E3%83%AA%E3%83%B3%E3%82%B0)
    - [ライセンス](https://support.assistengineer.com/ja-jp/assistengineer-knowledge/windchill?hsLang=ja-jp#%E3%83%A9%E3%82%A4%E3%82%BB%E3%83%B3%E3%82%B9)
    - [図面＆印刷](https://support.assistengineer.com/ja-jp/assistengineer-knowledge/windchill?hsLang=ja-jp#%E5%9B%B3%E9%9D%A2%E5%8D%B0%E5%88%B7)
- [Arbortext](https://support.assistengineer.com/ja-jp/assistengineer-knowledge/arbortext?hsLang=ja-jp#main-content)

    - [インストール](https://support.assistengineer.com/ja-jp/assistengineer-knowledge/arbortext?hsLang=ja-jp#%E3%82%A4%E3%83%B3%E3%82%B9%E3%83%88%E3%83%BC%E3%83%AB)
    - [ライセンス](https://support.assistengineer.com/ja-jp/assistengineer-knowledge/arbortext?hsLang=ja-jp#%E3%83%A9%E3%82%A4%E3%82%BB%E3%83%B3%E3%82%B9)
    - [その他モジュール](https://support.assistengineer.com/ja-jp/assistengineer-knowledge/arbortext?hsLang=ja-jp#%E3%81%9D%E3%81%AE%E4%BB%96%E3%83%A2%E3%82%B8%E3%83%A5%E3%83%BC%E3%83%AB)
- [その他](https://support.assistengineer.com/ja-jp/assistengineer-knowledge/%E3%81%9D%E3%81%AE%E4%BB%96?hsLang=ja-jp#main-content)

    - [データ管理](https://support.assistengineer.com/ja-jp/assistengineer-knowledge/%E3%81%9D%E3%81%AE%E4%BB%96?hsLang=ja-jp#%E3%83%87%E3%83%BC%E3%82%BF%E7%AE%A1%E7%90%86)
    - [ライセンス](https://support.assistengineer.com/ja-jp/assistengineer-knowledge/%E3%81%9D%E3%81%AE%E4%BB%96?hsLang=ja-jp#%E3%83%A9%E3%82%A4%E3%82%BB%E3%83%B3%E3%82%B9)
    - [インストール](https://support.assistengineer.com/ja-jp/assistengineer-knowledge/%E3%81%9D%E3%81%AE%E4%BB%96?hsLang=ja-jp#%E3%82%A4%E3%83%B3%E3%82%B9%E3%83%88%E3%83%BC%E3%83%AB)
    - [その他モジュール](https://support.assistengineer.com/ja-jp/assistengineer-knowledge/%E3%81%9D%E3%81%AE%E4%BB%96?hsLang=ja-jp#%E3%81%9D%E3%81%AE%E4%BB%96%E3%83%A2%E3%82%B8%E3%83%A5%E3%83%BC%E3%83%AB)
    - [データ変換](https://support.assistengineer.com/ja-jp/assistengineer-knowledge/%E3%81%9D%E3%81%AE%E4%BB%96?hsLang=ja-jp#%E3%83%87%E3%83%BC%E3%82%BF%E5%A4%89%E6%8F%9B)

- ホーム
- 製品
- 価格
- ブログ
- 会社

[![アシストエンジニア](https://support.assistengineer.com/hs-fs/hubfs/%E3%82%A2%E3%82%B7%E3%82%B9%E3%83%88%E3%83%AD%E3%82%B4.png?width=494&height=64&name=%E3%82%A2%E3%82%B7%E3%82%B9%E3%83%88%E3%83%AD%E3%82%B4.png "アシストエンジニア")](https://assistengineer.com/)

<https://www.facebook.com/> <https://www.twitter.com/> <https://www.instagram.com/> <https://podcasts.apple.com/> [mailto:email@email.com](mailto:email@email.com)

Copyright © 2026, 株式会社アシストエンジニア