Overview | Statement List | Example


导入现有Part零件

Synopsis

RPATT/'filespec'[{,matrix|,csys,scale}][,LAYER][,PLMODS,value][,NOVIEW][,RETCAM,number][,IFERR,label:]

Description

Imports an existing part file from the specified directory into the currently displayed part. This statement is not object-valued and does not import the part as a group. For importing grouped parts, use the RPATTG statement.

Parameters

Parameter

Description

'filespec'

The filespec parameter contains the file specification data for the file to be imported.

matrix

A previously defined matrix which determines the location and orientation, or orientation and scale, of the part being imported.

csys,scale

A previously defined coordinate system and a scale factor which determine the orientation and scale of the part being imported. The scale factor must be a positive value.

LAYER

Minor word which causes the part to be imported onto the same layers as when it was created.

PLMODS

Minor word which indicates that a parts list parameter is to be specified.

value

Integer between 1 and 4 inclusive which specifies how the system handles parts list data associated with the part being imported. These values are as follows:

1 - Indicates that no parts list information is imported. This is the default.

2 - Indicates that the default parts list format data is imported. When this happens, the default data replaces the parts list format data of the current part.

3 - Indicates that the imported part is added to the parts list as a single group (one-object entry).

4 - Indicates that all parts list entries on the imported part are added individually to the parts list data of the current part. The parts list format data is also imported.

NOVIEW

Minor word which indicates that no views are imported when the part is imported. The geometry is imported into the existing views based on the current model mode (MODEL or VIEW DEPENDENT). If NOVIEW is omitted, the views in the part being imported are also imported.

RETCAM

Minor word which controls how manufacturing data (tools, parameter sets, and operations) is handled.

number

Integer between 1 and 3 inclusive which specifies how the system handles duplicate manufacturing object names in both the current and the imported part. These values are as follows:

1 - Indicates that no manufacturing data is imported. This is the default.

2 - Indicates that the operation terminates and no objects are imported when duplicate manufacturing names occur.

3 - Indicates that the operation is to continue and duplicate manufacturing objects are renamed when duplicate manufacturing names occur.

IFERR,label:

The IFERR parameter specifies a label to which the program jumps if an error occurs.

NOTE: If a non-orthogonal matrix is used to transform a part containing arcs, conics, drafting objects or dimensions, the error message CANNOT TRANSFORM displays.


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