Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1
  • 2

TOPIC: Proview55 GE script

Proview55 GE script 6 years 1 month ago #9656

  • Tbourdai
  • Tbourdai's Avatar
  • OFFLINE
  • Expert Boarder
  • Posts: 90
  • Thank you received: 1
  • Karma: 0
Hello,

Is it possible to import GE objects with a script on Proview 55 ?
This was possible with pwr52 ;)

If yes, do you change script call (@Path/scriptname.ge_com) or commands synthax between pwr52 & pwr55 ?

Best regards,

Tbourdai
The administrator has disabled public write access.

Proview55 GE script 6 years 1 month ago #9657

  • claes
  • claes's Avatar
  • OFFLINE
  • Platinum Boarder
  • Posts: 3178
  • Thank you received: 502
  • Karma: 133
Hi Tbourdai,

The Ge script functionality is much improved in V5.4 (see release notes for V5.4). The idea is that it should be backward compatible but maybe we have missed something.

/Claes
The administrator has disabled public write access.

Proview55 GE script 6 years 1 month ago #9658

  • Snarf77
  • Snarf77's Avatar
  • OFFLINE
  • Platinum Boarder
  • Posts: 847
  • Thank you received: 2
  • Karma: 5
Hi Claes,

I'm working with TBourdai on that item, and it doesn't look like a compatibility issue or some syntax change because the whole script is just ignored or not launched.

Here are two basic script I tried to troubleshoot:

script Test1.ge_com:
main()
printf("TEST");
endmain

and script Test2.ge_com
main()
create rectangle /x1=10 /y1=10 /width=20 /height=20;
endmain


So nothing very particular at all to me
note: typing "create rectangle /x1=10 /y1=10 /width=20 /height=20" directly in GE command works fine

My scripts are located in /usr/local/pwrp/projet_name/src
When I start the script using (under GE):
CTRL + B
@/usr/local/pwrp/projet_name/src/Test1.ge_com
or
@/usr/local/pwrp/projet_name/src/Test2.ge_com

The command task bar just closes after enter is pressed but nothing happen.
No feedback in the console at all

So it really looks as if the script is just not processed.

Could this be due to somehting missing in our system ?
The developpement machine is a ubuntu 16.04 server (x32) with a lightweight windows manager (openbox) so I don' t have all the gnome library jsut in case some of them are required by the script

Best regards
Snarf77
The administrator has disabled public write access.

Proview55 GE script 6 years 1 month ago #9659

  • Tbourdai
  • Tbourdai's Avatar
  • OFFLINE
  • Expert Boarder
  • Posts: 90
  • Thank you received: 1
  • Karma: 0
Hello Claes,

Thank you for your fast feedback, I see some commands improvement on V5.4 release but nothing unexpected (like big change).

I confirm the script on V5.5 seem not to be launched when I call from GE page.
We try with simple script as following :
main()
printf("Starting script")
endmain

It seem not to be launched (No message on Proview terminal, Volume directory and GE page).

Best regards,

Tbourdai
The administrator has disabled public write access.

Proview55 GE script 6 years 3 weeks ago #9673

  • AutoMate
  • AutoMate's Avatar
  • OFFLINE
  • Expert Boarder
  • Posts: 159
  • Thank you received: 5
  • Karma: 1
Previous post 8361 response by Claes may be helpful? A similar issue was discovered on version 5.4:



Hi Ron and cees,

If you start Ge from a terminal window with 'wb_ge' it will work.

It's when Ge is started from the Configurator that there is a double definition of a function that will cause scripts to terminate.

/Claes
The administrator has disabled public write access.

Proview55 GE script 6 years 3 weeks ago #9674

  • Tbourdai
  • Tbourdai's Avatar
  • OFFLINE
  • Expert Boarder
  • Posts: 90
  • Thank you received: 1
  • Karma: 0
Hi AutoMate,

Thank you for this information, I can execute now a script from a terminal through wb_ge.

I use a command GetObjectClass in old GE script import from 5.2.
This command collect Plant objects class in order to create corresponding object on Graphical view.
class = GetObjectClass( name);
if ( class == "Dv")

In release note 5.4, I see a new GE script function named GetObjectClass is newly created.
Is it possible we got a mismatch between GE script function and XTT script function when I call "GetObjectClass".

Best regards,

/Tbourdai
The administrator has disabled public write access.
  • Page:
  • 1
  • 2
Time to create page: 7.842 seconds