Overview | Statement List | Example


更新组件

Synopsis

obj = UPDATE/component[,ROOT,'directory'][,REPORT][,'reference set name'][,PART,'part'][,IFERR,label:]

Description

Update allows you to replace a reference set and/or substitute a component stored in memory-it does not update the data on the disk. If you specify a reference set only, then only the reference set is replaced. If you specify a part only, then the component is substituted for the given part. If you specify both the reference set and the part, then UPDATE substitutes the component using the specified reference set. You may only change the reference set name for an immediate child part of the current work part.

Parameters

Parameter

Description

component

An existing V10 component (cannot be pre-V10) object which represents the component to be updated. If no object is specified, all components in the active part are updated.

ROOT

Minor word which indicates that a directory specification follows. This option is only valid when the PART minor word.

'directory'

This is the name of the directory from which to get the part when substituting a component. The default root directory is the current directory.

REPORT

Minor word which indicates that the update report is to be sent to the listing device.

'reference set name'

A string or string variable which represents the name of a reference set to be used for the update. The reference set name may be different from the one used to create the component if the reference set is part of the component's part file.

PART

Minor word which indicates that a part file name follows.

'part'

A string literal or string variable which represents the name of the part to substitute as the new component in the assembly.

IFERR,label:

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

 


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