Author Topic: We need a challenge!  (Read 16456 times)

0 Members and 2 Guests are viewing this topic.

Mark

  • Custom Title
  • Seagull
  • Posts: 28762
Re: We need a challenge!
« Reply #15 on: April 18, 2006, 07:37:07 AM »
-- Chuck
Here's the regex plugin I use. [ https://addons.mozilla.org/addon.php?id=2077 ]
TheSwamp.org  (serving the CAD community since 2003)

nivuahc

  • Guest
Re: We need a challenge!
« Reply #16 on: April 18, 2006, 07:39:25 AM »
I think it would be a good challenge for everyone. It would give the seasoned programmer an opportunity to test their skills with regards to regex and it would help the noobs who look at regex and think "whiskey tango foxtrot?" understand better how they work. Win-Win situation for everyone, imo. :)

Kerry

  • Mesozoic relic
  • Seagull
  • Posts: 11654
  • class keyThumper<T>:ILazy<T>
Re: We need a challenge!
« Reply #17 on: April 18, 2006, 07:43:31 AM »
If I may make a request for a challange that has been stumping me.
We do a lot of dimedits to dimension text such as EQ. A, EQ. B, EQ. B+1/2" etc.
...............................


Shinyhead ,

A relatively simple way to achieve your result would be using a couple of menu 'pages'. You could cassify the type of note and have similar classes on child-pages.
I've tried a couple of ways to solve this issue, but not with LT < which may negate the use of dialogs >
kdub, kdub_nz in other timelines.
Perfection is not optional.
Everything will work just as you expect it to, unless your expectations are incorrect.
Discipline: None at all.

Shinyhead

  • Guest
Re: We need a challenge!
« Reply #18 on: April 18, 2006, 07:58:29 AM »
LT does make it a challenge. Most hardcore CAD'ers consider LT crippled Autocad, but really it is an EXTREMELY capable program if you are doing 2d drafting. It is only the lack of lisp and vba that gripes me.  For LT customization, basically once you hit the dialog box the macro is over, makes using filters and qselect out of the question and there is no other way I know of without lisp to filter a selection. If I could get by that, I could do ALMOST anything 2d with LT that I could ever want.

CAB

  • Global Moderator
  • Seagull
  • Posts: 10401
Re: We need a challenge!
« Reply #19 on: April 18, 2006, 08:29:33 AM »
A typical dimedit script would be as follows

dim
new
<>\P(VIF.)

Have you tried?
<>\X(VIF.)

Note X must be upper case.
I've reached the age where the happy hour is a nap. (°¿°)
Windows 10 core i7 4790k 4Ghz 32GB GTX 970
Please support this web site.

Shinyhead

  • Guest
Re: We need a challenge!
« Reply #20 on: April 18, 2006, 08:45:25 AM »
That script works already, I am just trying to figure a way to pass a string to replace (V.I.F.) that can be set during the session. 
I.E. if the draftsmen needs to edit a whole bunch of dims to <> + 1/2"/P(V.I.F.) I would like them to be able to hit a button on the palette, enter the text they want added and have them be able to edit text to call the dimedit until the session ends or they need to change the edit text to something else.  Ideally by setting USERS1 to the text then passing that to ddedit without lisp or a script (no diesel in scripts), the \ gets interpeted as a pause for user input when part of a macro, thus it causes the macro to not pass on the line return.  He is an example of what I would like to do in a macro

Set the string to users1
^C^C_setvar;users1;\

Then automate the editing of dimtext to that value

^C^C_dimedit;n;<>$m=$(getvar,users1);\

but if users1 has a "\" it will not work.

Its an annoyingly simple problem I can't figure out how to work around :x.

CAB

  • Global Moderator
  • Seagull
  • Posts: 10401
Re: We need a challenge!
« Reply #21 on: April 18, 2006, 09:25:09 AM »
OK, I see now. Without lisp I see no solution.
In lisp I overcame this problem by creating a temporary text entity with the string already in it.
Then deleted the temporary entity when done.
I've reached the age where the happy hour is a nap. (°¿°)
Windows 10 core i7 4790k 4Ghz 32GB GTX 970
Please support this web site.

Shinyhead

  • Guest
Re: We need a challenge!
« Reply #22 on: April 18, 2006, 09:34:12 AM »
I am starting to consider different ways of doing it. We had a fellow in the office figure out how to do it with excel and LT, but its a bit slow and clunky for my taste, I am thinking about ways to maybe paste or some such instead, dunno though yet.

Didge

  • Bull Frog
  • Posts: 211
Re: We need a challenge!
« Reply #23 on: April 18, 2006, 10:41:43 AM »
Automatically recording draughting time on a per-drawing or per-project basis gets my vote.

I would love to replace the tedious weekly timesheet calcs with a single button.
Think Slow......

LE

  • Guest
Re: We need a challenge!
« Reply #24 on: April 18, 2006, 11:19:46 AM »
Things like:

1. How to return an angle in decimal degrees?
2. How to get all the intersections from a selection of objects?
3. How to indicate graphically the direction of a line or polyline?
4. How to convert circles to polylines, without using bpoly?
5. How to verify if the UCS is in world coordinates, if not modified to world.
6. How to sort points over a circumference, according to distance from a point x.
7. How to know if a number is positive an greater than zero?
8. How to convert UTM coordinates to latitude and longitude?
9. How to convert LAT/LON to UTM?
10. How to calculate the area below a line given two points?

Maverick®

  • Seagull
  • Posts: 14778
Re: We need a challenge!
« Reply #25 on: April 18, 2006, 11:34:19 AM »
  Create a print "log"  including a prompt for job and purpose (subcontractor, customer, vendor, etc.)

  BTW I don't use Acad or know the slightest thing about programming. (Although I'd like to dive in when I get free time. HA!)

  This would just be an awesome tracking/cya thing I think.

M-dub

  • Guest
Re: We need a challenge!
« Reply #26 on: April 18, 2006, 11:42:23 AM »
One I've been thinking about for a long time, but have never done anything about it...
In addition to Save and Saveas, it would be nice to have a Rename function which would basically SaveAs, then delete the original... with an 'Are you sure' message, of course.

/idea

LE

  • Guest
Re: We need a challenge!
« Reply #27 on: April 18, 2006, 11:59:36 AM »
A challenge you said!
How 'bout someone cracking the formula for Straight Skeletons for Roofs!  :-D
Was posted outside the challenge zone but users shy away for some reason.  :evil:

Not an easy one.... it will required a lot of math.... and geometry.... I wonder what is the level on those two, here of the swampers?...   :-)

Maverick®

  • Seagull
  • Posts: 14778
Re: We need a challenge!
« Reply #28 on: April 18, 2006, 12:00:46 PM »
How about something that played an MCHammer .wav (Can't touch this) everytime someone opened a "read-only" doc? 

CADaver

  • Guest
Re: We need a challenge!
« Reply #29 on: April 18, 2006, 03:10:48 PM »
I.E. if the draftsmen needs to edit a whole bunch of dims to <> + 1/2"/P(V.I.F.) I would like them to be able to hit a button on the palette, enter the text they want added and have them be able to edit text to call the dimedit until the session ends or they need to change the edit text to something else. 
You know, you can select several dims at once for this and they will all change?