CONTENTS |
Prev | Index | Next |
* Outside Process *As for the Outside Process, order was described, extension ".ops " the file, to whichReading, it does the operation which is indicated there. Basic operation, is output of the data, execution of the external program and input of the data. You write the method of writing " the.ops " file, afterwards. |
* Ops Format *In line head, MSGBAR, MSGBOX, INPUT, SELECT, ONE, SELECT, MANY, OUT_FILE, INP_FILE, EXEC, LOOP and ENDBecause it has judged with the け which means saying whether certain, we ask by all means with the line head. (# comment) In addition, please describe with 1 line concerning operational 1. Simply, 1 line reading this, it processes being When you write over 2 lines you think it becomes error. Presently, because the territory where operation is remembered is taken with 100, we ask up to with 100. Way there is a problem with 100, if, it tries to take dynamically to become, you try to cope, but temporarily with this. * # (comment line) *As for prescribed form,# comment (it is good writing whatever) So, please write " the # " on the line head. * MSGBAR *As for prescribed form,MSGBAR, " message " So, the data 1 it is 1 line. " Message " is indicated in the status bar under the window of the SagCad. * INPUT *As for prescribed form,INPUT, " keyword " and " message " So, the data 1 it is 1 line. When input of the data from the keyboard is necessary, you use. The character string data which is inputted is outputted in " the keyword " and simultaneous. * MSGBOX *As for prescribed form,MSGBOX, " message " So, the data 1 it is 1 line. In the dialogue, " message " is sent. * SELECT and ONE *As for prescribed form,SELECT, ONE and obj, " keyword ", " message " and COPY So, the data 1 it is 1 line. When input of the data from the mouse is necessary, you use. " Message " is indicated in the status bar. The data is just 1. When 1 it is chosen, it advances to the following processing immediately. Obj: It selects the element 1: Point 2: Line 4: Circular arc 8: Circle 128: Optional point 256: Size figure 512: Poly- line 2048: Ellipse COPY: Is the data which selected how done? COPY: It leaves that way as a computer aided design data. CUT: It deletes from the computer aided design data. If just the line is sought, 2 you insert If the line and the point, the 1+2=3, with 3 is inserted. When calculating the optional point just, the right click is used. * SELECT and MANY *As for prescribed form,SELECT, MANY and obj, " keyword ", " message " and COPY So, the data 1 it is 1 line. When input of the data from the mouse being the large quantity necessary, you use. When this time, it selects the data, moving to the following processing, the Outside Process When starting, you pushed, please push the button. * OUT_FILE *As for prescribed form,OUT_FILE, " out_file_name " So, the data 1 it is 1 line. The data (the home) / keeps accumulating the INPUT and the SELECT to the.sagcad/osp_temp.txt. When and, being this order, movement & name modification are done in the out_file_name. * INP_FILE *As for prescribed form,INP_FILE, " in_file_name " So, the data 1 it is 1 line. When being this order, the data is inputted from the in_file_name. * EXEC *As for prescribed form,EXEC, " command1 " and " command2 " So, the data 1 it is 1 line. It makes the shell execute. Inserting the space, it attaches " the command1 " and " the command2 ". You think " the command1 " even just it is good, but that time as for " the command2 ", " " please do. * LOOP *As for prescribed form,LOOP and N Is. With it flies to the processing which is indicated " N ". " N ", writing here, it is MSGBAR MSGBOX INPUT SELECT and ONE SELECT and MANY OUT_FILE INP_FILE EXEC LOOP END And so on 1,2,3.. the.n it counts from above. It counts nothing except of comment and description above. When note) the LOOP is used, because there is no end, please push CANCELLATION. * END *As for prescribed form,END Is. It is end of the Outside Process. |
* Output example of SagCad *INPUT, " radius ", " 12.5 " INPUT, " name " and " Yutaka Sagiya " START, " base point " Input/output common various figure data <--- 後に詳細があります。 END (, X and Y) <--- SELECT,ONE のとき、選択時のマウスの座標が入る。 NOW_LAYER,1 NOW_COLOR,0 NOW_STYLE,1 LAYER_INFO 1500000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 EOF |
* Input type of SagCad *NOW_LAYER,1 NOW_COLOR,0 NOW_STYLE,1 LAYER_INFO 1500000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 START Input/output common various figure data <--- 後に詳細があります。 END EOF |
* Input/output common various figure data *Layer From layer number 0 up to 255 Style Line kind 0: Solid line 1: Solid line 2: Dotted line 3: Dashed line 4: Two point chain lines Color Color As for hexadecimal with the 0xrrggbb, being decimal, yes. That time, you do not attach the 0x. R: Red G: Green B: Blue First if " the 0x " is attached, if at hexadecimal number, it is not, decimal. < Point * line * circular arc * circle >--- <例> ---POINT, layer, color, style, X and Y LINE, layer, color, style, sx, sy, EX and ey ARC, layer, color, style, CX, cy, r, sx, sy, EX and ey CIRCLE, layer, color, style, CX, cy and r < Ellipse >--- <例> ---ELLIPSE, layer, color, style, CX, cy, DX, dy, K, sa and ea CX Elliptic central X coordinate CY Elliptic central Y coordinate DX Designates the elliptic center as base point relative X coordinate to the point of the extended shaft which DY Designates the elliptic center as base point relative Y coordinate to the point of the extended shaft which K Compression SA Start angle EA End angle < Size >--- <例> ---DIMENSION, layer, Text, UpperText, LowerText, FontType, FontHeight, FontSpace and Angle, SearchPointX, SearchPointY, StartPointX, StartPointY and index <- 実際は1行 ASSISTLINE, defin, SX, SY, EX, EY, CX, CY and r ASSISTLINE, defin, SX, SY, EX, EY, CX, CY and r ASSISTLINE, defin, SX, SY, EX, EY, CX, CY and r * DIMENSION Layer From layer number 0 up to 255 Text Size value (the text) with " " " " with surrounding, it increases. UpperText Upper limit tolerance (the text) with " " " " with surrounding, it increases. LowerText The lower limit tolerance (the text) with " " " " with surrounding, it increases. FontType In Linux edition, 1 (the vector font) is. FontHeight It is height of letter. FontSpace It is interval of letter. Angle It is angle of letter. SearchPointX X coordinate of the point in order to search the size data. SearchPointY Y coordinate of the point in order to search the size data. FitPointX Letter is written out position 0: The left 1: The inside 2: The right FitPointY Letter is written out position 0: The bottom 1: The inside 2: The top Index The auxiliary line which follows afterwards (the AssistLine) the quantity. * ASSISTLINE Defin 0: Point 1: Line 2: Circular arc 4: Circle 10: In terminus arrow (line) 11: In terminus arrow (line) 20: On both ends arrow (line) 21: On both ends arrow (line) 30: Opposite arrow to both ends (line) 31: Opposite arrow to both ends (line) (40) : In starting point arrow (circular arc) (50) In terminus arrow (circular arc) 60: On both ends arrow (circular arc) 61: On both ends arrow (circular arc) 70: Auxiliary line (The SX and the SY) - (the EX and the EY) with the straight line which is appointed. Starting point side, configuration - size - just the length which is appointed with the offset from starting point indication It does not do. Terminus side, configuration - size - just the length which is appointed at auxiliary line extended length extends. 80: (Arrow) extension of auxiliary line (The SX and the SY) - (the EX and the EY) with the straight line which is appointed, configuration - size - at auxiliary line extended length the finger Just the length which fixed is done extends terminus. < Curved line >--- <例> ---POLYLINE, layer, color, style, code, split, pitch, frag and index VERTEX, X and Y VERTEX, X and Y Code 8: Poly- line 16: Spline interpolation 32: B spline curved line (64) : Bezier curve Split It is number of partitions. Pitch It is pitch. Frag 0: Closing, it is 1: Closing, it is Index The apex which follows afterwards (the VERTEX) the quantity. |
Outside Process |
Prev | Index | Next |