discuss@lists.openscad.org

OpenSCAD general discussion Mailing-list

View all threads

How to check if a file exist? Why not export() from code?

J
jpmendes
Sun, Dec 6, 2015 6:02 PM

Hi,

Is it possible to check from the code if a .stl or other files exist ?
Another question:
Since we may render an object from inside a module, why is not possible or
is difficult to have an export() functionality from code? Maybe export()
would be possible only outside a module?

Actually it is possible to have:

module ABC() {
import("ABC.stl");
}
ABC();

However from the questions above, if solved, I would imagine something like
this:

module ABC() export(ABC_flg,ABC.stl) render(){
ABC_flg=true;
if file ABC.stl exist then
ABC_flg=false;
import("ABC.stl");
else
ABC code;
}
}

or in alternative:

module ABC() render(){
ABC_flg=true;
if file ABC.stl exist then
ABC_flg=false;
import("ABC.stl");
else
ABC code;
}
}

export(ABC_flg,ABC.stl);
or even:
export(ABC_flg,ABC.stl, DEF_flg, DEF.stl, GHI_flg, GHI.stl etc...);

These would be great constructs to easily achieve fluidity.
I'm not an expert, please have mercy :)

Thanks.
jpmendes

--
View this message in context: http://forum.openscad.org/How-to-check-if-a-file-exist-Why-not-export-from-code-tp14982.html
Sent from the OpenSCAD mailing list archive at Nabble.com.

Hi, Is it possible to check from the code if a .stl or other files exist ? Another question: Since we may render an object from inside a module, why is not possible or is difficult to have an export() functionality from code? Maybe export() would be possible only outside a module? Actually it is possible to have: module ABC() { import("ABC.stl"); } ABC(); However from the questions above, if solved, I would imagine something like this: module ABC() export(ABC_flg,ABC.stl) render(){ ABC_flg=true; if file ABC.stl exist then ABC_flg=false; import("ABC.stl"); else ABC code; } } or in alternative: module ABC() render(){ ABC_flg=true; if file ABC.stl exist then ABC_flg=false; import("ABC.stl"); else ABC code; } } export(ABC_flg,ABC.stl); or even: export(ABC_flg,ABC.stl, DEF_flg, DEF.stl, GHI_flg, GHI.stl etc...); These would be great constructs to easily achieve fluidity. I'm not an expert, please have mercy :) Thanks. jpmendes -- View this message in context: http://forum.openscad.org/How-to-check-if-a-file-exist-Why-not-export-from-code-tp14982.html Sent from the OpenSCAD mailing list archive at Nabble.com.
DM
doug moen
Sun, Dec 6, 2015 9:34 PM

The file management features you want belong in a scripting language, not
in OpenSCAD.

You can write a script in an existing scripting language like bash, or
perl, or python, which invokes OpenSCAD as a command each time it needs to
convert a model to a single STL file: use the -o option. That's how this
sort of thing is usually done. You can also communicate information from
the script into OpenSCAD (like, whether it should import a partiular file)
by setting OpenSCAD variables like ABC_flg, using the -D option.

On 6 December 2015 at 13:02, jpmendes jpmendes54@gmail.com wrote:

Hi,

Is it possible to check from the code if a .stl or other files exist ?
Another question:
Since we may render an object from inside a module, why is not possible or
is difficult to have an export() functionality from code? Maybe export()
would be possible only outside a module?

Actually it is possible to have:

module ABC() {
import("ABC.stl");
}
ABC();

However from the questions above, if solved, I would imagine something like
this:

module ABC() export(ABC_flg,ABC.stl) render(){
ABC_flg=true;
if file ABC.stl exist then
ABC_flg=false;
import("ABC.stl");
else
ABC code;
}
}

or in alternative:

module ABC() render(){
ABC_flg=true;
if file ABC.stl exist then
ABC_flg=false;
import("ABC.stl");
else
ABC code;
}
}

export(ABC_flg,ABC.stl);
or even:
export(ABC_flg,ABC.stl, DEF_flg, DEF.stl, GHI_flg, GHI.stl etc...);

These would be great constructs to easily achieve fluidity.
I'm not an expert, please have mercy :)

Thanks.
jpmendes

--
View this message in context:
http://forum.openscad.org/How-to-check-if-a-file-exist-Why-not-export-from-code-tp14982.html
Sent from the OpenSCAD mailing list archive at Nabble.com.


OpenSCAD mailing list
Discuss@lists.openscad.org
http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org

The file management features you want belong in a scripting language, not in OpenSCAD. You can write a script in an existing scripting language like bash, or perl, or python, which invokes OpenSCAD as a command each time it needs to convert a model to a single STL file: use the -o option. That's how this sort of thing is usually done. You can also communicate information from the script into OpenSCAD (like, whether it should import a partiular file) by setting OpenSCAD variables like ABC_flg, using the -D option. On 6 December 2015 at 13:02, jpmendes <jpmendes54@gmail.com> wrote: > Hi, > > Is it possible to check from the code if a .stl or other files exist ? > Another question: > Since we may render an object from inside a module, why is not possible or > is difficult to have an export() functionality from code? Maybe export() > would be possible only outside a module? > > Actually it is possible to have: > > module ABC() { > import("ABC.stl"); > } > ABC(); > > However from the questions above, if solved, I would imagine something like > this: > > module ABC() export(ABC_flg,ABC.stl) render(){ > ABC_flg=true; > if file ABC.stl exist then > ABC_flg=false; > import("ABC.stl"); > else > ABC code; > } > } > > or in alternative: > > module ABC() render(){ > ABC_flg=true; > if file ABC.stl exist then > ABC_flg=false; > import("ABC.stl"); > else > ABC code; > } > } > > export(ABC_flg,ABC.stl); > or even: > export(ABC_flg,ABC.stl, DEF_flg, DEF.stl, GHI_flg, GHI.stl etc...); > > These would be great constructs to easily achieve fluidity. > I'm not an expert, please have mercy :) > > Thanks. > jpmendes > > > > -- > View this message in context: > http://forum.openscad.org/How-to-check-if-a-file-exist-Why-not-export-from-code-tp14982.html > Sent from the OpenSCAD mailing list archive at Nabble.com. > > _______________________________________________ > OpenSCAD mailing list > Discuss@lists.openscad.org > http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org > > >
J
jpmendes
Sun, Dec 6, 2015 10:17 PM

Hi Doug thanks for the reply.

However not all the guys who want to make composite objects using OpenSCAD
are programmers. I'm not, and I think many of us aren't also. The objective
is to have results faster. As I pointed out  "These would be great
constructs to easily achieve fluidity."
In this way we could achieve view fluidity on "real time" as the composite
object in construction progresses.
I think that the objective of openSCAD is to help make real and useful
things fast, for the mathematicians and theoreticals there are really an
abundant number of languages where they can express themselves.

Regards
jpmendes

--
View this message in context: http://forum.openscad.org/How-to-check-if-a-file-exist-Why-not-export-from-code-tp14982p14995.html
Sent from the OpenSCAD mailing list archive at Nabble.com.

Hi Doug thanks for the reply. However not all the guys who want to make composite objects using OpenSCAD are programmers. I'm not, and I think many of us aren't also. The objective is to have results faster. As I pointed out "These would be great constructs to easily achieve fluidity." In this way we could achieve view fluidity on "real time" as the composite object in construction progresses. I think that the objective of openSCAD is to help make real and useful things fast, for the mathematicians and theoreticals there are really an abundant number of languages where they can express themselves. Regards jpmendes -- View this message in context: http://forum.openscad.org/How-to-check-if-a-file-exist-Why-not-export-from-code-tp14982p14995.html Sent from the OpenSCAD mailing list archive at Nabble.com.
DM
doug moen
Mon, Dec 7, 2015 3:32 AM

There are technical issues which prevent us from implementing the specific
feature you have designed. Your problem will need to be solved in some
other way.

What are problem are you trying to solve, at the higher level? What do you
mean by a "composite object"?

So far, I only have the impression that you want to build several different
geometric objects, and export each to a different STL file. That can be
done using a separate SCAD file for each object. If the problem is to share
common code between the separate SCAD files, then that can be done using
the 'include' or 'use' statements. But you also want to test if a specific
STL file exists, and I'm not sure why.

The existing documentation for using the openscad command line interface
from a scripting language is here. I'll admit that it isn't very user
friendly right now, and probably doesn't address your specific use case.

https://en.wikibooks.org/wiki/OpenSCAD_User_Manual/Using_OpenSCAD_in_a_command_line_environment

On 6 December 2015 at 13:02, jpmendes jpmendes54@gmail.com wrote:

Hi,

Is it possible to check from the code if a .stl or other files exist ?
Another question:
Since we may render an object from inside a module, why is not possible or
is difficult to have an export() functionality from code? Maybe export()
would be possible only outside a module?

Actually it is possible to have:

module ABC() {
import("ABC.stl");
}
ABC();

However from the questions above, if solved, I would imagine something like
this:

module ABC() export(ABC_flg,ABC.stl) render(){
ABC_flg=true;
if file ABC.stl exist then
ABC_flg=false;
import("ABC.stl");
else
ABC code;
}
}

or in alternative:

module ABC() render(){
ABC_flg=true;
if file ABC.stl exist then
ABC_flg=false;
import("ABC.stl");
else
ABC code;
}
}

export(ABC_flg,ABC.stl);
or even:
export(ABC_flg,ABC.stl, DEF_flg, DEF.stl, GHI_flg, GHI.stl etc...);

These would be great constructs to easily achieve fluidity.
I'm not an expert, please have mercy :)

Thanks.
jpmendes

--
View this message in context:
http://forum.openscad.org/How-to-check-if-a-file-exist-Why-not-export-from-code-tp14982.html
Sent from the OpenSCAD mailing list archive at Nabble.com.


OpenSCAD mailing list
Discuss@lists.openscad.org
http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org

There are technical issues which prevent us from implementing the specific feature you have designed. Your problem will need to be solved in some other way. What are problem are you trying to solve, at the higher level? What do you mean by a "composite object"? So far, I only have the impression that you want to build several different geometric objects, and export each to a different STL file. That can be done using a separate SCAD file for each object. If the problem is to share common code between the separate SCAD files, then that can be done using the 'include' or 'use' statements. But you also want to test if a specific STL file exists, and I'm not sure why. The existing documentation for using the openscad command line interface from a scripting language is here. I'll admit that it isn't very user friendly right now, and probably doesn't address your specific use case. https://en.wikibooks.org/wiki/OpenSCAD_User_Manual/Using_OpenSCAD_in_a_command_line_environment On 6 December 2015 at 13:02, jpmendes <jpmendes54@gmail.com> wrote: > Hi, > > Is it possible to check from the code if a .stl or other files exist ? > Another question: > Since we may render an object from inside a module, why is not possible or > is difficult to have an export() functionality from code? Maybe export() > would be possible only outside a module? > > Actually it is possible to have: > > module ABC() { > import("ABC.stl"); > } > ABC(); > > However from the questions above, if solved, I would imagine something like > this: > > module ABC() export(ABC_flg,ABC.stl) render(){ > ABC_flg=true; > if file ABC.stl exist then > ABC_flg=false; > import("ABC.stl"); > else > ABC code; > } > } > > or in alternative: > > module ABC() render(){ > ABC_flg=true; > if file ABC.stl exist then > ABC_flg=false; > import("ABC.stl"); > else > ABC code; > } > } > > export(ABC_flg,ABC.stl); > or even: > export(ABC_flg,ABC.stl, DEF_flg, DEF.stl, GHI_flg, GHI.stl etc...); > > These would be great constructs to easily achieve fluidity. > I'm not an expert, please have mercy :) > > Thanks. > jpmendes > > > > -- > View this message in context: > http://forum.openscad.org/How-to-check-if-a-file-exist-Why-not-export-from-code-tp14982.html > Sent from the OpenSCAD mailing list archive at Nabble.com. > > _______________________________________________ > OpenSCAD mailing list > Discuss@lists.openscad.org > http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org > > >
J
jpmendes
Mon, Dec 7, 2015 3:54 PM

Hi Doug,

A composite object is to me a multi part object. I'm not English native
speaking, sorry.
If there are technical issues ok no problem.

Why do I would need to check if a file (.stl) exist? Because if true it
would be simply imported if false the code would be compiled rendered and
exported, and all would be automatic. Need to change a module? Simply delete
the .stl file with the same name or change the export() flag.

I know it can actually be done in a non automatic way with some additional
effort.

OpenSCAD lacks measurement facilities. So it is very important to me to see,
pan and rotate a multi part object with fluidity as it is being built.

Thanks anyway.
jpmendes

--
View this message in context: http://forum.openscad.org/How-to-check-if-a-file-exist-Why-not-export-from-code-tp14982p15010.html
Sent from the OpenSCAD mailing list archive at Nabble.com.

Hi Doug, A composite object is to me a multi part object. I'm not English native speaking, sorry. If there are technical issues ok no problem. Why do I would need to check if a file (.stl) exist? Because if true it would be simply imported if false the code would be compiled rendered and exported, and all would be automatic. Need to change a module? Simply delete the .stl file with the same name or change the export() flag. I know it can actually be done in a non automatic way with some additional effort. OpenSCAD lacks measurement facilities. So it is very important to me to see, pan and rotate a multi part object with fluidity as it is being built. Thanks anyway. jpmendes -- View this message in context: http://forum.openscad.org/How-to-check-if-a-file-exist-Why-not-export-from-code-tp14982p15010.html Sent from the OpenSCAD mailing list archive at Nabble.com.
NH
nop head
Mon, Dec 7, 2015 4:28 PM

If you use render() around each object you will get the almost effect you
want because the geometry is calculated and then cached. From then on it
renders instantaneously. It only gets recalculated if something it depends
on changes. The only downside is once you quit openscad the cache is lost,
so it takes time to start again from scratch. An advantage is it
automatically keeps track of dependences. Under your scheme you would have
to remember to delete the stl files when anything that affected them
changed.

On 7 December 2015 at 15:54, jpmendes jpmendes54@gmail.com wrote:

Hi Doug,

A composite object is to me a multi part object. I'm not English native
speaking, sorry.
If there are technical issues ok no problem.

Why do I would need to check if a file (.stl) exist? Because if true it
would be simply imported if false the code would be compiled rendered and
exported, and all would be automatic. Need to change a module? Simply
delete
the .stl file with the same name or change the export() flag.

I know it can actually be done in a non automatic way with some additional
effort.

OpenSCAD lacks measurement facilities. So it is very important to me to
see,
pan and rotate a multi part object with fluidity as it is being built.

Thanks anyway.
jpmendes

--
View this message in context:
http://forum.openscad.org/How-to-check-if-a-file-exist-Why-not-export-from-code-tp14982p15010.html
Sent from the OpenSCAD mailing list archive at Nabble.com.


OpenSCAD mailing list
Discuss@lists.openscad.org
http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org

If you use render() around each object you will get the almost effect you want because the geometry is calculated and then cached. From then on it renders instantaneously. It only gets recalculated if something it depends on changes. The only downside is once you quit openscad the cache is lost, so it takes time to start again from scratch. An advantage is it automatically keeps track of dependences. Under your scheme you would have to remember to delete the stl files when anything that affected them changed. On 7 December 2015 at 15:54, jpmendes <jpmendes54@gmail.com> wrote: > Hi Doug, > > A composite object is to me a multi part object. I'm not English native > speaking, sorry. > If there are technical issues ok no problem. > > Why do I would need to check if a file (.stl) exist? Because if true it > would be simply imported if false the code would be compiled rendered and > exported, and all would be automatic. Need to change a module? Simply > delete > the .stl file with the same name or change the export() flag. > > I know it can actually be done in a non automatic way with some additional > effort. > > OpenSCAD lacks measurement facilities. So it is very important to me to > see, > pan and rotate a multi part object with fluidity as it is being built. > > Thanks anyway. > jpmendes > > > > > > > -- > View this message in context: > http://forum.openscad.org/How-to-check-if-a-file-exist-Why-not-export-from-code-tp14982p15010.html > Sent from the OpenSCAD mailing list archive at Nabble.com. > > _______________________________________________ > OpenSCAD mailing list > Discuss@lists.openscad.org > http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org >
J
jpmendes
Mon, Dec 7, 2015 5:13 PM

I know that. However imagine a 30 different part object! Every time you start
a session you loose 2 or more hours just to see the assembled object?
Obviously I can render each module save it as an STL file. Then I can be
editing a sub-part  in one OpenSCAD instance and have another instance of
OpenSCAD opened consisting mainly of a list of imports, rotations and
translations, just to see, place and adjust the position of the parts in the
assembled set. It is possible yes but not practical from my point of view.

Maybe this should be the right way. The professional designer/builder have
to obey to more strict rules  and procedures than an occasional
designer/builder like me.

Thanks guys
jpmendes

--
View this message in context: http://forum.openscad.org/How-to-check-if-a-file-exist-Why-not-export-from-code-tp14982p15013.html
Sent from the OpenSCAD mailing list archive at Nabble.com.

I know that. However imagine a 30 different part object! Every time you start a session you loose 2 or more hours just to see the assembled object? Obviously I can render each module save it as an STL file. Then I can be editing a sub-part in one OpenSCAD instance and have another instance of OpenSCAD opened consisting mainly of a list of imports, rotations and translations, just to see, place and adjust the position of the parts in the assembled set. It is possible yes but not practical from my point of view. Maybe this should be the right way. The professional designer/builder have to obey to more strict rules and procedures than an occasional designer/builder like me. Thanks guys jpmendes -- View this message in context: http://forum.openscad.org/How-to-check-if-a-file-exist-Why-not-export-from-code-tp14982p15013.html Sent from the OpenSCAD mailing list archive at Nabble.com.
TV
Tim V. Shaporev
Mon, Dec 7, 2015 5:19 PM

If I understand properly, make is intended to resolve the latter issue.

Just my $0.02
Tim

On 07.12.2015 19:28, nop head wrote:

If you use render() around each object you will get the almost effect
you want because the geometry is calculated and then cached. From then
on it renders instantaneously. It only gets recalculated if something it
depends on changes. The only downside is once you quit openscad the
cache is lost, so it takes time to start again from scratch. An
advantage is it automatically keeps track of dependences. Under your
scheme you would have to remember to delete the stl files when anything
that affected them changed.

On 7 December 2015 at 15:54, jpmendes <jpmendes54@gmail.com
mailto:jpmendes54@gmail.com> wrote:

 Hi Doug,

 A composite object is to me a multi part object. I'm not English native
 speaking, sorry.
 If there are technical issues ok no problem.

 Why do I would need to check if a file (.stl) exist? Because if true it
 would be simply imported if false the code would be compiled
 rendered and
 exported, and all would be automatic. Need to change a module?
 Simply delete
 the .stl file with the same name or change the export() flag.

 I know it can actually be done in a non automatic way with some
 additional
 effort.

 OpenSCAD lacks measurement facilities. So it is very important to me
 to see,
 pan and rotate a multi part object with fluidity as it is being built.

 Thanks anyway.
 jpmendes






 --
 View this message in context:
 http://forum.openscad.org/How-to-check-if-a-file-exist-Why-not-export-from-code-tp14982p15010.html
 Sent from the OpenSCAD mailing list archive at Nabble.com.

 _______________________________________________
 OpenSCAD mailing list
 Discuss@lists.openscad.org <mailto:Discuss@lists.openscad.org>
 http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org

OpenSCAD mailing list
Discuss@lists.openscad.org
http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org

If I understand properly, make is intended to resolve the latter issue. Just my $0.02 Tim On 07.12.2015 19:28, nop head wrote: > If you use render() around each object you will get the almost effect > you want because the geometry is calculated and then cached. From then > on it renders instantaneously. It only gets recalculated if something it > depends on changes. The only downside is once you quit openscad the > cache is lost, so it takes time to start again from scratch. An > advantage is it automatically keeps track of dependences. Under your > scheme you would have to remember to delete the stl files when anything > that affected them changed. > > On 7 December 2015 at 15:54, jpmendes <jpmendes54@gmail.com > <mailto:jpmendes54@gmail.com>> wrote: > > Hi Doug, > > A composite object is to me a multi part object. I'm not English native > speaking, sorry. > If there are technical issues ok no problem. > > Why do I would need to check if a file (.stl) exist? Because if true it > would be simply imported if false the code would be compiled > rendered and > exported, and all would be automatic. Need to change a module? > Simply delete > the .stl file with the same name or change the export() flag. > > I know it can actually be done in a non automatic way with some > additional > effort. > > OpenSCAD lacks measurement facilities. So it is very important to me > to see, > pan and rotate a multi part object with fluidity as it is being built. > > Thanks anyway. > jpmendes > > > > > > > -- > View this message in context: > http://forum.openscad.org/How-to-check-if-a-file-exist-Why-not-export-from-code-tp14982p15010.html > Sent from the OpenSCAD mailing list archive at Nabble.com. > > _______________________________________________ > OpenSCAD mailing list > Discuss@lists.openscad.org <mailto:Discuss@lists.openscad.org> > http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org > > > > > _______________________________________________ > OpenSCAD mailing list > Discuss@lists.openscad.org > http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org >
NH
nop head
Mon, Dec 7, 2015 5:25 PM

I have a design with over 400 objects of over 100 types. I renders in about
20 minutes when first loaded. Perhaps yours are more complex.

On 7 December 2015 at 17:19, Tim V. Shaporev tim.shaporev@auriga.ru wrote:

If I understand properly, make is intended to resolve the latter issue.

Just my $0.02
Tim

On 07.12.2015 19:28, nop head wrote:

If you use render() around each object you will get the almost effect
you want because the geometry is calculated and then cached. From then
on it renders instantaneously. It only gets recalculated if something it
depends on changes. The only downside is once you quit openscad the
cache is lost, so it takes time to start again from scratch. An
advantage is it automatically keeps track of dependences. Under your
scheme you would have to remember to delete the stl files when anything
that affected them changed.

On 7 December 2015 at 15:54, jpmendes <jpmendes54@gmail.com
mailto:jpmendes54@gmail.com> wrote:

 Hi Doug,

 A composite object is to me a multi part object. I'm not English

native
speaking, sorry.
If there are technical issues ok no problem.

 Why do I would need to check if a file (.stl) exist? Because if true

it
would be simply imported if false the code would be compiled
rendered and
exported, and all would be automatic. Need to change a module?
Simply delete
the .stl file with the same name or change the export() flag.

 I know it can actually be done in a non automatic way with some
 additional
 effort.

 OpenSCAD lacks measurement facilities. So it is very important to me
 to see,
 pan and rotate a multi part object with fluidity as it is being built.

 Thanks anyway.
 jpmendes






 --
 View this message in context:

http://forum.openscad.org/How-to-check-if-a-file-exist-Why-not-export-from-code-tp14982p15010.html
Sent from the OpenSCAD mailing list archive at Nabble.com.

 _______________________________________________
 OpenSCAD mailing list
 Discuss@lists.openscad.org <mailto:Discuss@lists.openscad.org>
 http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org

OpenSCAD mailing list
Discuss@lists.openscad.org
http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org

I have a design with over 400 objects of over 100 types. I renders in about 20 minutes when first loaded. Perhaps yours are more complex. On 7 December 2015 at 17:19, Tim V. Shaporev <tim.shaporev@auriga.ru> wrote: > If I understand properly, make is intended to resolve the latter issue. > > Just my $0.02 > Tim > > On 07.12.2015 19:28, nop head wrote: > >> If you use render() around each object you will get the almost effect >> you want because the geometry is calculated and then cached. From then >> on it renders instantaneously. It only gets recalculated if something it >> depends on changes. The only downside is once you quit openscad the >> cache is lost, so it takes time to start again from scratch. An >> advantage is it automatically keeps track of dependences. Under your >> scheme you would have to remember to delete the stl files when anything >> that affected them changed. >> >> On 7 December 2015 at 15:54, jpmendes <jpmendes54@gmail.com >> <mailto:jpmendes54@gmail.com>> wrote: >> >> Hi Doug, >> >> A composite object is to me a multi part object. I'm not English >> native >> speaking, sorry. >> If there are technical issues ok no problem. >> >> Why do I would need to check if a file (.stl) exist? Because if true >> it >> would be simply imported if false the code would be compiled >> rendered and >> exported, and all would be automatic. Need to change a module? >> Simply delete >> the .stl file with the same name or change the export() flag. >> >> I know it can actually be done in a non automatic way with some >> additional >> effort. >> >> OpenSCAD lacks measurement facilities. So it is very important to me >> to see, >> pan and rotate a multi part object with fluidity as it is being built. >> >> Thanks anyway. >> jpmendes >> >> >> >> >> >> >> -- >> View this message in context: >> >> http://forum.openscad.org/How-to-check-if-a-file-exist-Why-not-export-from-code-tp14982p15010.html >> Sent from the OpenSCAD mailing list archive at Nabble.com. >> >> _______________________________________________ >> OpenSCAD mailing list >> Discuss@lists.openscad.org <mailto:Discuss@lists.openscad.org> >> http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org >> >> >> >> >> _______________________________________________ >> OpenSCAD mailing list >> Discuss@lists.openscad.org >> http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org >> >> > > _______________________________________________ > OpenSCAD mailing list > Discuss@lists.openscad.org > http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org >
GW
G. Wade Johnson
Tue, Dec 8, 2015 1:19 PM

I actually solved this issue for my own projects using 'make'. But,
since you said you aren't a programmer I wasn't going to mention it.

I often do multi-part projects, sometimes in separate files.

The make programming tool was designed for exactly this problem. But,
it's yet another thing to learn.

G. Wade

On Mon, 7 Dec 2015 10:13:29 -0700 (MST)
jpmendes jpmendes54@gmail.com wrote:

I know that. However imagine a 30 different part object! Every time
you start a session you loose 2 or more hours just to see the
assembled object? Obviously I can render each module save it as an
STL file. Then I can be editing a sub-part  in one OpenSCAD instance
and have another instance of OpenSCAD opened consisting mainly of a
list of imports, rotations and translations, just to see, place and
adjust the position of the parts in the assembled set. It is possible
yes but not practical from my point of view.

Maybe this should be the right way. The professional designer/builder
have to obey to more strict rules  and procedures than an occasional
designer/builder like me.

Thanks guys
jpmendes

--
View this message in context:
http://forum.openscad.org/How-to-check-if-a-file-exist-Why-not-export-from-code-tp14982p15013.html
Sent from the OpenSCAD mailing list archive at Nabble.com.


OpenSCAD mailing list
Discuss@lists.openscad.org
http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org

--
Against logic there is no armor like ignorance.
-- Laurence J. Peter

I actually solved this issue for my own projects using 'make'. But, since you said you aren't a programmer I wasn't going to mention it. I often do multi-part projects, sometimes in separate files. The make programming tool was designed for exactly this problem. But, it's yet another thing to learn. G. Wade On Mon, 7 Dec 2015 10:13:29 -0700 (MST) jpmendes <jpmendes54@gmail.com> wrote: > I know that. However imagine a 30 different part object! Every time > you start a session you loose 2 or more hours just to see the > assembled object? Obviously I can render each module save it as an > STL file. Then I can be editing a sub-part in one OpenSCAD instance > and have another instance of OpenSCAD opened consisting mainly of a > list of imports, rotations and translations, just to see, place and > adjust the position of the parts in the assembled set. It is possible > yes but not practical from my point of view. > > Maybe this should be the right way. The professional designer/builder > have to obey to more strict rules and procedures than an occasional > designer/builder like me. > > Thanks guys > jpmendes > > > > > > > > > > > > > -- > View this message in context: > http://forum.openscad.org/How-to-check-if-a-file-exist-Why-not-export-from-code-tp14982p15013.html > Sent from the OpenSCAD mailing list archive at Nabble.com. > > _______________________________________________ > OpenSCAD mailing list > Discuss@lists.openscad.org > http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org -- Against logic there is no armor like ignorance. -- Laurence J. Peter