Search found 80 matches

by tcebob
Thu Feb 22, 2007 9:19 pm
Forum: General
Topic: Reducing a list
Replies: 3
Views: 432

Reducing a list

Here's an abbreviated list of parenthetical lists. I tried and failed to use an RE to delete averything except those lists beginning with (10, resulting in (10 a b)(10 c d)(10 e f) etc. Any suggestions? tcebob code (38 . 0.0) (39 . 0.0) (10 16.497 3.71905) (40 . 0.0) (41 . 0.0) (42 . 0.0) (10 16.308 ...
by tcebob
Sun Jan 14, 2007 2:44 am
Forum: General
Topic: Macro find
Replies: 1
Views: 159

Macro find

Because I am lazy, I set up a macro to find the highlighted string. Set for "Down" and "Wrap searches." Ok, it works down just fine. but, having found the last occurrance, it refuses to wrap. If I run the same search from the Find command it goes 'round and 'round like I want. tcebob
by tcebob
Sat Jan 06, 2007 3:29 am
Forum: General
Topic: Clip Libraries
Replies: 2
Views: 299

Thanks, Pete.

tcebob
by tcebob
Thu Jan 04, 2007 2:47 pm
Forum: General
Topic: Clip Libraries
Replies: 2
Views: 299

Clip Libraries

Does anyone have Clip Libraries to share? If there is enough interest perhaps another forum for the purpose would be useful. Maybe make a combined Macro-Clip forum? Right now, I'm looking for a conversions library, e.g. mm-inch, grams to ounces, furlongs to fathoms, etc. I'll do it and post it if ...
by tcebob
Thu Jan 04, 2007 2:37 pm
Forum: General
Topic: Go to PREVIOUS bookmark
Replies: 1
Views: 153

Yes. But you need a macro.
code
position cursor at origin line.
create bookmark
go to previous bookmark
go to next bookmark, extend selection
code

Not the best -- can't get rid of the temporary bookmark.

tcebob
by tcebob
Fri Nov 17, 2006 5:39 pm
Forum: General
Topic: Auto-load workspace & limit workspace to orig. files
Replies: 2
Views: 187

Auto-load workspace & limit workspace to orig. files

Preferences/General has Reload Last Workspace at Startup checked, but the program comes up blank and I need to select the workspace from the Files menu. Is this a bug or have I missed something? When closing TextPad, any files other than those in the workspace are added to it, which I don't want. Is ...
by tcebob
Thu Nov 02, 2006 1:32 am
Forum: General
Topic: Insert an incremental number every N occurrances of a search
Replies: 4
Views: 567

Insert an incremental number every N occurrances of a search

I have an ever-expanding file of Vlisp program functions. Each function begins with (defun --short for define function. Sometimes I screw around with one or another and, woops, make a mistake or delete something I shouldn't. This file loads every time Autocad starts up. Or tries to but quits at the ...
by tcebob
Mon Sep 04, 2006 7:00 pm
Forum: General
Topic: Count commas
Replies: 6
Views: 511

Well, this is a case of evolution. I started by isolating all the commas, in hopes of counting them by a recursive binary replacement (of 16s then 8s, etc.) with specified numbers. Like this: ,,,,,,,,,,,,,,,.,,,,,,,,,,,, (27) 16:,,,,,,,,.,,,, 16:8:,,,, 16:8:4:0:0: Not sure how I would add everything ...
by tcebob
Sun Sep 03, 2006 10:19 pm
Forum: General
Topic: Count commas
Replies: 6
Views: 511

Here's what I have so far. Needs more work

________
f: ([^,],) find anything but a comma followed by a comma
r; \1*\i* replace with same string plus *sequence no.*

tcebob
by tcebob
Sun Sep 03, 2006 7:27 pm
Forum: General
Topic: Count commas
Replies: 6
Views: 511

Pretty neat; to bad it doesn't work in TP. But it gives me an idea to follow up on. Thanks,

tcebob
by tcebob
Fri Sep 01, 2006 7:10 pm
Forum: General
Topic: Count commas
Replies: 6
Views: 511

Count commas

The following is a font shape description for Autocad: *042,46,ucb 2,14,8,(-7,-21),1,8,(0,21),090,8,(3,-1),01E,02D,02C,02B,01A,8,(-3,-1),2,098,1, 090,8,(3,-1),01E,02D,03C,02B,01A,8,(-3,-1),098,2,8,(21,0),14,8,(-14,-10),0 The 46 in the header represents the number of vector descriptions in the body ...
by tcebob
Fri Sep 01, 2006 4:04 pm
Forum: General
Topic: TextPad Macro Editor
Replies: 2
Views: 507

As far as I know, no. But I use a coding procedure that at least makes it easier to review the macro and set up changes. It's pretty simple. Here's a sample: (lisp uses parentheses to separate functions. Arguments to functions can be functions, too. So a line might look like (+ (fun1(fun2)) (fin3 ...
by tcebob
Sat Oct 22, 2005 1:28 am
Forum: General
Topic: Long time user of Textpad, new to expressions, need assistan
Replies: 3
Views: 210

Search for ^.*[^done]{4}[ \t]*\n (Notice the space before the \t.) Replace with nothing. Be sure the replacement line does not have any spaces. This will also find "node" "edon" etc. but that doesn't seem to be a problem here. Now if someone steps forward to tell us how to search for not a word he ...
by tcebob
Fri Sep 23, 2005 4:26 pm
Forum: General
Topic: Parantheses check
Replies: 1
Views: 1994

If you want to simply count ()s ctl-m will work fine. But if you hope to check that they are in the right places I think you are out of luck. Maybe someone has written an equation parser. Try Google. But I think that is beyond the macro capabilities of TP.

Good luck,

tcebob
by tcebob
Fri Sep 16, 2005 9:21 pm
Forum: General
Topic: Clear clipboard?
Replies: 0
Views: 150

Clear clipboard?

I need to append some words to the clipboard and paste it into a document. But before and after the clipboard should be cleared. Best I can do is copy in a space, which seems a bit kludgy. Is there a simpler way?

tcebob