Overview | Statement List


创建文件

Synopsis

CREATE/{PART,'filespec'{,INCHES|MMETER}|TXT,file#[,'filespec']}[,IFERR,label:]

Description

The following statement creates either a part file or a text file in one of the 10 scratch file areas.

If you are creating a part file, a filespec is required.

If you are creating a text file, the filespec is optional. A filespec is required to file the text.

NOTE: If you are creating a part file, the new part will contain all customer default parameter values. Any GPAs defined before the CREATE/PART statement will be reset to the current customer default value.

Parameters

Parameter

Description

PART

Minor word that indicates that a new part file is to be created.

'filespec'

The filespec associated with part file creation.

INCHES,MMETER

The units of measure, inches and millimeters respectively, which will be used for the part geometry.

TXT

Minor word indicating that a text file is to be created in one of the scratch file areas which are basically used as temporary working areas.

file#

The number of the scratch file in which the new file is to be created. Ten scratch file areas are available, therefore, the specified number must be between 1 and 10.

NOTE: GRIP NC CLS files also access scratch file 1. If accessing scratch file 1, you should first check to make sure no other file is there, or that file will be lost. For example, if you use the following command to create your Cutter Location Source File (CLSF) you run the risk of overwriting scratch file 1:

CREATE/TXT,1,'pmill.cls'

See the File Management Statements table

'filespec'

The filespec associated with text file creation. The filespec for a text file is optional in the create statement because it may be specified later in the FILE statement, if the file is to be saved.

IFERR,label:

Specifies a label to which the program jumps if an error occurs.

 


Copyright ©2015 胡君NX二次开发官网(www.UGapi.com) QQ:85585969 All Rights Reserved.