Regular expression to test if a reference is invalid (forbidden characters)
default reference patterns, generates references like PART_00001 and DOC_00001
Raises a ValueError if reference is not valid.
Raises a ValueError if revision is not valid.
Returns a new reference for creating a PLMObject of type cls.
user is the user who will create the object.
By default, the formatting is PART_000XX if cls is a subclass of Part and DOC_000XX otherwise.
The number is the count of Parts or Documents plus start plus 1. It is incremented while an object with the same reference already exists. start can be used to create several creation forms at once.
Parts and documents have an independent reference number. For example, the first suggested part reference is PART_00001 and the first suggested document is DOC_00001 even if parts have been created.
Note
The returned referenced may not be valid if a new object has been created after the call to this function.
Parses reference and returns the reference number. The reference number is the text that increases after each creation of a new document or part.
Parameters: |
|
---|---|
Returns: | the reference number, 0 if there is no reference |
Return type: | int |