Example: Edit Coordinates While Creating an Object

When creating an object in a map using a tool such as Create Area, right in the middle of the process we can edit coordinates in the Record pane's Coordinates tab.   This example shows the step by step process.

 

eg_content_record_coords01_00.png

 

We begin with a new, blank drawing open in a window.  As described in the Editing Drawings topic, we choose Create Area for the mode button in the main toolbar.

 

eg_content_record_coords01_00a.png

 

We click to mark the first vertex of the area.  The Record pane automatically appears, showing the Values tab.

 

eg_content_record_coords01_01.png

 

We move the mouse over the Record pane, to click on the Coordinates tab to show the list of coordinates being built.  The coordinates of the first click appear in blue preview color in the first Coordinates list row.  

 

eg_content_record_coords01_01a.png

 

 

Moving the mouse back over the drawing window we can continue to draw the area.  The editing session stays alive even if we move the mouse away from and then back into the drawing window in which we are editing.   We can even move the mouse into a different application, like a web browser, do some work in the web browser, and then when we return to Manifold the edit-in-process will be exactly where we left it.

 

eg_content_record_coords01_02.png

 

In the drawing window we click the second vertex location and immediately a second row appears in the Coordinates list.

 

eg_content_record_coords01_03.png

 

In the drawing window we click the third location, to add a third vertex and a third row of coordinates.

 

eg_content_record_coords01_04.png

 

Suppose that although we are not yet finished with creating the area, we would like to alter the position of the second vertex, to use more even numbers for the coordinates.   We can double-click into the X coordinate box and change the value, pressing Enter when done.

 

eg_content_record_coords01_04a.png

 

Likewise, to enter a more even number for the Y coordinate we can double-click into the Y coordinate box and change the value, pressing Enter when done.

 

eg_content_record_coords01_04b.png

 

We can move the locations of vertices in a more visible way by changing X and Y coordinate values.   If we double-click into the X cell for the first vertex, and we enter the same X value as in the next row,  the two vertices will both have the same X values and thus line up vertically.

 

eg_content_record_coords01_04c.png

 

As soon as we press Enter to finish editing the vertex moves to line up with the vertex above it.   While we are at it, we will double-click into the Y cell for that vertex and edit the long coordinate to an even value.

 

eg_content_record_coords01_05.png

 

 

Suppose now we would like to align the third vertex to the same horizontal location as the second vertex.   We double-click into the Y cell for that vertex and enter the same Y value as the preceding vertex.  

 

eg_content_record_coords01_05a.png

 

As soon as we press Enter to finish editing the vertex moves up to the same horizontal, Y level as the preceding vertex.   We will edit the X cell for the third vertex as well.

 

eg_content_record_coords01_06.png

 

The result is a precise, right angled triangle where all the coordinates for vertices are simple integers.

 

We are still in Create Area mode, so we an add a fourth vertex to create a rectangle, if we like.   We could do that by clicking a fourth time into the map at the approximate location for the fourth vertex, and then we could use the Coordinates pane to even up the coordinates of the fourth vertex to form a precise rectangle.

 

eg_content_record_coords01_07.png

 

Or, if we like, we can specify the location of the next vertex by entering values directly into the Coordinates list, if we prefer that to clicking with the mouse in the drawing window.   

 

We double-click into one of the coordinate boxes in the new coordinate row marked by an * asterisk in the row handle.  

 

eg_content_record_coords01_08.png

 

We enter the same Y value as for the first vertex, so the fourth vertex will be on the same horizontal level.   

 

When adding a new coordinate row if we enter just one of the coordinates and press Enter, the system will auto-complete the second coordinate by copying the corresponding value from the immediately preceding coordinate row.  This is a convenient way of adding coordinates that align vertically or horizontally.   In this case, when we enter a Y value for the new vertex...

 

eg_content_record_coords01_09.png

 

...as soon as we press Enter, the system will auto-complete the new coordinate row by coping the X value from the preceding coordinate row.   If we do not like that we can, of course, double-click into the X cell and change the value to whatever we want.   Press Add Record to create the area.

 

eg_content_record_coords01_10.png

 

We can see that a new, rectangular area object has been created in the drawing.  To confirm the coordinates of the vertices are as we created them, we can Shift-Alt-click the area.

 

eg_content_record_coords01_11.png

 

That launches the Coordinates tab of the Record pane to display the coordinates.   Note that the very last coordinate of an area is the same as the first coordinate, automatically added when the area was created to close the area boundary that defines the area object.

 

See Also

Getting Started

 

User Interface Basics

 

Maps

 

Drawings

 

Editing Drawings

 

Layers Pane

 

Record Pane

 

Example: Layers Tutorial - We take a tour of the Layers pane in the Contents pane, learning how to manage layer display order, select layers, turn several layers on and off at the same time, alter opacity settings for one or more layers and how to change background color.

 

Example: Edit Attributes and Move a Point - We look at the attributes for a point in a drawing layer and edit one of the attributes using a more expanded Edit dialog.  We then move the point to a new location. Easy!

 

Example: Edit Attributes, Larger Text, IME for Asian Languages - A tour showing how to edit attributes in a drawing using the Record pane Values tab and the expanded Edit dialog, including advanced Unicode facilities and use of the built in Input Method Editor (IME) to input text in Japanese language.

 

Example: Edit Covered Objects - Working with drawings where some areas completely cover smaller areas is a bad idea, but sometimes we have to work with data in that form whether we like it or not.   This topic shows techniques that can help us select and edit objects that are completely hidden by higher objects.