Subject:
|
Re: Requesting another plug-in for LDDesignPad
|
Newsgroups:
|
lugnet.cad.dev
|
Date:
|
Mon, 18 Mar 2002 18:51:24 GMT
|
Viewed:
|
390 times
|
| |
| |
In lugnet.cad.dev, Ryan Farrington wrote:
> Carsten and other Delphi programmers,
>
> I wish I could make some calculations in my K'nex part files to bring them
> all down to standard LDraw scale (right now they are much larger compared to
> the Lego parts). I would like to multiply all the points in the primitives
> files by 0.64. Might there be a way to automatically perform these
> calculations on the existing points, while by passing colors and line types?
> I could do it all manually, which would take a lot of time, but then again,
> programming takes time too...
>
> Thoughts?
You can do this with existing tools, here are a couple of ways. They're
manual, but not as bad as doing it by hand....
1. Open the file in Excel (or some other spreadsheet). Use formula
cells to calculate the new component values. Replace the old columns
with the new values. Save the file in text-format, then use a text
editor to search'and'replace all tab characters to spaces.
2. Use LDAO -- use the text Editor to open each file. At the beginning
of the file, insert the line:
0 SCALE 0.64
At the end of the file, insert the line:
0 SCALE END
Select/highlight all the code (including the SCALE meta-statements).
Select Tool | LDL 2 DAT to replace the LDLite-enhanced code with
straight LDraw code. Save the file. Repeat as needed.
3. Do like #2, but use a general text editor and LDLite's -R option to
translate the LDLite code to standard LDraw code.
Steve
|
|
Message has 1 Reply: | | Re: Requesting another plug-in for LDDesignPad
|
| Steve and Don, Thanks for the replies. I didn't know how to do that! Unfortunately, not only do I have to remake the _parts_(for which those tips would be useful), I have to recalculate the _primitives_, and your suggestions don't work on (...) (23 years ago, 19-Mar-02, to lugnet.cad.dev)
|
Message is in Reply To:
| | Requesting another plug-in for LDDesignPad
|
| Carsten and other Delphi programmers, I wish I could make some calculations in my K'nex part files to bring them all down to standard LDraw scale (right now they are much larger compared to the Lego parts). I would like to multiply all the points in (...) (23 years ago, 18-Mar-02, to lugnet.cad.dev)
|
12 Messages in This Thread:
- Entire Thread on One Page:
- Nested:
All | Brief | Compact | Dots
Linear:
All | Brief | Compact
This Message and its Replies on One Page:
- Nested:
All | Brief | Compact | Dots
Linear:
All | Brief | Compact
|
|
|
|