Author Topic: HELP WITH A PROGRAM FOR CAD..PLEASE.  (Read 22120 times)

0 Members and 1 Guest are viewing this topic.

CAB

  • Global Moderator
  • Seagull
  • Posts: 10401
HELP WITH A PROGRAM FOR CAD..PLEASE.
« Reply #60 on: January 04, 2005, 10:27:11 AM »
So that's where those unexplained bruises on my head are coming from. :shock:
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.

AVCAD

  • Guest
HELP WITH A PROGRAM FOR CAD..PLEASE.
« Reply #61 on: January 04, 2005, 04:50:36 PM »
seeign as you started this part here are the blocks that I currently use. I use these via Drop down menu's right now.

If you actually look at the files there is a method to their naming

http://www.theswamp.org/lilly_pond/avcad/Blocks.zip

x##p#-#.dwg

X = nothing really :-) (good system huh...)

## = how many units the RU is....It can be a single #

p = just means panel

# = this number is only present if the panel is a 2 or 3 way split...if number is not present it is not a split.

-# = this number is how many text lines

I have all these written in to a menu file that I can update for the directory they will be in if that will help. I have them...right now....in C:\temp\ercc\blocks\rack units\

The Racks are in there too they are also included with the zip file...methode to the naming of those are as follows:

Rack = just the empty

rc = rack and casters

rcsc = rack , casters, scale

rcsp = rack, casters, sidepanels

rcspsc = rack, casters, sidepanel, scale

rsc = rack and scale

rscsp = rack, scale, sidepanel

rsp = rack, sidepanel

These are the same for all the rack heights....25,30,35,40,45....they are located in

c:\temp\ercc\blocks\Racks\## units\      (## = respected unit height of rack)

let me know if you would like me to post the menu file these are already used in. maybe it would help if you saw they way they are used already to uderstand what they do.....

Thanks....so is that why my eyes are buldging out of my head!!  :shock:

AVCAD

  • Guest
HELP WITH A PROGRAM FOR CAD..PLEASE.
« Reply #62 on: January 04, 2005, 04:54:32 PM »
I noticed that these blocks may confuse you...

they dont all abide by the if it is mor ethen 4 RU's they have 4 lines of text or what not...

These are how the blocks are if they need to be changed its not that bog of a deal I can change them and add the lines of text to make them correct.

If this required before we get started on this then so be it, just let me know.

CAB

  • Global Moderator
  • Seagull
  • Posts: 10401
HELP WITH A PROGRAM FOR CAD..PLEASE.
« Reply #63 on: January 04, 2005, 04:58:49 PM »
You posted two sets for 40 & 45 & I have them.
I just don't care for blocks ( you have 40+ ) when you can just draw them.
Just me, I guess.
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.

AVCAD

  • Guest
HELP WITH A PROGRAM FOR CAD..PLEASE.
« Reply #64 on: January 05, 2005, 11:42:34 AM »
I did not know that you can set this up to draw everything. I thought it would be easier to use the blocks that have already been created for this.

to each his own i guess.

AVCAD

  • Guest
HELP WITH A PROGRAM FOR CAD..PLEASE.
« Reply #65 on: January 12, 2005, 10:19:24 AM »
AH...I have not forgotten about this, I am just swamped at work right now.

Actually I dont even rememeber where we left off..... :?

CAB

  • Global Moderator
  • Seagull
  • Posts: 10401
HELP WITH A PROGRAM FOR CAD..PLEASE.
« Reply #66 on: January 12, 2005, 11:27:13 AM »
Same here, it will be a few more days before I can look at it again.
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.

AVCAD

  • Guest
HELP WITH A PROGRAM FOR CAD..PLEASE.
« Reply #67 on: January 18, 2005, 10:38:51 AM »
GOD work is so busy lately!!!! Some day I will get back to this.....ERRRR

We were so getting so close!  :cry:

AVCAD

  • Guest
HELP WITH A PROGRAM FOR CAD..PLEASE.
« Reply #68 on: January 26, 2005, 04:19:06 PM »
Ok I got some time today to look at this again. Please download this file and use these files to replace the ones you have.

http://www.theswamp.org/lilly_pond/avcad/ercc9.zip?nossi=1

When you load it up in VLisp the Image at the bottom (Company Logo) will probably not load casue the code is se to a file you probably dont have.

I did change code in this version so please use these files. I got the Casters to be drawn...the tag was wrong...it wast "casters" when it should have been "caster". Once I changed that, it was tring to execute a Fillet command but it wouldnt complete it. I tried to get it to complete but I could not so I now just bypass the command.

I also changed the Background color (fill color) of the preview box.

I changed the placement of the text on the scale to better center the text.

I also added code to create a layer for the Rack to be drawn on and then reload the users previous layer to the current, once the ercc program was complete

I also added code to create a seperate text style for the text in the scale for the rack. This code also reloads the users previous textstyle to the current, once the ercc program was complete.

Ya had some time today... :)

CAB

  • Global Moderator
  • Seagull
  • Posts: 10401
HELP WITH A PROGRAM FOR CAD..PLEASE.
« Reply #69 on: January 26, 2005, 08:45:06 PM »
Tinkered with it a bit.
Tagged my changes & added panel dividers.
Now do you want to tackle the text in the panels?

ercc10
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.

AVCAD

  • Guest
HELP WITH A PROGRAM FOR CAD..PLEASE.
« Reply #70 on: January 27, 2005, 10:16:41 AM »
Looks great! I think all we need is a few minor things and the text placements.

Once the remaining RU's hit "0" can we make the program stop allowing the use to hit the next button. But allow them to go backwards and change the other RU's, just incase they screw up and realize that they counted wrong, and maybe they have to reduce Panel #3 from 6RU's to 3RU's which would open up 3 more RU's to use...make any sense??

And when the RU's are selected to be Split 2 or 3 way they need to be drawn that way. I will post a sample of what I mean.

Here a jpeg that kind of shows what i mean....

http://www.theswamp.org/lilly_pond/avcad/sample.jpg?nossi=1

Notice how they are split in to 2 or 3 sections. It also shows how the text should layout.

Thanks!

CAB

  • Global Moderator
  • Seagull
  • Posts: 10401
HELP WITH A PROGRAM FOR CAD..PLEASE.
« Reply #71 on: January 27, 2005, 12:51:58 PM »
Added text with no width error checking, did not test all combinations.
How would you code the limit on the NEXT button?

ercc11
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.

AVCAD

  • Guest
HELP WITH A PROGRAM FOR CAD..PLEASE.
« Reply #72 on: January 27, 2005, 04:56:03 PM »
Just from a quick glance on the version 11, I changed

Code: [Select]

((= txtlines 1)
       (setq y-lst (list (- (cadr row_center) 0.875)))


to...

Code: [Select]

((= txtlines 1)
       (setq y-lst (list (- (cadr row_center) 0.4375)))


this centers the text better when using the 1 RU text

I also noticed that the text come out...flipped when using mor ethen 1 line

try using a 2 RU unit and use 2 lines of center text...the second line come out on top and the 1st line is on the bottom....it needs to be flipped...the first line shoul dbe on the top and then the 2nd then the 3rd and so on.

I tried to find the code for it but I couldnt make it out.

How would I code the Next button...I am not that good but I can try, might take me awhile..

CAB

  • Global Moderator
  • Seagull
  • Posts: 10401
HELP WITH A PROGRAM FOR CAD..PLEASE.
« Reply #73 on: January 27, 2005, 10:47:08 PM »
added ver 12 to your folder.
Revised text formating & added Dim for PREV NEXT buttons,
but there is a bug in the next code, still thinking about it.
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.

CAB

  • Global Moderator
  • Seagull
  • Posts: 10401
HELP WITH A PROGRAM FOR CAD..PLEASE.
« Reply #74 on: January 28, 2005, 10:11:11 AM »
Uploaded lucky version 13.
Fixed, I think the Prev Next problem.
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.