構文
BOOL GetSiteCondition(unsigned short * uUsage, double * dNorth, double * dKenpei,
unsigned short * bBoka,
unsigned short * bKado, double * dKenpeiMax, double * dYoseki, doulbe * dYosekiMax, unsigned short * bAbsHeightSw,
double dAbsHeight,
unsigned short * bRoadObliqSw, double dRoadObliqSlope, unsigned short * bNorthObliqSw,
double * dNorthObliqHeight, double * dNorthObliqSlope, unsigned short * bNeighborObliqSw, double
* dNeighborObliqHeight,
double * dNeighborObliqSlope,
unsigned short * bHLObliqSw, BSTR * szHeightLimitTypeName,
unsigned short * uHeightLimitType,
unsigned short * uHeightLimitTypeRoad, double * dHeightLimitTypeH1,
double * dHeightLimitTypeK1,
double * dHeightLimitTypeH2, double * dHeightLimitTypeK2, double
* dHeightLimitTypeH3,
unsigned short * bShadowSw, double * dShadowHeight, double * dShadowTime1, double
* dShadowTime2,
unsigned short * bHokkaido, double * dLatitude, double * dLongitude);
敷地条件を取得します。
パラメータ
- 0未指定。
- 1第1種低層住居専用地域。
- 2第2種低層住居専用地域。
- 3第1種中高層住居専用地域。
- 4第2種中高層住居専用地域。
- 5第1種住居地域。
- 6第2種住居地域。
- 7準住居地域。
- 8近隣商業地域。
- 9商業地域。
- 10準工業地域。
- 11工業地域。
- 12工業専用地域。
- 13指定なし。
- 0絶対高さ。
- 1一段階斜線。
- 2一段階斜線+絶対高さ。
- 3二段階斜線。
- 4二段階斜線+絶対高さ。
- 0反対側の境界線。
- 1道路の中心線。
戻り値
敷地条件を取得できた場合 0 以外を返します。できなかった場合は 0 を返します。
使用例
// 間取りオブジェクトへ接続 CMadoriDoc * m_MadoriDoc = new CMadoriDoc(); CLSIDFromProgID (L"MyHomeDesignerMadori.MadoriDoc", &clsid); GetActiveObject (clsid, NULL, &pUnk); pUnk->QueryInterface (IID_IDispatch, (void**)(&pDisp)); m_MadoriDoc->AttachDispatch (pDisp); // 敷地を設定 USHORT uUsage = 1; DOUBLE dNorth = 20; DOUBLE dKenpei = 20; USHORT bBoka = FALSE; USHORT bKado = FALSE; DOUBLE dKenpeiMax = 60; DOUBLE dYoseki = 400; DOUBLE dYosekiMax = 500; USHORT bAbsHeightSw = FALSE; DOUBLE dAbsHeight = 10; USHORT bRoadObliqSw = FALSE; DOUBLE dRoadObliqSlope = 20; USHORT bNorthObliqSw = FALSE; DOUBLE dNorthObliqHeight = 30; DOUBLE dNorthObliqSlope = 50; USHORT bNeighborObliqSw = FALSE; DOUBLE dNeighborObliqHeight = 10; DOUBLE dNeighborObliqSlope = 20; USHORT bHLObliqSw = FALSE; BSTR szHeightLimitTypeName = NULL; // = ::SysAllocString( L"Some text"); USHORT uHeightLimitType = 2; USHORT uHeightLimitTypeRoad = 0; DOUBLE dHeightLimitTypeH1 = 3; DOUBLE dHeightLimitTypeK1 = 5; DOUBLE dHeightLimitTypeH2 = 7; DOUBLE dHeightLimitTypeK2 = 9; DOUBLE dHeightLimitTypeH3 = 10; USHORT bShadowSw = TRUE; DOUBLE dShadowHeight = 5; DOUBLE dShadowTime1 = 6; DOUBLE dShadowTime2 = 7; USHORT bHokkaido = FALSE; DOUBLE dLatitude = 34; DOUBLE dLongitude = 35; BOOL bRet = m_MadoriDoc->GetSiteCondition( &uUsage, &dNorth, &dKenpei, &bBoka, &bKado, &dKenpeiMax, &dYoseki, &dYosekiMax, &bAbsHeightSw, &dAbsHeight, &bRoadObliqSw, &dRoadObliqSlope, &bNorthObliqSw, &dNorthObliqHeight, &dNorthObliqSlope, &bNeighborObliqSw, &dNeighborObliqHeight, &dNeighborObliqSlope, &bHLObliqSw, &szHeightLimitTypeName, &uHeightLimitType, &uHeightLimitTypeRoad, &dHeightLimitTypeH1, &dHeightLimitTypeK1, &dHeightLimitTypeH2, &dHeightLimitTypeK2, &dHeightLimitTypeH3, &bShadowSw, &dShadowHeight, &dShadowTime1, &dShadowTime2, &bHokkaido, &dLatitude, &dLongitude);