バッチモード
Model Verification操作をバッチモードで実行します。
バッチコマンド
HyperWorksのバッチモードにModel Verificationのすべての機能を読み込むためのバッチコマンド。
<altair_home>/hm/bin/<platform>/hmbatch.exe –tcl <mvd/src\main>/batch.tcl
バッチオプション
Model Verificationをバッチモードで使用する場合に使用可能なオプションのシンタックスと説明。
交差チェック
サポートされている交差チェック用のバッチオプション。
必須引数
- "%hmbatch%"
- hmbatch.exeのファイルパス
- -tcl
- batch.tclのファイルパス
- -mvd-feature
- Function Name
- -mvd-input
- フォルダー / ファイル名
- -mvd-input-type
- %input%のCad/Fe/XMLファイルタイプ
- -mvd-output
- 結果.xmlファイル名
- -mvd-report
- レポート出力パス
オプション引数
- -nocommand
- 必要な入力なし
- -nouserprofiledialog
- 必要な入力なし
- -mvd-action
- アクションタイプ
- -mvd-bg
- 必要な入力なし
- -mvd-ncpu
- 現在のマシンのコア数
- -mvd-log
- ファイル名 / ファイル名
- -mvd-project-name
- レポート内の任意の文字列値の表示
- -mvd-slide-number
- レポート内の任意の整数値の表示
- -mvd-progress
- ファイル名 / ファイル名
例
"%hmbatch%" -nocommand -nouserprofiledialog -tcl "%tcl_file%" -mvd-feature intersection
-mvd-input "%input%" -mvd-input-type "iges" -mvd-output "%output%" -mvd-report "%report%"
-mvd-action both -mvd-report-scope both -mvd-bg -mvd-ncpu 1 -mvd-log mvdLog.log -mvd-progress
mvdprogress.log
比較チェック
サポートされている比較チェック用のバッチオプション。
必須引数
- "%hmbatch%"
- hmbatch.exeのファイルパス
- -tcl
- batch.tclのファイルパス
- -mvd-feature
- Function Name
- -mvd-base
- フォルダーパス / ファイル名
- -mvd-base-type
- %input%のCad/Fe/XMLファイルタイプ
- -mvd-variant
- フォルダーパス / ファイル名
- -mvd-variant-type
- %input%のCad/Fe/XMLファイルタイプ
- -mvd-output
- 結果.xmlファイル名
- -mvd-report
- レポート出力パス
オプション引数
- -nocommand
- 必要な入力なし
- -nouserprofiledialog
- 必要な入力なし
- -mvd-action
- アクションタイプ
- -mvd-report-scope
- レポートオプション
- -mvd-bg
- 必要な入力なし
- -mvd-ncpu
- 現在のマシンのコア数
- -mvd-log
- ファイル名 / ファイル名
- -mvd-progress
- ファイル名 / ファイル名
例
"%hmbatch%" -nocommand -nouserprofiledialog -tcl "%tcl_file%"
-mvd-feature comparison -mvd-base "%base%" -mvd-base-type iges -mvd-variant
"%variant%" -mvd-variant-type dyna -mvd-output "%output%" -mvd-report "%report%"
-mvd-action both -mvd-report-scope both -mvd-bg -mvd-ncpu 1 -mvd-log mvdLog.log
-mvd-progress mvdprogress.log
スポット溶接チェック(Fe)
サポートされているスポット溶接チェック用のバッチオプション(Fe)。
必須引数
- "%hmbatch%"
- hmbatch.exeのファイルパス
- -tcl
- ファイルパスbatch.tcl
- -mvd-feature
- Function Name
- -mvd-input
- スポットファイルとFeファイルのフォルダーパス
- -mvd-input-type
- %input%のFeファイルタイプ
- -mvd-output
- レポート出力パス
オプション引数
- -nocommand
- 必要な入力なし
- -nouserprofiledialog
- 必要な入力なし
- -mvd-action
- 必要なアクション
- -mvd-bg
- 必要な入力なし
- -mvd-ncpu
- 現在のマシンのコア数
- -mvd-log
- ファイル名 / ファイル名
- -mvd-project-name
- レポート内の任意の文字列値の表示
- -mvd-slide-number
- レポート内の任意の整数値の表示
- -mvd-progress
- ファイル名 / ファイル名
例
"%hmbatch%" -nocommand -nouserprofiledialog -tcl "%tcl_file%"
-mvd-feature spotweld -mvd-input "%input%" -mvd-input-type “pam” -mvd-output
"%output%" -mvd-action both -mvd-report-scope both -mvd-bg -mvd-ncpu 1 -mvd-log
mvdLog.log -mvd-progress mvdprogress.log
スポット溶接チェック(CAD)
サポートされているスポット溶接チェック用のバッチオプション(CAD)。
必須引数
- "%hmbatch%"
- hmbatch.exeのファイルパス
- -tcl
- ファイルパスbatch.tcl
- -mvd-feature
- Function Name
- -mvd-input
- スポットファイルを含むフォルダーパス
- -mvd-spotweld-bom
- .xml ファイルパス
- -mvd-output
- レポート出力パス
オプション引数
- -nocommand
- 必要な入力なし
- -nouserprofiledialog
- 必要な入力なし
- -mvd-action
- アクションタイプ
- -mvd-bg
- 必要な入力なし
- -mvd-ncpu
- 現在のマシンのコア数
- -mvd-log
- ファイル名 / ファイル名
- -mvd-project-name
- レポート内の任意の文字列値の表示
- -mvd-slide-number
- レポート内の任意の整数値の表示
- -mvd-progress
- ファイル名 / ファイル名
例
"%hmbatch%" -nocommand -nouserprofiledialog -tcl "%tcl_file%"
-mvd-feature spotweld -mvd-input "%input%" -mvd-spotweld-bom "%bomfile%"
-mvd-output "%output%" -mvd-action both -mvd-report-scope both -mvd-bg
-mvd-ncpu 1 -mvd-log mvdLog.log -mvd-progress mvdprogress.log
接続チェック(CAD)
サポートされている接続チェック用のバッチオプション(CAD)。
必須引数
- "%hmbatch%"
- hmbatch.exeのファイルパス
- -tcl
- ファイルパスbatch.tcl
- -mvd-feature
- Function Name
- -mvd-input
- フォルダーパス
- -mvd-connection-bom
- .xml ファイルパス
- -mvd-output
- レポート出力パス
オプション引数
- -nocommand
- 必要な入力なし
- -nouserprofiledialog
- 必要な入力なし
- -mvd-action
- アクションタイプ
- -mvd-bg
- 必要な入力なし
- -mvd-ncpu
- 現在のマシンのコア数
- -mvd-log
- ファイル名 / ファイル名
- -mvd-project-name
- レポート内の任意の文字列値の表示
- -mvd-slide-number
- レポート内の任意の整数値の表示
- -mvd-progress
- ファイル名 / ファイル名
例
"%hmbatch%" -nocommand -nouserprofiledialog -tcl "%tcl_file%"
-mvd-feature connection -mvd-input "%input%" -mvd-connection-bom "%bomfile%"
-mvd-output "%output%" -mvd-action both -mvd-report-scope both -mvd-bg -mvd-ncpu
1 -mvd-log mvdLog.log -mvd-progress mvdprogress.log
フリーパートチェック(CAD)
サポートされているフリーパートチェック用のバッチオプション(CAD)。
必須引数
- "%hmbatch%"
- hmbatch.exeのファイルパス
- -tcl
- ファイルパスbatch.tcl
- -mvd-feature
- Function Name
- -mvd-input
- フォルダーパス(スポットファイルを含む)
- -mvd- freepart-bom
- XMLファイルパス
- -mvd-output
- レポート出力パス
オプション引数
- -nocommand
- 必要な入力なし
- -nouserprofiledialog
- 必要な入力なし
- -mvd-action
- アクションタイプ
- -mvd-bg
- 必要な入力なし
- -mvd-ncpu
- 現在のマシンのコア数
- -mvd-log
- ファイル名 / ファイル名
- -mvd-project-name
- レポート内の任意の文字列値の表示
- -mvd-slide-number
- レポート内の任意の整数値の表示
- -mvd-progress
- ファイル名 / ファイル名
例
"%hmbatch%" -nocommand -nouserprofiledialog -tcl "%tcl_file%"
-mvd-feature freepart -mvd-input "%input%" -mvd-output "%output%" -mvd-freepart-bom
"%bomfile%" -mvd-action both -mvd-report-scope both -mvd-bg -mvd-ncpu 1 -mvd-log
mvdLog.log -mvd-progress mvdprogress.log
スポット比較チェック
サポートされているスポット比較チェック用のバッチオプション。
必須引数
- "%hmbatch%"
- hmbatch.exeのファイルパス
- -tcl
- ファイルパスbatch.tcl
- -mvd-feature
- Function Name
- -mvd-base
- スポットファイルAのファイルパス
- -mvd-variant
- スポットファイルBのファイルパス
- -mvd-spotcompare-bom
- .xml ファイルパス
- -mvd-report
- レポート出力パス
オプション引数
- -nocommand
- 必要な入力なし
- -nouserprofiledialog
- 必要な入力なし
- -mvd-action
- アクションタイプ
- -mvd-bg
- 必要な入力なし
- -mvd-ncpu
- 現在のマシンのコア数
- -mvd-log
- ファイル名 / ファイル名
- -mvd-project-name
- レポート内の任意の文字列値の表示
- -mvd-slide-number
- レポート内の任意の整数値の表示
- -mvd-progress
- ファイル名 / ファイル名
例
"%hmbatch%" -nocommand -nouserprofiledialog -tcl "%tcl_file%"
-mvd-feature spotweld-comparison -mvd-base "%base%" -mvd-variant "%variant%"
-mvd-spotcompare-bom "%bom%" -mvd-report "%report%" -mvd-action both
-mvd-report-scope both -mvd-bg -mvd-ncpu 1 -mvd-log mvdLog.log -mvd-progress mvdprogress.log
バッチモードのエラーコード
間違った入力引数を使用した場合は、エラーメッセージが表示されます。
SL | エラーコード関数とメッセージ |
---|---|
1 | 1001 Import: Missing CAD file to XML converter |
2 | 1002 Import: Failed to import CAD |
3 | 1003 Import: Failed to export the FE part to the file |
4 | 1004 Import: Problem obtaining HyperMesh version |
5 | 1005 Import: Unable to find the result file |
6 | 1006 Import: Unable to find the XML file |
7 | 1007 Import: Failed to export the FE part to the file |
8 | 1008 Import: Unable to find the result file in Import BG |
9 | 1009 Import: Select only one module. |
10 | 1010 Import: Invalid directory name specified |
12 | 2001 Offset: Failed in license checkout for Offset |
13 | 2002 Offset: Unknown action type in Offset |
14 | 2003 Offset: Failed to export the FE part to the file in Offset |
15 | 2004 Offset: No valid modules selected |
17 | 3001 Comparison: Unable to find the result file in BG |
18 | 3002 Comparison: No valid modules selected |
19 | 3003 Comparison: Select two or more modules for reporting |
20 | 3004 Comparison: No files in module selected.Please import the modules for comparison |
21 | 3005 Comparison: Unable to compare two modules in parental relationship |
22 | 3006 Comparison: Children found for Selected Module - Import cannot be done.For Compare Check - Select two or more modules |
23 | 3007 Comparison Report: No template file specified in the configuration for excel |
24 | 3008 Comparison Report: No template worksheet specified in the configuration for excel |
25 | 3009 Comparison Report: Template file not found in Comparison for excel |
26 | 3010 Comparison Report: Worksheet not found in the template for excel |
27 | 3011 Comparison Report: Failed in license checkout |
28 | 3012 Comparison Report: Record/Result file not found |
29 | 3013 Comparison Report: No template row specified in the configuration |
30 | 3014 Comparison Report: Invalid variant index |
31 | 3015 Comparison Report: Problem obtaining HyperMesh version |
32 | 3016 Comparison Report: No template file specified in the configuration for PPT |
33 | 3017 Comparison Report: No layout specified in the configuration for PPT |
34 | 3018 Comparison Report: Template file not found in PPT |
36 | 4001 Intersection: Failed in license checkout |
37 | 4002 Intersection: No valid modules selected in Intersection |
38 | 4003 Intersection Report: No template file specified in the configuration for PPT |
39 | 4004 Intersection Report: No layout specified in the configuration for PPT |
40 | 4005 Intersection Report: Template file not found in PPT |
42 | 5001 Spotweld: Failed in license checkout |
43 | 5002 Spotweld: Unable to find connector files |
44 | 5003 Spotweld: Unable to load FE model files |
45 | 5004 Spotweld: Unable to import model, Check Configuration |
46 | 5005 Spotweld: Unable to merge the hm file in HyperMesh |
47 | 5006 Spotweld: Unable to load result file |
48 | 5007 Spotweld: Unable to load model file |
49 | 5008 Spotweld: Unexpected action type |
50 | 5009 Spotweld: No connector files found in the input path |
51 | 5009 Spotweld: No valid modules selected |
52 | 5010 Spotweld Report: Error in sphere creation |
53 | 5011 Spotweld Report: Result Model not saved successfully.Backup in output path |
54 | 5012 Spotweld Report: No template file specified in the configuration for PPT |
55 | 5013 Spotweld Report: No layout specified in the configuration for PPT |
56 | 5014 Spotweld Report: Template file not found in PPT |
58 | 6001 Connection: Failed in license checkout |
59 | 6002 Connection: Unable to calculate the centroid from surfaces of component |
60 | 6003 Connection: Unable to create lines between centroid and surfaces of component |
61 | 6004 Connection: Unable to calculate the center line direction from surface edges of component |
62 | 6005 Connection: Unable to find the appropriate line to determine the center line direction |
63 | 6006 Connection: Unable to read the boltnut.hm file in HyperMesh |
64 | 6007 Connection: Unable to find the result file in BG |
65 | 6008 Connection: Unable to load result file |
66 | 6009 Connection: Unable to load model file |
67 | 6010 Connection Unexpected action type |
68 | 6010 Connection Report: Check Result does not exist |
69 | 6011 Connection Report: No template file specified in the configuration for PPT |
70 | 6012 Connection Report: No layout specified in the configuration for PPT |
71 | 6013 Connection Report: Template file not found in PPT |
73 | 7001 Freepart: Failed in license checkout |
74 | 7002 Freepart: Unable to load FE model files |
75 | 7003 Freepart: Unable to read the freepartmodel.hm file in HyperMesh |
76 | 7004 Freepart: No Model loaded |
77 | 7005 Freepart: Unable to find the result file in BG |
78 | 7006 Freepart: Unable to find connector files |
79 | 7007 Freepart: Unexpected action type |
80 | 7008 Freepart: Unable to load result file |
81 | 7008 Freepart: Unable to load model file |
82 | 7009 Freepart: No connector files found in the input path |
83 | 7010 Freepart Report: No template file specified in the configuration for PPT |
84 | 7011 Freepart Report: No layout specified in the configuration for PPT |
85 | 7012 Freepart Report: Template file not found in PPT |
バッチファイルの例
Model Verificationバッチファイルの例。
set ALTAIR_HOME=C:\Program Files\Altair\2019
set dataPath=G:\BVT\2019\data
set hmbatch=%ALTAIR_HOME%\hm\bin\win64\hmbatch.exe
set tcl_file=%ALTAIR_HOME%\hm\scripts\MVD\mvdMain\src\main\batch.tcl
set base=%dataPath%\batch\iges
set variant=%dataPath%\batch\dyna
set output=%dataPath%\comparisonres.xml
set report=%dataPath%
cd /d g:
cd %dataPath%
IF not exist %report% (mkdir %report%)
"%hmbatch%" -nocommand -nouserprofiledialog -tcl "%tcl_file%" -mvd-feature comparison -mvd-base "%base%" -mvd-base-type iges -mvd-variant "%variant%" -mvd-variant-type dyna -mvd-output "%output%" -mvd-report "%report%" -mvd-action both -mvd-report-scope both -mvd-bg -mvd-ncpu 1 -mvd-log mvdLog.log -mvd-progress mvdprogress.log