bilmcl
Aerospace
- Feb 1, 2008
- 3
Hi,
I use the following versioning rules in my ug_english.def file, so my assemblies will load the latest version of part from defined search paths.
My question is what is meant by this command line? - Assemblies_VersionSubstitution:\\3a\\5
To what section of the PartNameFormat does the 3a and 5 refer?
My part numbers look like
fc_100200_1.prt < fc_100200.prt < fc_100200_a.prt
This old thread, thread561-122752, touched on versioning, but did not answer my question. I have looked in UG Help, but it does not explain how parenthesis groups and sections relate.
Thanks in advance for your help.
Bil McLaughlin
Design Engineer
Rolls-Royce Corp.
! ******************************************
! ** PART NAME VERSIONS **
! ******************************************
!
! The following rules are used to describe the part names the system will use
! when searching for the version of a part for an assembly. The syntax for the
! rules follows the Regular Expressions used by the UNIX system. Leaving the
! rules blank means the system does not recognize versions of files and will
! compare complete part names when searching for parts.
! Examples follow.
!
!
! This pattern specifies the general format of versioned part names.
!
Assemblies_PartNameFormat([a-z]+_)[0-9]+)((_([0-9]+))|(_([a-z]+))|)
!
! This value decides which portion of the Assemblies_PartNameFormat rule is the
! version independent portion of the name. It consists of 2 back-slashes "\\"
! followed by the number of the section.
!
Assemblies_PartNameSubstitution:\\1
!
! This value is used to match all versions of a part in a directory.
! It consists of the Assemblies_PartNameSubstitution rule specifying the
! version independent portion of the name along with the section of the
! Assemblies_PartNameFormat rule specifying the pattern for the part version.
!
Assemblies_PartNameMatch:\\1((_([0-9]+))|(_([a-z]+))|)
!
! This value decides which portion of the Assemblies_PartNameMatch rule
! is the version portion of the name.
!
Assemblies_VersionSubstitution:\\3a\\5
!
! This value decides the sorting order that will be used to determine the latest
! version of a file if several exist.
! Note: A valid option must be specified even if file versioning is not being used.
!
Assemblies_VersionType: ALPHANUMERIC
I use the following versioning rules in my ug_english.def file, so my assemblies will load the latest version of part from defined search paths.
My question is what is meant by this command line? - Assemblies_VersionSubstitution:\\3a\\5
To what section of the PartNameFormat does the 3a and 5 refer?
My part numbers look like
fc_100200_1.prt < fc_100200.prt < fc_100200_a.prt
This old thread, thread561-122752, touched on versioning, but did not answer my question. I have looked in UG Help, but it does not explain how parenthesis groups and sections relate.
Thanks in advance for your help.
Bil McLaughlin
Design Engineer
Rolls-Royce Corp.
! ******************************************
! ** PART NAME VERSIONS **
! ******************************************
!
! The following rules are used to describe the part names the system will use
! when searching for the version of a part for an assembly. The syntax for the
! rules follows the Regular Expressions used by the UNIX system. Leaving the
! rules blank means the system does not recognize versions of files and will
! compare complete part names when searching for parts.
! Examples follow.
!
!
! This pattern specifies the general format of versioned part names.
!
Assemblies_PartNameFormat([a-z]+_)[0-9]+)((_([0-9]+))|(_([a-z]+))|)
!
! This value decides which portion of the Assemblies_PartNameFormat rule is the
! version independent portion of the name. It consists of 2 back-slashes "\\"
! followed by the number of the section.
!
Assemblies_PartNameSubstitution:\\1
!
! This value is used to match all versions of a part in a directory.
! It consists of the Assemblies_PartNameSubstitution rule specifying the
! version independent portion of the name along with the section of the
! Assemblies_PartNameFormat rule specifying the pattern for the part version.
!
Assemblies_PartNameMatch:\\1((_([0-9]+))|(_([a-z]+))|)
!
! This value decides which portion of the Assemblies_PartNameMatch rule
! is the version portion of the name.
!
Assemblies_VersionSubstitution:\\3a\\5
!
! This value decides the sorting order that will be used to determine the latest
! version of a file if several exist.
! Note: A valid option must be specified even if file versioning is not being used.
!
Assemblies_VersionType: ALPHANUMERIC