Edger2 help


Edger2 help
#1
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"
Reply
Re: Edger2 help
#2
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
Reply
Re: Edger2 help
#3
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.
Reply
Re: Edger2 help
#4
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.


Attached Files
.txt   PrintCmdLine.zip.txt (Size: 14.64 KB / Downloads: 1)
Reply
Re: Edger2 help
#5
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"
Reply
Re: Edger2 help
#6
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.
Reply
Re: Edger2 help
#7
Good to know. I never used the command line this way. Undecided

/Max
Reply
Re: Edger2 help
#8
Good to know Wink I'll try to remember this!
Reply
Re: Edger2 help
#9
Thank you! That works wonderfully!
Reply
Re: Edger2 help
#10
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
Reply
Re: Edger2 help
#11
You are right if you like to have that files user dependend. I like it application dependend and therefore the place is ok. Smile
Reply
Re: Edger2 help
#12
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!
Reply
Re: Edger2 help
#13
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.).
Reply
Re: Edger2 help
#14
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
Reply
Re: Edger2 help
#15
I know Smile
Reply
Re: Edger2 help
#16
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.
Reply
Re: Edger2 help
#17
I have use the "CommonApplicationData" path to store, because this app is user independend.
Reply
« Next Oldest | Next Newest »



Forum Jump:


Users browsing this thread: 1 Guest(s)