GetDefWallThick メソッド

構文

void GetDefWallThick(double* dDefWallThick);

(JavaScript用) string GetDefWallThickJS();

壁厚の既定値を取得します。

パラメータ

dDefWallThick
壁厚の既定値

使用例

// C++ sample
// 間取りオブジェクトへ接続
CMadoriDoc * m_MadoriDoc = new CMadoriDoc();
CLSIDFromProgID (L"MyHomeDesignerMadori.MadoriDoc", &clsid);
GetActiveObject (clsid, NULL, &pUnk);
pUnk->QueryInterface (IID_IDispatch, (void**)(&pDisp));
m_MadoriDoc->AttachDispatch (pDisp);

double dDefWallThick;
m_MadoriDoc->GetDefWallThick(&dDefWallThick);
CString strMsg;
strMsg.Format(TEXT("壁厚%lf"), dDefWallThick);
AfxMessageBox(strMsg);
// JavaScript sample
var doc = new CMadoriDoc();

var data = eval( doc.GetDefWallThickJS() );

var msg = " Result[" + data.Result + "]\r\n";
msg += " DefWallThick[" + data.DefWallThick + "]";
alert(msg);