Does anyone know how to calculate drawing view height and width by view outline.
I can get drawing view outline using API "ProDrawingViewOutlineGet". I want to know how to get view height and width using this outline ?
Thanks,
Suresh
I can get drawing view outline using API "ProDrawingViewOutlineGet". I want to know how to get view height and width using this outline ?
Thanks,
Suresh
Following is the right code:
Transform3D sheetTransp = drawing.GetSheetTransform(sheetNumber);
Outline3D outline = view.GetOutline();
Point3D point1 = Point3D.create();
point1.set(0, outline.get(0).get(0));
point1.set(1, outline.get(0).get(1));
point1.set(2, outline.get(0).get(2));
Point3D point2 = Point3D.create();
point2.set(0, outline.get(1).get(0));
point2.set(1, outline.get(1).get(1));
point2.set(2, outline.get(1).get(2));
Point3D point11 = sheetTransp.TransformPoint(point1);
Point3D point21 = sheetTransp.TransformPoint(point2);
double width = point21.get(0) - point11.get(0);
double height = point21.get(1) - point11.get(1);
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.