LDraw.org Discussion Forums
Edger2 help - Printable Version

+- LDraw.org Discussion Forums (https://forums.ldraw.org)
+-- Forum: LDraw Programs (https://forums.ldraw.org/forum-7.html)
+--- Forum: Parts Author Tools (https://forums.ldraw.org/forum-24.html)
+--- Thread: Edger2 help (/thread-10590.html)



Edger2 help - Michael Horvath - 2013-11-07

I'm trying to run Edger2 from the command line using the exact settings that I use in LETGUI, but things are not working right. Here is what the Edger2 settings look like in LETGUI:

[Image: ldr_edger2_help_01_zps392f1d8f.png]

What is the equivalent command line?

I've tried this without luck:

Code:
"C:\Program Files (x86)\LETGUI\edger2\Windows\Edger2.exe" -p 0.001 -af 0.1 -ac 0 -ae 0 "W:\LDraw\datsville\svn\trunk\helper_scripts\terrain_splitter\terrain_stepped_render_backup_02.ldr" "W:\LDraw\datsville\svn\trunk\helper_scripts\terrain_splitter\terrain_stepped_render_backup_02.ldr"



Re: Edger2 help - Max Martin Richter - 2013-11-07

Hej,
Do you have a problem with the output or with the program itself?

Usually I start edger2 from a batch file.
Code:
edger2.exe -l d:\ldraw in_edger.dat out_edger.dat
edger2 and the input/output files are in the same directory (this is also the directory where the batch file is in).

First off all I'm not sure, if it's possible to call a program outside of its directory, like you did here:
Code:
"C:\Program Files (x86)\LETGUI\edger2\Windows\Edger2.exe"
go with the "cd" command into it's directory and call it from there.
Your command line should look like this before calling edger2:
Code:
C:\Program Files (x86)\LETGUI\edger2\Windows>
then you can call edger2.

Next: You should specify your LDraw directory like I did. Use
Code:
-l [LDraw-directory]
In my case [LDraw-directory] is d:\ldraw (it's the main directory of LDraw)

Your input/output calling are correct as far as I can see.

Nevertheless I find your ae, ac and af arguments a bit strange.

Edger2 will process something like this:
Code:
0.00 < angle <  0.10: no Line
0.10 < angle <  0.00: Cond Line
0.00 < angle <  0.00: Cond Line + Edge Line
0.00 < angle        : Edge Line

I would try it with the default values for ae, ac and af. If you want to suppress a specific line type use any of the other options like -dc, -de or something else.


I hope I get it working!

/Max


Re: Edger2 help - Michael Horvath - 2013-11-07

My problems are with the output.

This is the effect I'm looking for:

[Image: ldr_edger2_help_02_zps87f23dec.png]

This is achieved when using LETGUI. Using the command line the results are different.


Re: Edger2 help - Philippe Hurbain - 2013-11-07

Here attached a little utility that displays the command line sent to it. Change the path of Edger2 in LETGUI setup to use PrintCmdLine instead, you'll be able to see the exact parameters sent by LETGUI.


Re: Edger2 help - Michael Heidemann - 2013-11-07

LETGUI creates a logfile with all commands written to that file!
This has been introduced since march this year (latest version).
On my system (win8-64bit) the logfile is created in "C:\ProgramData\LETGUI"


Re: Edger2 help - Michael Heidemann - 2013-11-07

Quote:First off all I'm not sure, if it's possible to call a program outside of its directory, like you did here:

"C:\Program Files (x86)\LETGUI\edger2\Windows\Edger2.exe"

That is the normal way to execute files from command prompt if the program path is not the current.


Re: Edger2 help - Max Martin Richter - 2013-11-07

Good to know. I never used the command line this way. Undecided

/Max


Re: Edger2 help - Philippe Hurbain - 2013-11-07

Good to know Wink I'll try to remember this!


Re: Edger2 help - Michael Horvath - 2013-11-07

Thank you! That works wonderfully!


Re: Edger2 help - Steffen - 2013-11-08

IMHO the path

C:\ProgramData\LETGUI

is the wrong choice to store such data.

The correct place on Win7 would be

C:\Users\PUTYOURUSENAMEHERE\AppData\Local\LETGUI


Re: Edger2 help - Michael Heidemann - 2013-11-08

You are right if you like to have that files user dependend. I like it application dependend and therefore the place is ok. Smile


Re: Edger2 help - Philippe Hurbain - 2013-11-14

Grrr.... I hate Windows who makes everything it can to hide this kind of useful information. After a hard time, I found the file here on my XP system: "C:\Documents and Settings\All Users\Application Data\LETGUI\letgui-commands.log". I suggest to place a shrotcut to this file in LETGUI program folder!


Re: Edger2 help - Michael Heidemann - 2013-11-14

Or maybe better have a menu entry in LETGUI "Show Logfile" that will be opened in notepad.exe. As it is only for checking, I do not like to spend more effort into this (customizable editor to use etc.).


Re: Edger2 help - Philippe Hurbain - 2013-11-15

Oh - any mean facilitating location of this file would be appreciated. Don't take my mildly harsh tone as a criticism, I was just a bit upset by Windows "moving target between versions" behaviour Wink


Re: Edger2 help - Michael Heidemann - 2013-11-15

I know Smile


Re: Edger2 help - Steffen - 2013-11-15

Yes, it does. However, the standard folders for storing such information is as mentioned above,
either system-wide or per-user.
Deviating from that standard would be even _more_ confusing.


Re: Edger2 help - Michael Heidemann - 2013-11-15

I have use the "CommonApplicationData" path to store, because this app is user independend.