With these commands you can edit existing 2D objects.
COMPLEMENT
COMPLEMENT <arc> ENTER
It draws the selected circular or elliptic arcs complement and deletes the original.
arc (obj): the arc to be modified
TRIM
TRIM <prim1 prim2> ENTER
If the two selected objects have an intersection point this command deletes the parts of the objects which are on the other side of the intersection point. If the objects don't have an intersection point the command extends their lines to have a common point.
prim1, prim2 (obj): the objects to trim/extend
e.g.: #LINE SINGLE 10 10 10 5 15 0 20 0;; #TRIM 10 5 15 0;
#LINE SINGLE 10 10 10 -5 5 0 20 0;; #TRIM 10 5 15 0;
-These two command lines results the same a perpendicular line starting from (10,10) ending at (20,0) and going through (10,0).
SELECT
TRIM SELECT <prim1 <prim> ENTER> ENTER
It adjusts (extends or trims) the selected objects to the firstly selected which won't be modified.
prim1 (obj): the object the others will be adjusted to
prim (obj): an object to be trimmed/extended
e.g.: #LINE 0 0 10 0;; #LINE SINGLE 1 10 1 8 2 6 2 1 3 4 3 2 4 5 4 1; #TRIM SELECT 0 0 1 9 2 1 3 2 4 2;;
-It adjusts all the vertical lines by setting their lower endpoint's y coordinates to zero.
TRIMFIRST
TRIMFIRST <prim1 prim2> ENTER
It adjusts (trims or extends) the firstly selected object to the second which won't be modified.
prim1 (obj): the object to be trimmed/extended
prim2 (obj): the object to adjust to
e.g.: #LINE SINGLE 10 10 10 5 15 0 20 0;; #TRIM 10 5 15 0;
-It creates two lines, one between (10,10) and (10,0) and the second connecting (15,0) with (20,0).
SPLIT
SPLIT [FIRST] <prim1 prim2> ENTER
It cuts the selected objects at their intersection point. If you use the switch 'FIRST' only the first object will be cut into parts.
prim1 (obj): the first object to split
prim2 (obj): the second object to be split
e.g.: #LINE SINGLE 10 10 10 0 5 5 15 5; #SPLIT 10 7 7 5;
-It creates 4 lines. The endpoints will be (10,10), (10,5) and (10,5), (10,0) and (5,5), (10,5) and (10,5), (15,5).
HEREBY
SPLIT HEREBY <prim> ENTER
It cuts the selected object at its nearest intersection point with another 2D geometrical object.
prim (obj): the object to be cut
e.g.: #LINE SINGLE 10 10 10 0 5 5 15 5; #SPLIT HEREBY 10 7;
-It creates 3 lines. The endpoints will be (10,10), (10,5) and (10,5), (10,0) and (5,5), (15,5).
ALL
SPLIT ALL <prim> ENTER
It cuts the selected object at its all intersection points with other 2D geometrical objects.
prim (obj): the object to be cut
e.g.: #LINE SINGLE 0 5 20 5 5 10 5 0 10 10 10 0 15 10 15 0; #SPLIT ALL 0 5;
-It cuts the horizontal line into 4 parts.
SECTION
SPLIT SECTION <coord1 coord2 <prim> ENTER> ENTER
This command splits the selected objects with a dummy line (an imaginary line which won't be drawn). The objects will be cut at the intersection points.
coord1, cooord2 (point): the endpoints of the dummy line
prim (obj): the objects to be cut
e.g.: #LINE 10 10 20 10;; LINE DPARALLEL 15 10 -1 -2 -3;; #SPLIT SECTION 15 30 15 -30 15 10 15 11 15 12 15 13;;
-It splits all the horizontal lines at their midpoints.
OUT
SPLIT OUT <coord1 coord2> ENTER
It deletes the part of an object between the two given points and creates new objects from the remaining parts.
coord1, coord2 (point): the points the part of an object will be deleted between
e.g.: #LINE 0 0 20 0;; #SPLIT OUT 10 0 15 0;
-It creates two lines, one between (0,0) and (10,0) and the second between (15,0) and (20,0).
MODIFY ENDP
MODIFY ENDP <prim coord> ENTER
This command relocates the one endpoint of the selected objects which is closer to the selecting point. The object can be a line or a (circular or elliptic) arc.
prim (obj): the object to be modified
coord (point): the new place of the endpoint
e.g.: #LINE SINGLE 10 0 10 10; #MODIFY ENDP 10 10 20 0;
-The result of this two commands wil be a line between (10,0) and (20,0).
MODIFY LENGTH
MODIFY LENGTH <prim coord> ENTER
It modifies the selected object's (line, arc) length. The endpoint will be relocated which is closer to the selecting point. The new place will be the point of the extension of the object which is the nearest given in the parameter 'coord'.
prim (obj): the object to be modified
coord (point): a point to determine the new place of the endpoint
e.g.: #LINE SINGLE 10 0 15 0; #MODIFY LENGTH 15 0 20 3;
-The result of this two commands wil be a line between (10,0) and (20,0).
MODIFY NUMLENGTH
MODIFY NUMLENGTH <prim length> ENTER
It modifies the selected object's (line, arc) length by relocating the selected endpoint. The new length will be the given measured from the endpoint which stays at place. If the length is negative the new place of the moving endpoint will be on the other side of the staying one.
prim (obj): the object to be modified
length (real): the new length of the object
e.g.: #LINE SINGLE 10 0 15 0; #MODIFY NUMLENGTH 10 10 10;
-The result of this two commands wil be a line between (10,0) and (20,0).
MODIFY LDISTANCE
MODIFY LDISTANCE <prim length> ENTER
It modifies the selected object's (line, arc) length by relocating the selected endpoint. The length of the object will be modified with the given.
prim (obj): the object to be modified
length (real): the length with which the existing will be modified
e.g.: #LINE SINGLE 10 0 15 0; #MODIFY LDISTANCE 15 0 5;
-The result of this two commands wil be a line between (10,0) and (20,0).
MODIFY ARC
MODIFY ARC <line {coord|{RADIUS rad|DIAMETER dia| PERIMETER per|ARC height} sel_point}}> ENTER
It creates an arc from the selected line. The two endpoints of the arc are the former endpoints and the arc can be defined with one point of its circumference or with the arc's radius, diameter, perimeter or height. In the latter cases the arc from the two possible is selected by a nearby.
line (obj): the line to be transformed
coord (point): a point on the arc's circumference
rad (real): the radius of the arc
dia (real): the diameter of the arc
per (real): the perimeter of the arc
height (real): the height of the arc
sel_point (point): from the two possible arcs the one will be selected which has the nearest point to this parameter
e.g.: #LINE SINGLE 10 0 20 0; #MODIFY ARC 15 0 RADIUS 5 8 6;
-It creates an arc with the radius of 5. The center of the arc will be (15,0), the central angle will be 180° and the line of the arc goes over the y axis.
MODIFY LINE
MODIFY LINE <arc> ENTER
It creates a straight line from the selected arc. The endpoints of the line will be the endpoints of the former arc.
arc (obj): the arc to be transformed
e.g.: #ARC P3 10 0 20 0 15 5; #MODIFY LINE 15 5;
-it creates a line between (10,0) and (20,0).
MODIFY CIRCLE
MODIFY CIRCLE <arc> ENTER
This command closes the selected arc. (Turns into a circle or ellipse.)
arc (obj): the arc to be closed
e.g.: #ARC P3 10 0 20 0 15 5; #MODIFY CIRCLE 15 5;
-It creates a circle with the center (15,0) and the radius of 5.
MODIFY CONNECT
MODIFY CONNECT <{<line> ENTER | OPENCHAIN line}> ENTER
It creates from the selected lines a polyline. Nothing will be modified on the drawing but the logical type of the lines will be changed. If you use the option 'OPENCHAIN' the program will automatically look for the parts of the series. In the other case you have to select the lines one by one.
line (obj): a line to be involved in the polyline
PEDIT
With this command you can edit polylines. All of the examples below assumes an existing polylines with the following nodes: (10,0), (12,3), (15,0), (15,5) and (20,10).
ADDNODE
PEDIT ADDNODE <line coord> ENTER
It adds a new node to the selected polyline between the endpoints of the selected section.
line (obj): the segment in which the new node will be inserted
coord (point): the place of the new node
e.g.: #PEDIT ADDNODE 15 2 17 2;
-It adds a new node between (15,0) and (15,5). Its location will be (17,2)
NOTE: This command can be used on simple lines, too. In this case the command creates two new lines with a connection but their type won't be changed to polyline.
DELETENODE
PEDIT DELETENODE <node> ENTER
It removes the selected node from a polyline.
node (obj): the node to be deleted
MOVENODE
PEDIT MOVENODE <node coord> ENTER
This command relocates the selected node.
node (obj): the node to be moved
coord (point): the new location of the node
e.g.: #PEDIT MOVENODE 15 5 15 7;
-It lengthens the third segment of the polyline.
DELPART
PEDIT DELPART <line> ENTER
This command deletes the selected segment of a polyline. If the segment is not the first or the last, the remaining parts won't be connected instead they will form two separate polylines.
line (obj): the segment of a polyline to be deleted
e.g.: #PEDIT DELPART 15 2;
-The result will be two polylines. The first's nodes will be (10,0), (12,3) and (15,0). The second will have only one segment, a line between (15,5) and (20,10).
PEDIT SLICE
PEDIT SLICE <polyline> ENTER
It cuts the selected polyline into separate lines. Nothing will be changed on the drawing, only the logical type of the elements will be effected.
polyline (obj): the polyline to be sliced
SMOOTH
PEDIT SMOOTH <polyline> ENTER
It replaces the selected polyline with a spline which has the same nodes as the polyline had.
polyline (obj): the polyline to be modified
SPEDIT
With these commands you can edit existing splines. All of the examples below assume a spline, which is created with the following commands: #LINE 10 0 12 3 15 0 15 5 20 10;; #MODIFY CONNECT 10 0; #PEDIT SMOOTH 10 0;
ADDNODE
SPEDIT ADDNODE <segm coord> ENTER
It adds a new node to the selected spline between the endpoints of the selected section.
segm (obj): the segment in which the new node will be inserted
coord (point): the place of the new node
e.g.: #SPEDIT ADDNODE 15 2 17 2;
-It adds a new node between (15,0) and (15,5). Its location will be (17,2)
DELETENODE
SPEDIT DELETENODE <node> ENTER
It removes the selected node from a spline.
node (obj): the node to be deleted
MOVENODE
SPEDIT MOVENODE <node coord> ENTER
This command relocates the selected node.
node (obj): the node to be moved
coord (point): the new location of the node
e.g.: #SPEDIT MOVENODE 11.5 2.7 12 5;
-The new place of the (12,3) node will be (12,5).
DELPART
SPEDIT DELPART <segm> ENTER
It removes the selected segment from the spline. The remaining parts won't be connected and their outfit won't be modified.
segm (obj): the segment to be deleted
Comments
0 comments
Article is closed for comments.