I guess there aren't to many Dead Heads in the forum.
Here is my stab at this.
Is there a known way to take AutoCad drawings (.dwg or .dxf) files and convert them to .thr files?
I think this would look better using a table with minimal sand.
This is superb!
And yes - there is a direct way to go from pline to thr file (I am a long (long) time user of ACAD :).
Thank you for sharing.
sadly, the AutoLISP file I attached is not (yet) allowed - coming soon...
Sorry for the delay - instead of waiting for my web-devs to add *.lsp to the list of attachments, I just changed the extension (change back to .lsp after downloading). Since I wrote these routines back in ~2000 using much older ACAD versions, and I was very into debugging the conversion, there are two routines involved and some couple caveats:
1- This is a two step process: First, create a circle with center at 0,0 and radius of 1 (this is the just to remind you of the boundary of your drawing canvas). Within the circle, put/draw your artwork consisting of a single polyline composed only of straight segments (no arcs). I think line width is ignored, but set it to 0 if it complains (doesn't work). Make sure the polyline is the old style "lightweight". On newer versions, this is not the default polyline type. To change to this type, enter "plinetype" at the command line, and enter "0". Load polarxy2c.lsp. Execute it by typing "makepolar" at the command line. It will prompt you to choose a pline. Do so and <enter>. You then should see a deformed version of the original. The routine has changed the XY positions of each vertex of the original to polar coordinates (numerically), and plotted them as new positions (as if they were still XY coords, hence the distortion). If that worked, you are ready for the next step (next post).
Load PL2thr1.lsp (attached extension mod below). Run by entering "pl2thr" at the cmd line. Choose your now distorted polyline and hit <enter>. It will prompt your for a file name and location, and create the thr file there.
Let me know how it goes :).
Yes. That does make it a lot harder to edit the vertices though. I often make the back-tracking slightly offset so I can easily grab its vertices if I want to edit them.