Toolkit for vismach model

More
04 Dec 2022 12:28 #258496 by chris@cnc
I try to create my own vismach model, but it is very hard to set up and place parts in the right order and size. Exist there any tool to create a model, or can i only write the python file by hand.

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

More
04 Dec 2022 12:40 - 04 Dec 2022 12:42 #258498 by Aciera
Replied by Aciera on topic Toolkit for vismach model
I don't know of any other way of creating a vismach model other than to write the code by hand. I have recently found a small tutorial:
forum.linuxcnc.org/10-advanced-configura...mill?start=20#258143

Some tips here as well:
forum.linuxcnc.org/10-advanced-configura...mill?start=20#258120

[edit]
Note that you can import stl files instead of creating the shapes in the vismach code itself. The tutorial above mentions that as well.
Last edit: 04 Dec 2022 12:42 by Aciera.
The following user(s) said Thank You: rodw, chris@cnc

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

More
04 Dec 2022 13:20 #258502 by chris@cnc
Replied by chris@cnc on topic Toolkit for vismach model
Thank you, for . For *.stl i found the  vmcgui example. But to build parts together in python is very hard. I'm also looking for existing models they similar to my design and found something. I have a 3 axis mill with optional A-axis. I try to modify this on page 31 without b and c  but basic file won't start.   What is wrong.
ich@debian:~/vismach$ halrun
halcmd: loadusr ./xyzbc-str.py 
halcmd:   File "/home/ich/vismach/./xyzbc-str.py", line 13
    def __init__(self, comp, *args):
    ^
IndentationError: expected an indented block after class definition on line 12
Attachments:

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

More
04 Dec 2022 14:30 - 04 Dec 2022 14:37 #258505 by Aciera
Replied by Aciera on topic Toolkit for vismach model
Unlike other languages Python is very particular about indentation, meaning you can't just start every line at the beginning.
Maybe this helps to start out:
www.w3schools.com/python/gloss_python_indentation.asp

[edit]
you also might want to start out with the file that is in the linuxcnc source code: 

 

File Attachment:

File Name: 5axisgui.py
File Size:4 KB
Attachments:
Last edit: 04 Dec 2022 14:37 by Aciera. Reason: changed attached file to bridgemill

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

More
04 Dec 2022 14:47 #258506 by chris@cnc
Replied by chris@cnc on topic Toolkit for vismach model
I thought it was a grammar problem. That hits me in every language

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

More
04 Dec 2022 17:38 #258519 by chris@cnc
Replied by chris@cnc on topic Toolkit for vismach model
What a puzzle, but now time for Christmas
streamable.com/9e8ksa
Attachments:
The following user(s) said Thank You: Aciera

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

More
06 Dec 2022 00:51 #258644 by andypugh
Replied by andypugh on topic Toolkit for vismach model

I try to create my own vismach model, but it is very hard to set up and place parts in the right order and size. Exist there any tool to create a model, or can i only write the python file by hand.
 

You can model the machine as an assembly in CAD (it's easier if you _create_ everything in the right place) and then export. 
I believe that exporting as either STL or OBJ will work, and Fusion 360 (for example) supports both. 
The machine in VMC_toolchange was modelled in CAD. 

Hmm, I have a full 3D model of my lathe....

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

More
06 Dec 2022 05:19 #258666 by cmorley
Replied by cmorley on topic Toolkit for vismach model
A vismach lathe would be a great addition to the samples....

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

More
06 Dec 2022 05:55 #258668 by JPL
Replied by JPL on topic Toolkit for vismach model

A vismach lathe would be a great addition to the samples....
 

 +1

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

More
06 Dec 2022 12:55 #258693 by rodw
Replied by rodw on topic Toolkit for vismach model
I have been trying today and found it very trying!
I opened a single STL model of all parts provided to me in F360, made a rigid group and then set the part origin to the spindle tip. Then I exported all the parts as a mesh in  Ascii STL. THey should have known where they lived I then went to put the vismach together from the spindle tip which went well for the first 2 bits, then the orientation changed so the spindle body ended up over the tool and the z axis slide went somewhere else!
For what its worth there is a Linux STL viewer I found called Paraview that has been handy. It will export binary STLs to ascii for vismach.
The following user(s) said Thank You: tommylight

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

Time to create page: 0.121 seconds
Powered by Kunena Forum