IsStandardPart

<< Click to Display Table of Contents >>

Navigation:  Programming Mechworks PDM > DBWCommandShell > Commands Reference > CADSystem >

IsStandardPart

Description

Checks if a document follows the rules declared in the General -> Standard Parts options section

Syntax

call DBWShell("IsStandardPart UniqueID")

Parameters

UniqueID

unique id of the document

Results

@IS_STANDARD_PART

0: it is not a standard part
1: it is a standard part

Example

DBWShell("IsStandardPart 12434")
isStandardPart = DBWResult("@IS_STANDARD_PART")
if isStandardPart="1" then
                DBWMsgBox "12434 is a standard part"
Else
                DBWMsgBox "12434 is not a standard part"
End if