06-27-2018 01:50 PM
Know how to create a new SmartFrame2d, but can't seem to find the trick to resizing one programmatically. Seems like it would be obvious, but can't find the method.
I thought maybe the Range method but that simply returns the range, doesn't set it.
07-18-2018 05:35 AM
I have the same question. By the past, a document named 'Development using GM engine' contained some examples of SmartFrames2D in a layout sheet. I can not find it today.
Are the different options in SmartFrames2D documented somewhere?
07-18-2018 06:51 AM
Are you looking for this: https://hgdsupport.hexagongeospatial.com/API/GeoMedia/Building%20on%20the%20GeoMedia%20Engine/#layou... ?
07-18-2018 09:27 AM
Here's what I did.
frame.SetKeyPoint(2, xPosition, yPosition, 0);
where frame is the SmartFrame2d,
2 is the 2nd key point,
xPosition is the x position on the sheet in meters,
yPosition is the y position on the sheet in meters,
0 is the z position
A key point, is one of the square handles around the frame, when it is selected, that you can grab with the mouse.
There are 8 key points, from 0-7.
0 is lower left, and is also the origin point.
1 is lower right
2 is upper right
3 is upper left
4 is lower mid point
5 is right mid point
6 is upper mid point
7 is left mid point
Another approach is to simply scale the object using:
where 1.5, or whatever, is the scale factor.
Let me know if you need help getting the SmartFrame2d object.