function of .stl
- @wardania99
- Offline
- New Member
Less
More
- Posts: 7
- Thank you received: 0
26 Aug 2021 13:33 #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
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 or Create an account to join the conversation.
- tommylight
- Offline
- Moderator
Less
More
- Posts: 19482
- Thank you received: 6533
26 Aug 2021 14:01 #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 ?
LinuxCNC does not work with .stl files ...
Where are you trying to import them ?
Please Log in or Create an account to join the conversation.
- Aciera
- Offline
- Administrator
Less
More
- Posts: 4023
- Thank you received: 1734
26 Aug 2021 14:21 - 28 Aug 2021 11:35 #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 argumentparameter of 'AsciiSTL()'.
Try this syntax:
part = AsciiSTL(filename="home/wardania/newbottom.stl")
Note that 'filename' is an argument
Last edit: 28 Aug 2021 11:35 by Aciera.
The following user(s) said Thank You: tommylight
Please Log in or Create an account to join the conversation.
- tommylight
- Offline
- Moderator
Less
More
- Posts: 19482
- Thank you received: 6533
26 Aug 2021 14:25 #218806
by tommylight
Sorry.
Replied by tommylight on topic function of .stl
But apparently Vismach does !LinuxCNC does not work with .stl files ...
Sorry.
The following user(s) said Thank You: shpatb
Please Log in or Create an account to join the conversation.
- @wardania99
- Offline
- New Member
Less
More
- Posts: 7
- Thank you received: 0
28 Aug 2021 08:40 #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 or Create an account to join the conversation.
- Aciera
- Offline
- Administrator
Less
More
- Posts: 4023
- Thank you received: 1734
28 Aug 2021 11:32 - 28 Aug 2021 11:38 #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")
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")
Last edit: 28 Aug 2021 11:38 by Aciera. Reason: I guess it should actually be called an argument of a function and not a parameter
Please Log in or Create an account to join the conversation.
- @wardania99
- Offline
- New Member
Less
More
- Posts: 7
- Thank you received: 0
30 Aug 2021 08:13 #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
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 or Create an account to join the conversation.
- Aciera
- Offline
- Administrator
Less
More
- Posts: 4023
- Thank you received: 1734
30 Aug 2021 09:09 - 30 Aug 2021 09:14 #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)
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)
Last edit: 30 Aug 2021 09:14 by Aciera.
Please Log in or Create an account to join the conversation.
- @wardania99
- Offline
- New Member
Less
More
- Posts: 7
- Thank you received: 0
31 Aug 2021 19:52 #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
and then make the script
wiki.linuxcnc.org/cgi-bin/wiki.pl?Vismach
Please Log in or Create an account to join the conversation.
- Aciera
- Offline
- Administrator
Less
More
- Posts: 4023
- Thank you received: 1734
01 Sep 2021 09:26 #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 or Create an account to join the conversation.
Time to create page: 0.067 seconds