To LUGNET HomepageTo LUGNET News HomepageTo LUGNET Guide Homepage
 Help on Searching
 
Post new message to lugnet.cad.mlcadOpen lugnet.cad.mlcad in your NNTP NewsreaderTo LUGNET News Traffic PageSign In (Members)
 CAD / MLCad / 2046
2045  |  2047
Subject: 
MLcad and LSynth
Newsgroups: 
lugnet.cad.mlcad
Date: 
Tue, 22 Feb 2005 03:24:07 GMT
Viewed: 
10333 times
  
Hi Michael,
  I've been working on lsynthcp.exe lately, giving it the rewrite it has always
needed, compacting code, making it more robust and decreasing synthesized file
size dramatically.

  I was very pleased that you added support for lsynthcp.exe in MLCad.  I
started using it and was pleased with the simplicity of use.

  I have added a new option to lsynthcp.exe.  Typing this on the command line:

lsynthcp -m

gets you this:

[LSYNTH]
%PATH = "C:\Program Files\Borland\CBuilder6\Projects\LSynth\bin"
RIBBED_HOSE          = SYNTH BEGIN RIBBED_HOSE 16
RUBBER_HOSE          = SYNTH BEGIN RUBBER_HOSE 16
STRING               = SYNTH BEGIN STRING 16
MINIFIG_CHAIN        = SYNTH BEGIN MINIFIG_CHAIN 16
PNEUMATIC_HOSE       = SYNTH BEGIN PNEUMATIC_HOSE 16
ELECTRIC_CABLE       = SYNTH BEGIN ELECTRIC_CABLE 16
FLEX_SYSTEM_HOSE_LD  = SYNTH BEGIN FLEX_SYSTEM_HOSE_LD 16
FLEX_SYSTEM_HOSE     = SYNTH BEGIN FLEX_SYSTEM_HOSE 16
FLEX_SYSTEM_CABLE    = SYNTH BEGIN FLEX_SYSTEM_CABLE 16
FLEXIBLE_AXLE        = SYNTH BEGIN FLEXIBLE_AXLE 16
FIBER_OPTIC_CABLE    = SYNTH BEGIN FIBER_OPTIC_CABLE 16
RUBBER_BAND          = SYNTH BEGIN RUBBER_BAND 16
RUBBER_BELT          = SYNTH BEGIN RUBBER_BELT 16
CHAIN                = SYNTH BEGIN CHAIN 16
PLASTIC_TREAD        = SYNTH BEGIN PLASTIC_TREAD 16
RUBBER_TREAD         = SYNTH BEGIN RUBBER_TREAD 16
Tangent Statement: INSIDE = SYNTH INSIDE
Tangent Statement: OUTSIDE = SYNTH OUTSIDE
Tangent Statement: CROSS = SYNTH CROSS
Visibility Statement: SHOW = SYNTH SHOW
Visibility Statement: HIDE = SYNTH HIDE

It gives you exactly what you would want to have in MLCad.ini for version 2.2 of
lsynthcp.exe.

I was wondering if you wanted to just have MLCad check MLCad.ini for a valid
path to lsynthcp, and then have MLCad use the -m option to find out what
commands are available?  This seems like nice automatic way for MLCad to find
out what the current version of lsynthcp has for support.  Plus the users won't
have to update MLCad.ini, unless they move lsynthcp around.

Using -m then lets me add new features to lsynthcp without having to tell
everyone what the new MLCad.ini should contain.

I am no longer going to support LSynth the GUI program for lsynthcp, because you
have added support in MLCad (which is good for people like Willy who hates
command line interfaces.)

Would you do me a favor?  In future released of MLCad could you not expect
lsynthcp to be in a bin directory?  It puts a constraint on how I release
lsynthcp.  I'd rather not have to put stuff in a bin directory.

I noticed that MLCad does not detect lsynth specifications when loading a file.
The only way I can run lsynth on LDR files that already have synthesis
specifications, is to add, and then remove an empty synth specification.  For
me, this makes using MLCad's lsynth interface combersome.

I also added a -h option that lists all the synthesis commands with description,
and also lists all the constraint parts that lsynth recognizes.  It might be
handy to make it easy to share this information with the users.

If there is anything I can add to lsynth to make things easier for you and
MLCad, please feel free to make suggestions or recommendations.

Thanks,
Kevin



Message has 1 Reply:
  Re: MLcad and LSynth
 
Kevin, this sounds all like a realy nice feature ... must implement that ;-) and will remove the bin from the path ... maybe checking both paths ... the other thing with loading a file sounds like a bug, I'll have a look at that. Best regards, (...) (19 years ago, 27-Feb-05, to lugnet.cad.mlcad)

3 Messages in This Thread:

Entire Thread on One Page:
Nested:  All | Brief | Compact | Dots
Linear:  All | Brief | Compact
    

Custom Search

©2005 LUGNET. All rights reserved. - hosted by steinbruch.info GbR