バッチモード

Model Verification操作をバッチモードで実行します。

バッチコマンド

HyperWorksのバッチモードにModel Verificationのすべての機能を読み込むためのバッチコマンド。

<altair_home>/hm/bin/<platform>/hmbatch.exe –tcl <mvd/src\main>/batch.tcl

バッチオプション

Model Verificationをバッチモードで使用する場合に使用可能なオプションのシンタックスと説明。

交差チェック

サポートされている交差チェック用のバッチオプション。

必須引数

"%hmbatch%"
hmbatch.exeのファイルパス
値: hmbatch.exe
-tcl
batch.tclのファイルパス
値: batch.tcl
-mvd-feature
Function Name
値: intersection
-mvd-input
フォルダー / ファイル名
値:"%input%"
-mvd-input-type
%input%のCad/Fe/XMLファイルタイプ
値:" iges"
-mvd-output
結果.xmlファイル名
値:"intresult.xml"
-mvd-report
レポート出力パス
値:"%report%"

オプション引数

-nocommand
必要な入力なし
値:空白
-nouserprofiledialog
必要な入力なし
値:空白
-mvd-action
アクションタイプ
値: check/report/both
-mvd-bg
必要な入力なし
値:空白
-mvd-ncpu
現在のマシンのコア数
値:2
-mvd-log
ファイル名 / ファイル名
値: mvdLog.log
-mvd-project-name
レポート内の任意の文字列値の表示
値:“Name”
-mvd-slide-number
レポート内の任意の整数値の表示
値:“1”
-mvd-progress
ファイル名 / ファイル名
値: mvdprogress.log

バッチコマンドの例。
"%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のファイルパス
値: hmbatch.exe
-tcl
batch.tclのファイルパス
値: batch.tcl
-mvd-feature
Function Name
値: intersection
-mvd-base
フォルダーパス / ファイル名
値:"%base%"
-mvd-base-type
%input%のCad/Fe/XMLファイルタイプ
値:“iges”
-mvd-variant
フォルダーパス / ファイル名
値:"%variant%"
-mvd-variant-type
%input%のCad/Fe/XMLファイルタイプ
値:“radioss”
-mvd-output
結果.xmlファイル名
値:"compresult.xml"
-mvd-report
レポート出力パス
値:"%report%"

オプション引数

-nocommand
必要な入力なし
値:空白
-nouserprofiledialog
必要な入力なし
値:空白
-mvd-action
アクションタイプ
値: check/report/both
-mvd-report-scope
レポートオプション
値:Excel/PPT/both
-mvd-bg
必要な入力なし
値:空白
-mvd-ncpu
現在のマシンのコア数
値:2
-mvd-log
ファイル名 / ファイル名
値: mvdLog.log
-mvd-progress
ファイル名 / ファイル名
値: mvdprogress.log

バッチコマンドの例。
"%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のファイルパス
値: hmbatch.exe
-tcl
ファイルパスbatch.tcl
値: batch.tcl
-mvd-feature
Function Name
値: spotweld
-mvd-input
スポットファイルとFeファイルのフォルダーパス
値:"%input%"
-mvd-input-type
%input%のFeファイルタイプ
値:"optistruct/radioss/pam"
-mvd-output
レポート出力パス
値:"%output%"
注: スポットファイルタイプはコンフィギュレーションファイルから読み取られます。

オプション引数

-nocommand
必要な入力なし
値:空白
-nouserprofiledialog
必要な入力なし
値:空白
-mvd-action
必要なアクション
値: check/report/both
-mvd-bg
必要な入力なし
値:空白
-mvd-ncpu
現在のマシンのコア数
値:2
-mvd-log
ファイル名 / ファイル名
値: mvdLog.log
-mvd-project-name
レポート内の任意の文字列値の表示
値:“Name”
-mvd-slide-number
レポート内の任意の整数値の表示
値:“1”
-mvd-progress
ファイル名 / ファイル名
値: mvdprogress.log

バッチコマンドの例。
"%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のファイルパス
値: hmbatch.exe
-tcl
ファイルパスbatch.tcl
値: batch.tcl
-mvd-feature
Function Name
値: spotweld
-mvd-input
スポットファイルを含むフォルダーパス
値:"%input%"
-mvd-spotweld-bom
.xml ファイルパス
値:"%bomfile%"
-mvd-output
レポート出力パス
値:"%output%"
注: スポットファイルタイプはコンフィギュレーションファイルから読み取られます。

オプション引数

-nocommand
必要な入力なし
値:空白
-nouserprofiledialog
必要な入力なし
値:空白
-mvd-action
アクションタイプ
値: check/report/both
-mvd-bg
必要な入力なし
値:空白
-mvd-ncpu
現在のマシンのコア数
値:2
-mvd-log
ファイル名 / ファイル名
値: mvdLog.log
-mvd-project-name
レポート内の任意の文字列値の表示
値:"Name"
-mvd-slide-number
レポート内の任意の整数値の表示
値:“1”
-mvd-progress
ファイル名 / ファイル名
値: mvdprogress.log

バッチコマンドの例。
"%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のファイルパス
値: hmbatch.exe
-tcl
ファイルパスbatch.tcl
値: batch.tcl
-mvd-feature
Function Name
値: connection
-mvd-input
フォルダーパス
値:"%input%"
-mvd-connection-bom
.xml ファイルパス
値:"%bomfile%"
-mvd-output
レポート出力パス
値:"%output%"

オプション引数

-nocommand
必要な入力なし
値:空白
-nouserprofiledialog
必要な入力なし
値:空白
-mvd-action
アクションタイプ
値: check/report/both
-mvd-bg
必要な入力なし
値:空白
-mvd-ncpu
現在のマシンのコア数
値:2
-mvd-log
ファイル名 / ファイル名
値: mvdLog.log
-mvd-project-name
レポート内の任意の文字列値の表示
値:“Name”
-mvd-slide-number
レポート内の任意の整数値の表示
値:“1”
-mvd-progress
ファイル名 / ファイル名
値: mvdprogress.log

バッチコマンドの例。
"%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のファイルパス
値: hmbatch.exe
-tcl
ファイルパスbatch.tcl
値: batch.tcl
-mvd-feature
Function Name
値: freepart
-mvd-input
フォルダーパス(スポットファイルを含む)
値:"%input%"
-mvd- freepart-bom
XMLファイルパス
値:"%bomfile%"
-mvd-output
レポート出力パス
値:"%output%"
注: スポットファイルタイプはコンフィギュレーションファイルから読み取られます。

オプション引数

-nocommand
必要な入力なし
値:空白
-nouserprofiledialog
必要な入力なし
値:空白
-mvd-action
アクションタイプ
値: check/report/both
-mvd-bg
必要な入力なし
値:空白
-mvd-ncpu
現在のマシンのコア数
値:2
-mvd-log
ファイル名 / ファイル名
値: mvdLog.log
-mvd-project-name
レポート内の任意の文字列値の表示
値:“Name”
-mvd-slide-number
レポート内の任意の整数値の表示
値:“1”
-mvd-progress
ファイル名 / ファイル名
値: mvdprogress.log

バッチコマンドの例。
"%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のファイルパス
値: hmbatch.exe
-tcl
ファイルパスbatch.tcl
値: batch.tcl
-mvd-feature
Function Name
値: spotweld-comparison
-mvd-base
スポットファイルAのファイルパス
値:"%base%"
-mvd-variant
スポットファイルBのファイルパス
値:"%variant%"
-mvd-spotcompare-bom
.xml ファイルパス
値:"%bomfile%"
-mvd-report
レポート出力パス
値:"%report%"
注: スポットファイルタイプはコンフィギュレーションファイルから読み取られます。

オプション引数

-nocommand
必要な入力なし
値:空白
-nouserprofiledialog
必要な入力なし
値:空白
-mvd-action
アクションタイプ
値: check/report/both
-mvd-bg
必要な入力なし
値:空白
-mvd-ncpu
現在のマシンのコア数
値:2
-mvd-log
ファイル名 / ファイル名
値: mvdLog.log
-mvd-project-name
レポート内の任意の文字列値の表示
値:“Name”
-mvd-slide-number
レポート内の任意の整数値の表示
値:“1”
-mvd-progress
ファイル名 / ファイル名
値: mvdprogress.log

バッチコマンドの例。
"%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バッチファイルの例。

注:
以下の例では、“ALTAIR_HOME”と“datapath”のパスを編集する必要があります。
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