Bentley Communities
Bentley Communities
  • Site
  • User
  • Site
  • Search
  • User
ProjectWise
  • Product Communities
ProjectWise
ProjectWise Design Integration Forum Rules Engine: Defining version string
    • Sign In

    • State Verified Answer
    • +4 person also asked this people also asked this
    • Replies 24 replies
    • Answers 1 answer
    • Subscribers 74 subscribers
    • Views 10815 views
    • Users 0 members are here
    • administrator
    • ProjectWise
    • version
    • Rules Engine

    Rules Engine: Defining version string

    Morten Sørensen
    Offline Morten Sørensen over 8 years ago

    Hey all

    Hope someone can help me with this. Because I'm not quite seeing the full picture.

    Where do I define the Rules Engine's default version string: XYY.ZZ...??? 

    According to the document "ProjectWise Rules Engine Guide_v2.docx" I can have the Rules Engine control the versioning of documents in PW, by using the action type "CHANGE_REV_NO".

    The default version string is: XYY.ZZ
    X = prefix letter
    YY = Major numerical revision
    ZZ = Minor numerical revision

     But where do I, for example, define the prefix letter (X)..??

     Thanks..!!

    • Sign in to reply
    • Cancel

    Top Replies

    • Peter Willmen
      Offline Peter Willmen Wed, Jul 14 2021 11:05 AM in reply to Peter Willmen +3
      During a recent rare quiet time I have managed to get this functionality working without the use of a Stored Procedure and using standard ProjectWise configuration. It allows the use of any Revision…
    • Morten Sørensen
      Offline Morten Sørensen Thu, Jun 18 2015 5:51 AM +1 verified
      Sorry for the late response. I was the one who asked the original quenstion and we figured out how to define the version string to our needs. You don't need to mess around in the database, all you need…
    • Arturas Zidonis
      0 Offline Arturas Zidonis Fri, Dec 5 2014 9:26 AM
      Hi,

      I think you cannot change this prefix letter from ProjectWise interface.

      However, if you know 'Micorosoft SQL Server Management Studio' good enough you can change this prefix letter in Stored Procedure named 'wreIncrementVersionNumber' under ProjectWise database.
      By default there should be two stored procedures (under ProjectWise database > Programmability > Stored Procedures > wreIncrementVersionNumber). Modify this storedprocedure and change the letter 'P' in this row - SET @revisionPrefix = 'P'.

      Regards,
      Arturas

         
      This is a test

      • Cancel
      • Vote Up 0 Vote Down
      • Sign in to reply
      • Verify Answer
      • Reject Answer
      • Cancel
    • Philip Las Gourgues
      0 Offline Philip Las Gourgues Tue, Jun 16 2015 3:00 AM in reply to Arturas Zidonis
      Hi Arturas,

      This is very strange that the prefix can't be changed. I was hoping to set the prefix to equal my revision letter/number and the numerical version to be appended to that to create the full vesion number.

      So for revision A you'd have versions A.01, A.02, A.03 etc
      Then for revision B you'd have versions B.01, B.02 etc
      And so on

      I was then going to use a state to change from alphabetic to numeric major revision after the document was approved for construction

      So first approved for construction revision would be 0 and versions of that would be 0.01, 0.02 etc
      Then for first post AFC revision it would be 1 with versions 1.01, 1.02 etc.

      I'm guessing this is not possible?

      Regards,

      Philip Las Gourgues
      • Cancel
      • Vote Up 0 Vote Down
      • Sign in to reply
      • Verify Answer
      • Cancel
    • Arturas Zidonis
      0 Offline Arturas Zidonis Tue, Jun 16 2015 3:53 AM in reply to Philip Las Gourgues
      Hi Philip,

      In ProjectWise Rules Engine the default revision string is XYY.ZZ as written in documentation and this cannot be changed from ProjectWise Interface.

      So the only way changes could be done is in stored procedures on a database.

      Regards,
      Arturas

         
      This is a test

      • Cancel
      • Vote Up 0 Vote Down
      • Sign in to reply
      • Verify Answer
      • Cancel
    • Philip Las Gourgues
      0 Offline Philip Las Gourgues Tue, Jun 16 2015 4:08 AM in reply to Arturas Zidonis
      Hi Arturas,

      Thanks for your reply. I'm happy to conform with that default revision string format but I'm guessing I can't change 'X' to match the revision letter of the document? This is the part I find very puzzling. I would have thought only having this set to "P" would satisfy very few users.

      Regards,
      Philip Las Gourgues
      • Cancel
      • Vote Up 0 Vote Down
      • Sign in to reply
      • Verify Answer
      • Cancel
    • Arturas Zidonis
      0 Offline Arturas Zidonis Thu, Jun 18 2015 4:40 AM in reply to Philip Las Gourgues
      Hi Philip,

      My colleague sent me a tip how 'X' can be changed from ProjectWise Interface. So this could be done by changing the default value of the custom revision attribute 'REV_RV' in the examples template, from P0.1 to A0.1. But I'm not sure if this will work for you cause you want to change the prefix to be the same as revision.
      Are you changing revision attribute manually? maybe this could be achieved by using Select Statement in 'REV_RV' default value..

      Regards,
      Arturas

         
      This is a test

      • Cancel
      • Vote Up 0 Vote Down
      • Sign in to reply
      • Verify Answer
      • Cancel
    >

    Communities
    • Home
    • Getting Started
    • Community Central
    • Products
    • Support
    • Secure File Upload
    • Feedback
    Support and Services
    • Home
    • Product Support
    • Downloads
    • Subscription Services Portal
    Training and Learning
    • Home
    • About Bentley Institute
    • My Learning History
    • Reference Books
    Social Media
    •    LinkedIn
    •    Facebook
    •    Twitter
    •    YouTube
    •    RSS Feed
    •    Email

    © 2023 Bentley Systems, Incorporated  |  Contact Us  |  Privacy |  Terms of Use  |  Cookies