Skip to content

Update of user defined Field (UDF) based on another UDF

Neil DeavilleMember for 19 years
Created
16
10
0
I have an Excel spreadsheet which has two columns which relate to UDF’s on activities in Primavera.
The first column is a unique number which is already in Primavera (a unique reference to a pipe), the second is a corresponding value (the length of the pipe).

I need an easy way to update the length of the pipe in Primavera, by linking to the pipe reference in the spreadsheet.

The easiest way that I can see to do this is to export to Excel at project level, update the export spreadhseet via a lookup to my external spreadsheet and then import.
This will be very time consuming as my overall project is split over many Primavera projects, and only one Primavera project can be imported at a time.

I could update the database direct, although I am loathe to do this.

Is there a way to do this through the API?

I’m using Primavera 5

Apologies if this has already been covered, it seems like quite a simple request.

Thanks

Neil

16 replies

Oldest first
  1. 0
    Rodel Marasigan ·
    Neil,

    You can use ODBC or SDK to update your PMDB database in one go. It requires knowledge on database and use update query by linking your Excel spreadsheet to PMDB database table. You need 2 tables in PMDB database which are UDFTYPE table that identify the Users define type/ name/ projects and UDFVALUE table where all the values are stored.

    Hope this help,
    Rodel
  2. 0
    Neil Deaville ·
    Thanks

    I’m going to install the SDK and see how I get on.
  3. 0
    Neil Deaville ·
    I can’t see that udfvalue is available in the SDK.

    Is my only option to update the PMDB database directly?
  4. 0
    Andrew Podolny ·
    Hi Neil.
    My honest opinion - the API & SDK way is much more complicated than Import / Export exercises. I did same routine tasks for my P3 projects - pipe #, batch #, length, heat # were imported through DBF using MS Access quite easily. P5 - in case you have several projects - just open it at once and export UDF to Excel then you will have 3 key fields in your exported spreadsheet - Project ID, WBS ID, Activity ID - just update the UDF from your external source and import back to P5.
    Regards,
    Andrew
  5. 0
    K D ·
    Hi Neil.
    Primavera have a macro tool to "Get Activity UDF" and "Set Activity UDF". This was programmed on Excel so it can connect to database and export data to excel sheet. After update on excel ,click "Set Activity UDF", it will update data in database.
    You can download this free tool at Primavera POINT website as long as you’re still on maintenance.

    Thanks
  6. 0
    Neil Deaville ·
    Hi KD

    Do you have a link to that macro? I can’t find it.

    Thanks

    Neil
  7. 0
    K D ·
    Hi Neil.
    After access to POINT by this link http://customerportal.primavera.com/ocp/default.asp?main=Point_login.asp

    You search for Solution ID: prim4617

    Thanks
  8. 0
    Neil Deaville ·
    Thanks!
  9. 0
    Neil Deaville ·
    I’m still having problems.
    the activity5x.xls spreadsheet doesn’t bring back the UDF I’m interested in when I do "Get Resource Assignment UDF". it bring sback similar UDF’s which look as though they are setup the same. Can anyone think what i am missing?

    Cheers

    Neil
  10. 0
    Nikhil Menkudale ·
    Hi Neil,
    Have you tried "GLOBAL CHANGE" (tool) in P5 ? You can put some logical conditions to update the UDFs as desired.

    Regards
    Nikhil
  11. 0
    Rodel Marasigan ·
    Niel,

    Send me a PM with your email address so I can help you in much better communication.

    HTH,
    Rodel
  12. 0
    K D ·
    Hi Niel.
    Be sure you select "Activity Resource assignment" type when you create UDF.

    Thanks
  13. 0
    Neil Deaville ·
    I’ve figured out part of my problem. The activity5x.xls only updates ’activity resource assignment’ UDF’s that are text fields and ignores numbers, integers, dates etc.

    Anyone have any ideas why before I start hacking through the VBA?
  14. 0
    Neil Deaville ·
    Oops!

    Just spotted the select data type flag. Ignore my last comment!
  15. 0
    Alex Wong ·
    Dear All,

    I been facing the same issues daily importing/exporting data and decided to take on challenge myself to ease the pain. I had comes up with a easy to use program to modify data within P5/P6. After testing it to the death I would like to share with everyone.

    If you are interested please send me a PM and I will send you a copy of the program within next few weeks

    Regards

    Alex
  16. 0
    Sharif Mohammadi ·

    in the UDFs how can i put

    in the UDFs how can i put percentage value?

Log in or join to reply

ProjectControls.com is free to join. Members can post questions, reply, vote and follow discussions.

Existing members: your original username and password still work. Forgot password?