Lathe with "Back tools"

More
10 years 5 months ago #74922 by thewho
Hello

As some of you know, I'm not especially good at Linux and I'm having a hard time to make axis understand that my tools is on the backside.
Yes I've read the wiki on it, but I don't know where to put the ".axisrc" file?!

To display a rear tool lathe in Axis, create an .axisrc file in your home directory and place the following code.


I've named the file "Backtool.axisrc"

Please Log in to join the conversation.

More
10 years 5 months ago #74933 by thewho
Replied by thewho on topic Lathe with "Back tools"
Well.. that's not how you do it..

I found this:

To edit your ~/.axisrc file, open a terminal window (Applications > Accessories >
Terminal). Then type "gedit .axisrc".

thread.gmane.org/gmane.linux.distributio...er/12638/focus=12642

And since Gedit has been replaced with "Mousepad" (?) I used "mousepad .axisrc" and pasted the code, saved and exited.

And guess what, it still doesn't work.. :angry:

Please Log in to join the conversation.

More
10 years 5 months ago #74934 by thewho
Replied by thewho on topic Lathe with "Back tools"
Yay, finally got it working :) Not the easiest for a non-Linux user to understand I must say.

Please Log in to join the conversation.

More
10 years 5 months ago #74936 by Rick G
Replied by Rick G on topic Lathe with "Back tools"
You might want to post what you did do to get it working to help others.

Rick G

Please Log in to join the conversation.

More
10 years 5 months ago #74943 by thewho
Replied by thewho on topic Lathe with "Back tools"
Sure!

1. Open a terminal (Applications > Accessories >Terminal) not "open terminal here"
2. Write "mousepad .axisrc"
3. Paste this code:
Code:
if lathe: bind_axis("Down", "Up", 0) def set_view_y(event=None): widgets.view_z.configure(relief="link") widgets.view_z2.configure(relief="link") widgets.view_x.configure(relief="link") widgets.view_y.configure(relief="sunken") widgets.view_p.configure(relief="link") vars.view_type.set(4) o.reset() glRotatef(90, 1, 0, 0) glRotatef(90, 0, 1, 0) if o.canon: mid = [(a+b)/2 for a, b in zip(o.canon.max_extents, o.canon.min_extents)] glTranslatef(-mid[0], -mid[1], -mid[2]) size = [(a-b) for a, b in zip(o.canon.max_extents, o.canon.min_extents)] o.set_eyepoint_from_extents(size[0], size[2]) else: o.set_eyepoint(5.) o.perspective = False o.lat = -90 o.lon = 0 o.tkRedraw() TclCommands.set_view_y = commands.set_view_y = set_view_y root_window.bind("v", commands.set_view_y) root_window.after_idle(commands.set_view_y)

4. Save (ctrl+s)
5. Exit both applications
6. Done!

Please Log in to join the conversation.

Time to create page: 0.110 seconds
Powered by Kunena Forum