function of .stl

More
5 years 2 months ago #218796 by @wardania99
function of .stl was created by @wardania99
I tried to use this function  (part = AsciiSTL(filename="path/to/file.stl")) as (part = AsciiSTL(newbottom="home/wardania/newbottom.stl")
but show me many different errors  
anyone knows how to enter this function in the right way to import file .stl of CAD

Please Log in to join the conversation.

More
5 years 2 months ago #218799 by tommylight
Replied by tommylight on topic function of .stl
What are you trying to do?
LinuxCNC does not work with .stl files ...
Where are you trying to import them ?

Please Log in to join the conversation.

More
5 years 2 months ago #218804 by Aciera
Replied by Aciera on topic function of .stl
You are referring to importing stl files into vismach. I guess.


Try this syntax:
part = AsciiSTL(filename="home/wardania/newbottom.stl")

Note that 'filename' is an argument parameter of 'AsciiSTL()'.

Please Log in to join the conversation.

More
5 years 2 months ago #218806 by tommylight
Replied by tommylight on topic function of .stl

LinuxCNC does not work with .stl files ...
But apparently Vismach does ! :)
Sorry.

Please Log in to join the conversation.

More
5 years 2 months ago #218970 by @wardania99
Replied by @wardania99 on topic function of .stl
what do you mean that filename is a parameter of 'Ascii'

Please Log in to join the conversation.

More
5 years 2 months ago #218982 by Aciera
Replied by Aciera on topic function of .stl
What I mean is that the function AsciiSTL() expects an argument called 'filename'.
So if your stl file is called ABCD.stl and you want to call it say 'ABCD-part' in vismach
then you need to call the function like this:

ABCD-part = AsciiSTL(filename="ABCD.stl")

Please Log in to join the conversation.

More
5 years 2 months ago #219150 by @wardania99
Replied by @wardania99 on topic function of .stl
I tried to enter simplified_structure= AsciiSTL(filename="./simplified_structure.stl") like here linuxcnc.org/docs/html/gui/vismach.html

but show me this error
[Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/lib/python2.7/dist-packages/vismach.py", line 899, in _init_
data = open(filename, "r")
IOError: [Errno 2] No such file or directory: './simplified_structure.stl']

Is there a command to import the file or to write the file place

Please Log in to join the conversation.

More
5 years 2 months ago #219153 by Aciera
Replied by Aciera on topic function of .stl
Looks like you have an issue with your file path there.
I presume that it expects to find the file in the same folder as your vismach python script but to be sure you might want to use an absolute path (eg. /home/user/linuxcnc/configs...) instead of the relative ./

[edit]
Just in case:
Also remember that linux is case sensitive. ( ie .stl is not the same as .STL)

Please Log in to join the conversation.

More
5 years 1 month ago #219278 by @wardania99
Replied by @wardania99 on topic function of .stl
Is should I put the configuration of the machine in vismach library
and then make the script
wiki.linuxcnc.org/cgi-bin/wiki.pl?Vismach

Please Log in to join the conversation.

More
5 years 1 month ago #219317 by Aciera
Replied by Aciera on topic function of .stl
I don't think it matters where the configuration is located as long as you have the path right. Have you changed the path to absolute?

Please Log in to join the conversation.

Time to create page: 0.090 seconds
Powered by Kunena Forum