1. Luca Arena
  2. Beta Testing
  3. Saturday, 12 October 2024 11:39 AM UTC

Hello,

I converted a workspace to solution in PB2025 beta, so that I now have text files for objects in pbl-folders.

I have some simple hand-made CASE tools, written in PB, that generate PB objects and use ORCA to add them to PBLs.

Of course they do not work with solutions since ORCA is not supported, so I'm trying to figure out how to programmatically import objects in solutions.

I guessed that it was enough to put the new object .sr* file in the pbl-folder, but that does not work: the newly added file is not visible in the System Tree. I tried to "realign" the pbl-folder content with the System Tree via Incremental and Full Rebuild with no success.

What is the new way to programmatically import objects in pbl-folders? Am I missing something?

Thank you,
Luca

Peter Pang @Appeon Accepted Answer Pending Moderation
  1. Monday, 14 October 2024 01:44 AM UTC
  2. Beta Testing
  3. # 1

Hi Luca,

Thank you for your time in trying the PB 2025 beta!
Currently, due to performance issues, the solution does not monitor objects in pbl-folders, so they will not be added automatically.
You need to select the Import item in the right-click menu of pbl in the system tree window and import the corresponding .sr* file;

Regards,
Peter

Comment
  1. Luca Arena
  2. Tuesday, 15 October 2024 12:11 PM UTC
Hi Peter,

I manually updated the .pbproj file adding the new object and immediately the PB IDE showed a MessageBox saying: "The solution has been modified. Do you want to reload it?" and then: "The current build result is outdated due to project changes. Do you want to do an incremental build now?".

I pressed Yes and the new object was successfully added to the pbl folder :-)

It will be easy to write a script that aligns the .pbproj file to the pbl folder content, so for now it's enough for me; obviously it would be better to have an official tool to do it.



Thanks a lot!

Luca
  1. Helpful 3
  1. Armeen Mazda @Appeon
  2. Tuesday, 15 October 2024 18:42 PM UTC
Thanks for your feedback Luca!
  1. Helpful
  1. David Peace (Powersoft)
  2. Friday, 18 October 2024 10:50 AM UTC
I wonder if things like scanning and updating the .pbproj file, also compiling pcode can be done as background processes in a different thread. That would improve performance?
  1. Helpful
There are no comments made yet.
  • Page :
  • 1


There are no replies made for this question yet.
However, you are not allowed to reply to this question.
We use cookies which are necessary for the proper functioning of our websites. We also use cookies to analyze our traffic, improve your experience and provide social media features. If you continue to use this site, you consent to our use of cookies.