读取revit信息并用gdiplus显示出来
bool CDlgDwgImage::CDwgPaint::ChargeLine(const RMatrix &xForm, RLine *pLine)
{
RPoint pt1, pt2;
pLine->GetPoint(0, pt1);
pLine->GetPoint(1, pt2);
xForm.TransPoint3D(RPoint(pt1), (pt1));
xForm.TransPoint3D(RPoint(pt2), (pt2));
Gdiplus::Color color(GetColor(pLine->GetStyleId()));
Gdiplus::Pen pen(color, m_penWidth);
m_graphics.DrawLine(&pen, Gdiplus::Point(pt1[0], pt1[1]), Gdiplus::Point(pt2[0], pt2[1]));
return true;
}
2022-12-29 11:03:52
128KB
revit
1