named subroutine call not working?
28 Apr 2013 05:20 #33299
by jslindsay
named subroutine call not working? was created by jslindsay
I have version axis 2.4.6 and trying to get a named subroutine to call and run. I have reread the instructions and looked at some examples and I can't figure out any difference.
the call looks like:
o<settoollength> call
and in settoollength.ngc
o<settoollength> sub
.
.
.
o<settoollength> endsub
M02
Please help
the call looks like:
o<settoollength> call
and in settoollength.ngc
o<settoollength> sub
.
.
.
o<settoollength> endsub
M02
Please help
Please Log in or Create an account to join the conversation.
28 Apr 2013 16:43 #33316
by ArcEye
Replied by ArcEye on topic named subroutine call not working?
In your .ini file
[DISPLAY]
PROGRAM_PREFIX = /the/path/to/the/folder/with/subs/in
(Try just putting (MSG, Inside the Sub) into the sub and call it from the MDI line to test)
regards
[DISPLAY]
PROGRAM_PREFIX = /the/path/to/the/folder/with/subs/in
(Try just putting (MSG, Inside the Sub) into the sub and call it from the MDI line to test)
regards
Please Log in or Create an account to join the conversation.
28 Apr 2013 16:46 #33317
by alan_3301
Replied by alan_3301 on topic named subroutine call not working?
Make sure the settoollength.ngc has execute permissions.
Right click on file, click properties (or something like that)
Then click on permissions tab. then under owner, click execute checkbox.
Or at command line
chmod u+x settoollength.ngc
Right click on file, click properties (or something like that)
Then click on permissions tab. then under owner, click execute checkbox.
Or at command line
chmod u+x settoollength.ngc
Please Log in or Create an account to join the conversation.
28 Apr 2013 17:56 #33319
by ArcEye
It actually does not need to be executable, it is not executed, just read.
Unlike M Code files, it will work quite happily with 644 (creator RW, everyone else R), but setting it executable will do no harm.
Normally the problem is the path
Replied by ArcEye on topic named subroutine call not working?
Make sure the settoollength.ngc has execute permissions.
It actually does not need to be executable, it is not executed, just read.
Unlike M Code files, it will work quite happily with 644 (creator RW, everyone else R), but setting it executable will do no harm.
Normally the problem is the path
Please Log in or Create an account to join the conversation.
28 Apr 2013 18:23 #33321
by alan_3301
Replied by alan_3301 on topic named subroutine call not working?
My mistake.. I was confusing O call with M code files.
Thanks for the correction!
Thanks for the correction!
Please Log in or Create an account to join the conversation.
29 Apr 2013 14:12 #33369
by Rick G
Where are the files located?
Rick G
Replied by Rick G on topic named subroutine call not working?
What actually happens when you try to run it?I have version axis 2.4.6 and trying to get a named subroutine to call and run.
Where are the files located?
Rick G
Please Log in or Create an account to join the conversation.
Time to create page: 0.066 seconds