NativeCam as embedded tab ???

More
03 Feb 2018 19:52 #105368 by Roguish
Fern, what's this error. I can't figure it out.

Attachments:

Please Log in or Create an account to join the conversation.

More
04 Feb 2018 00:07 #105380 by FernV
Replied by FernV on topic NativeCam as embedded tab ???

Fern, what's this error.


It may be because you have not selected features in the right order.

You need first Workpiece then Tool change, etc

Show NativeCAM screen or post ncam.ncg for better help

Fern

Please Log in or Create an account to join the conversation.

More
04 Feb 2018 13:52 - 04 Feb 2018 13:58 #105400 by FernV
Replied by FernV on topic NativeCam as embedded tab ???
Here is the full solution

#<_line_len> is defined in ncam/lib/utilities/line.ngc
When you start linuxcnc in a terminal you should read this :
[RS274NGC]SUBROUTINE_PATH = /home/fernand/Dropbox/ncam/lib/mill:ncam/my-stuff:ncam/lib/mill:ncam/lib/utilities
  Real paths:
   /home/fernand/Dropbox/ncam/lib/mill
   /home/fernand/linuxcnc/configs/2.7.axis/ncam/my-stuff
   /usr/share/linuxcnc/aux_gladevcp/NativeCAM/lib/mill
   /usr/share/linuxcnc/aux_gladevcp/NativeCAM/lib/utilities

The last line indicates the path to 'utilities' sub-dir. If you do not have this path, edit your ini file and correct the section [RS274NGC] and make sure SUBROUTINE_PATH value is right.

But the most possible cause is you have a path before that points to a sub-dir that also include a file named 'line.ngc', Such a file is in 'linuxcnc/nc_files/examples/ngcgui_lib/utilitysubs' and it defines #<_line:len> instead. If linuxcnc finds this file before the one in 'ncam/lib/utilities', you will have the error you had. And why did I change it ? Because my editor 'kate' can not select '_line:len' in a double click but will with '_line_len'. This is only one of the many reasons I prefer kate much better.

Regards
Fern

P.S. All ngc files under ncam/lib were designed specifically for ncam and most are interdependent. I will check files that duplicate names and rename them for the next release.
Last edit: 04 Feb 2018 13:58 by FernV.

Please Log in or Create an account to join the conversation.

More
17 Jan 2019 04:49 #124323 by frogeyes
I have searched the web trying to find, how I can have ncam as an embedded tab within Axis.

Following ncam -h, if I write “ncam --ini=my-mill.ini --catalog=mill –tab” I get nothing at all, but if I write “ncam --ini=my-mill.ini –catalog=mill”
ncam is embedded to the right side of Axis. I would appreciate being pointed in the right direction.

Please Log in or Create an account to join the conversation.

More
17 Jan 2019 18:22 #124372 by FernV
Replied by FernV on topic NativeCam as embedded tab ???
Your command line must be one of those :

# ncam --ini=my-mill.ini --catalog=mill --tab

or

# ncam --ini=my-mill.ini --catalog=mill -t

Replace my-mill.ini with the backup my-mill.ini.bak if ther are no 'required NativeCAM item :' remove everything a previous try may have inserted and re-try

Fern

Please Log in or Create an account to join the conversation.

More
18 Jan 2019 01:28 #124384 by frogeyes
I greated a fresh cnc_router from my old stepconf.
ran the command

#ncam --ini=cnc_router.ini --catalog=mill –tab

This is the output


ron@linuxcnc:~$ cd linuxcnc/configs/cnc_router
ron@linuxcnc:~/linuxcnc/configs/cnc_router$ ncam --ini=cnc_router.ini --catalog=mill –tab
Success in modifying inifile :
/home/ron/linuxcnc/configs/cnc_router/cnc_router.ini

NativeCAM info:
inifile = /home/ron/linuxcnc/configs/cnc_router/cnc_router.ini
NCAM_DIR = /home/ron/linuxcnc/configs/cnc_router/ncam
SYS_DIR = /usr/share/linuxcnc/aux_gladevcp/NativeCAM
program = /usr/share/linuxcnc/aux_gladevcp/NativeCAM/ncam.py


[RS274NGC]SUBROUTINE_PATH = ncam/my-stuff:ncam/lib/mill:ncam/lib/utilities
Real paths:
/home/ron/linuxcnc/configs/cnc_router/ncam/my-stuff
/usr/share/linuxcnc/aux_gladevcp/NativeCAM/lib/mill
/usr/share/linuxcnc/aux_gladevcp/NativeCAM/lib/utilities

Using default mill/menu.xml, no mill/menu-custom.xml found

/usr/bin/ncam:2644: GtkWarning: IA__gtk_accel_label_set_accel_closure: assertion `gtk_accel_group_from_accel_closure (accel_closure) != NULL' failed
mi = _action.create_menu_item()
Previous work not saved as current work
ron@linuxcnc:~/linuxcnc/configs/cnc_router$ ncam --ini=cnc_router.ini --catalog=mill –tab
sh: 0: getcwd() failed: No such file or directory
Traceback (most recent call last):
File "/usr/bin/ncam", line 5150, in <module>
verify_ini(os.path.abspath(ini), catalog, in_tab)
File "/usr/lib/python2.7/posixpath.py", line 356, in abspath
cwd = os.getcwd()
OSError: [Errno 2] No such file or directory
ron@linuxcnc:~/linuxcnc/configs/cnc_router$

Please Log in or Create an account to join the conversation.

More
18 Jan 2019 01:57 #124385 by FernV
Replied by FernV on topic NativeCam as embedded tab ???
Don't you see the differences in your command and the ones I posted ?

Copy either one and you will succeed

Fern

Please Log in or Create an account to join the conversation.

More
18 Jan 2019 09:06 #124389 by frogeyes
Sorry I'm a bit confused, are you saying that even if I have created a new stepconf named.
cnc_router
I should now use
#ncam --ini=cnc_router.ini.bak --catalog=mill –tab

Please Log in or Create an account to join the conversation.

More
18 Jan 2019 09:15 #124391 by frogeyes
Sorry I just put on my other glasses and I see clearly now my mistake.
Thank You, nothing like an old blind fool

Please Log in or Create an account to join the conversation.

More
18 Jan 2019 09:38 #124392 by frogeyes
Well back again, I created a new stepconf and pasted your command.

ron@linuxcnc:~$ ncam --ini=my-mill.ini --catalog=mill --tab
option --tab not recognized
I did this with the other one as well and the same result thats the "cnc_router"
I am backed to being dazed and confused

Please Log in or Create an account to join the conversation.

Time to create page: 0.140 seconds
Powered by Kunena Forum