Author Topic: CAD Setup Routine  (Read 62599 times)

0 Members and 1 Guest are viewing this topic.

deegeecees

  • Guest
CAD Setup Routine
« Reply #15 on: January 21, 2004, 12:34:26 PM »
I have had the same problem with muti-users. Being that the CAD manager (ususally) knows little, or nothing by way of Lisp or VBA, I take it upon myself to head up the standards enforcement.

With the introduction of AutoCAD2002, there came an attempt to resolve these issues by means of a "wish-list" and does so in a general way. To refine this as well as for those without AutoCAD2002, you neeed a more exclusive approach.

I can give you some examples that may sway you from your immediate ideas to a more applicable direction. What I did for one company is this:

As far as everything was concerned, all routines would not work unless the companies (or other set-up) title block was in place and scaled properly. This would insure that al batch routines would function properly and give me less of a programming headache.

All layers linetypes and text styles were set up according to a Drawing Code. This may not be a part of you companies document tracking, but may give you something to push for. This worked in a manner of an attributed title block.

Synopsis:
Drawing is opened
acad2000doc.lsp loads title block program
drawing code is input
title block is setup properly
basic routines are run
drawing code is evaluated
layers are set
linetypes are set
drawing scale is set (can be used for details)
text styles are set

This may give you an idea of how to attack this standardization problem

amgirard2003

  • Guest
CAD Setup Routine
« Reply #16 on: January 21, 2004, 12:46:13 PM »
You wouldn't believe the crap that comes through this place..
And the consultants call themselves AutoCad experts and it's amazing some of them don't even know how to use PS/MS...
One time i got a drawing and it was labelled at 1"=3/8" and i couldn't believe my eyes... they drew the whole drawing in MS at 3/8" of an inch...
can u believe that...

Eveything you just wrote in your previous message is exactly what i want to achieve... We have a drawing code but no one around here seems to follow it...
If i can achieve this routine it will force them to use the standards...

deegeecees

  • Guest
CAD Setup Routine
« Reply #17 on: January 21, 2004, 01:03:56 PM »
There are ways to "lock-out" users from doing ANYTHING in AutoCAD but this is an extreme. There will always be the user who just will not follow directions and do it their own way. I used to set a lock out based on their login name that would set an AutoCAD profile with nothing in it when these people were found guilty. Just an exercise for me, but a rude awakening for them. This will "thin the pack" as it is said.

I realize that I had started you off prematurely. We needed to establish these things before I pointed you in the direction you are going (although it was the correct one).

Another question is:
What type of management structure is in place at your employment, and can you develop these standard enforcing routines with their blessing?

amgirard2003

  • Guest
CAD Setup Routine
« Reply #18 on: January 21, 2004, 01:31:26 PM »
As far as management... it's pretty relaxed here... any ideas are accepted pretty well here so it won't be too bad

deegeecees

  • Guest
CAD Setup Routine
« Reply #19 on: January 21, 2004, 01:50:03 PM »
Ok, I'll give you something to work on:

Append the code below to the acad2000doc.lsp file that we saved previously. Save the acad2000doc.lsp file, and open a drawing with a relevant title block in it (Replace the "YOURBLOCK" with the name of your titleblock).

(setq is_tb (ssget "x" '((2 . "YOURBLOCK"))))
(if is_tb
    (progn
        (setq qty_tb (sslength is_tb))
        (if (= 1 qty_tb)
            (alert "Yeah, I rock!")
            (alert "Multiple Instances!")
        )
     )
    (alert "Block Not Found!")
)


This will get you started. These are just basic boolean if's, that check for your title block. If more than 1 instance of the titleblock is found, you are prompted. If no title block is found, you are prompted as well.

I should be back tomorrow. :D

amgirard2003

  • Guest
CAD Setup Routine
« Reply #20 on: January 21, 2004, 02:24:27 PM »
No problem...I'll be here tomorrow as well as i have questions for you..
It looks like it's just me & you on this project.

Since i'm still new i still get confused as to what i read when it comes
to code...
Could you explain with comments next to the code to say what it is doing?

I appreciate all your help

Thanks,

amgirard2003

  • Guest
CAD Setup Routine
« Reply #21 on: January 23, 2004, 09:26:41 AM »
Well i guess i'm on this on my own...
I'll post any questions or problems that i might have..
I think i have a good vision as to what i want to do...
I'll keep you posted.

Mark

  • Custom Title
  • Seagull
  • Posts: 28762
CAD Setup Routine
« Reply #22 on: January 23, 2004, 09:31:06 AM »
>Well i guess i'm on this on my own...
No, we are still here, watching and waiting. :D
TheSwamp.org  (serving the CAD community since 2003)

deegeecees

  • Guest
CAD Setup Routine
« Reply #23 on: January 23, 2004, 09:55:38 AM »
Yup 8)

Keith™

  • Villiage Idiot
  • Seagull
  • Posts: 16899
  • Superior Stupidity at its best
CAD Setup Routine
« Reply #24 on: January 23, 2004, 10:59:40 AM »
Watching like a bunch of hyenas looking for the kill :twisted:
Proud provider of opinion and arrogance since November 22, 2003 at 09:35:31 am
CadJockey Militia Field Marshal

Find me on https://parler.com @kblackie

deegeecees

  • Guest
CAD Setup Routine
« Reply #25 on: January 23, 2004, 12:41:45 PM »
For when you finally have exhausted every other possibility, you come running into the arms of the good people here at "The Swamp", and YES, it feels like a warm blanket on a cold December morning. Come hither my weary traveler, and suckle up to the knowledge of the nipple from which we adorn thee heretofore and thus, and thus, and thus...

Please slap me! :roll:

Keith™

  • Villiage Idiot
  • Seagull
  • Posts: 16899
  • Superior Stupidity at its best
CAD Setup Routine
« Reply #26 on: January 23, 2004, 01:06:24 PM »
SLAP
Proud provider of opinion and arrogance since November 22, 2003 at 09:35:31 am
CadJockey Militia Field Marshal

Find me on https://parler.com @kblackie

deegeecees

  • Guest
CAD Setup Routine
« Reply #27 on: January 23, 2004, 02:02:03 PM »
Whew...!

Thanks.


 :wink:

Keith™

  • Villiage Idiot
  • Seagull
  • Posts: 16899
  • Superior Stupidity at its best
CAD Setup Routine
« Reply #28 on: January 23, 2004, 02:26:39 PM »
:)
Proud provider of opinion and arrogance since November 22, 2003 at 09:35:31 am
CadJockey Militia Field Marshal

Find me on https://parler.com @kblackie

amgirard2003

  • Guest
CAD Setup Routine
« Reply #29 on: January 23, 2004, 02:39:45 PM »
Alright boys... I will run back to "THE SWAMP" but i'm not suckeling on anything...  :)
It might be a few days before i post anything but i will be back..
I've downloaded a DCL manual off of afralisp.com, so that will be my reading material this weekend..
Be in touch with "The Swamp" soon..