Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

DXF to canvas conversion?

52 views
Skip to first unread message

Tuan Doan

unread,
Apr 19, 1993, 10:36:34 PM4/19/93
to
Hello,

I was wondering if anyone has written a program to convert from Autocad's
DXF format to the elements used in the canvas widget. If so, it would save
me some work.

Regards,

__ __/ / / __ / | / Tuan T. Doan
/ / / / / / | / IEC Layer Testing and Advance Technology
/ / / __ / / | / 2201 Lakeside Blvd. P.O. Box 833871
__/ ______/ __/ __/ __/ __/ Richardson, TX 75083-3871
Phone: 6-444-4575/214-684-4575
Internet: td...@bnr.ca Fax: 6-444-3716/214-684-3716
or td...@x400gate.bnr.ca

James Shaw

unread,
Apr 23, 1993, 2:05:41 AM4/23/93
to

this may seem like a stupid question. I want to be able to space out
different words of different lengths within one string index of a
listbox. I want to be able to I guess tab them so that the beginning of
the words line up from one index entry to another down the listbox. I
have thought about spacing within each string depending on the length of
the words but this is an awfully ugly hack.

anyone out there done something similar or know how I might get it done?

thanks in advance
james

David Sibley

unread,
Apr 23, 1993, 5:53:27 AM4/23/93
to

This is an excellent question. The obvious answer is to use awk.
That's what it's there for. It does this sort of thing very well.
Part of the point of UNIX is not to have to reinvent routines for which
there are already perfectly good utilities.

However, I don't know how to quote the special characters in a call to
awk from tcl. I've never managed to figure it out, short of using
format to build the awk command as a string. If someone knows a better
way, I'd sure like to hear it.


David Sibley | "Accurate reckoning. The entrance into knowledge
Amateur radio NT3O | of all existing things and all obscure secrets."
sib...@math.psu.edu | -- The Rhind Papyrus

Karl Lehenbauer

unread,
Apr 26, 1993, 12:53:24 PM4/26/93
to
In article <C5xKt...@cs.psu.edu> sib...@math.psu.edu (David Sibley) writes:
>However, I don't know how to quote the special characters in a call to
>awk from tcl. I've never managed to figure it out, short of using
>format to build the awk command as a string. If someone knows a better
>way, I'd sure like to hear it.

You can put about anything inside curly brackets and Tcl will leave it alone.
--
-- Email in...@NeoSoft.com for info on getting interactive Internet access.
"File names are infinite in length where infinity is set to 255 characters."
-- Peter Collinson, "The Unix File System"

0 new messages