Hi all
I got some problems with the pattern angle in Connect. The angle of the pattern is relative to the angle between the first two points in the shape. I expected it to be relative to a horizontal line. To illustrate my problem I've made a small test program:
DPoint3d pts[5]; pts[0].x = pts[0].y = 0; pts[1].x = 10000; pts[1].y = 3000; pts[2].x = 3000; pts[2].y = 8000; pts[3].x = -2000; pts[3].y = 2000; pts[4].x = pts[4].y = 0; for (int i = 0; i < 5; i++) pts[i].z = 0; EditElementHandle eeh; ShapeHandler::CreateShapeElement(eeh, NULL, pts, 5, true, *ISessionMgr::GetActiveDgnModelRefP()); PatternParamsPtr patPar = PatternParams::Create(); patPar->SetPrimarySpacing(500.0); patPar->SetPrimaryAngle(fc_piover180*45); patPar->SetSecondarySpacing(500.0); patPar->SetSecondaryAngle(fc_piover180*135); ShapeHandler::GetInstance().AddPattern(eeh, *patPar, NULL, 0); eeh.AddToModel();
If you close the designfile and open it in V8i you will see that the pattern is now displayed correctly - the angle of the pattern is relative to a horizontal line. What can I do to make the pattern look that way in Connect ?
TIA...
Regards, Evan