setPlotType eInvalidInput
開發執行環境:VS2010 + CAD2014X64
出錯程式碼:
void SetPlotWindowArea(const double xmin,const double ymin, const double xmax,const double ymax )
{
m_es = m_pPSV->setPlotType(m_pPlotSettings,AcDbPlotSettings::kWindow);
m_es = m_pPSV->setPlotWindowArea(m_pPlotSettings,xmin,ymin,xmax,ymax);
}
解決方法:先>setPlotWindowArea後setPlotType
修改後程式碼:
void SetPlotWindowArea(const double xmin,const double ymin, const double xmax,const double ymax )
{
m_es = m_pPSV->setPlotWindowArea(m_pPlotSettings,xmin,ymin,xmax,ymax);
m_es = m_pPSV->setPlotType(m_pPlotSettings,AcDbPlotSettings::kWindow);
出錯程式碼:
void SetPlotWindowArea(const double xmin,const double ymin, const double xmax,const double ymax )
{
m_es = m_pPSV->setPlotType(m_pPlotSettings,AcDbPlotSettings::kWindow);
m_es = m_pPSV->setPlotWindowArea(m_pPlotSettings,xmin,ymin,xmax,ymax);
}
解決方法:先>setPlotWindowArea後setPlotType
修改後程式碼:
void SetPlotWindowArea(const double xmin,const double ymin, const double xmax,const double ymax )
{
m_es = m_pPSV->setPlotWindowArea(m_pPlotSettings,xmin,ymin,xmax,ymax);
m_es = m_pPSV->setPlotType(m_pPlotSettings,AcDbPlotSettings::kWindow);