Hello Chris,
As you can see from my post my name is Eric Simpson.
I am currently going to Bakersfield College to learn AutoDesk.
My goal is to get employment in the CAD industry.
I have been an artist since the day I was born in 1972.
I remember the first Apple computer.
When I was in the 6th grade we had one in our classroom.
I remember this silly program where you were a lemonade sales person...
Anyway,
High school is when they really started the whole computer thing.
Big floppy disk,
And aol.
Man I don't miss downloading anything in those days right...
In my mechanical drawing class when, I was in 10 grade, was the first time I saw a CAD program, about 1988 maybe.
Unfortunately as a 15 year old kid I had no clue what the future could have been if I would had focused my study's in that direction.
Well,
That's a little about me.
You,
I know nothing about you.
Your attitude or demeanor.
It may just be my ignorance to this whole script stuff.
I was just introduced to it Monday April 4,
In my CAD class.
Very recently.
I am still trying to get my head around it.
But, I'll have to tell you,
I'm not exactly sure how to take your "help"
I came off a little snide,
A little snippy maybe?
Now...
Firstly,
I should format my code -
To make it easy to read?
Ok,
Do you mean easer to read then this
defun C:Target (/ ce cp) (setq ce (getvar "cmdecho")) ;capture current environment variables (setvar "cmdecho" 0) ;suppress command echo (setq cp (getpoint "\nCenter point: "));get start point and draw Inner circle (command "_circle" cp "_D" 0.5) (command "_circle" cp "_D" 1) ;draw second circle (command "_circle" cp "_D" 1.5) ;draw outer Circle (command "_.-hatch" "_p" "ansi31" 0.25 0 "_s" (entlast) "" "" );Hatch Target (setvar "cmdecho" ce) ;silent exit (princ) )
???
I'm sure the software can read it with no problem,
As far as readable for me,
That's not very friendly now is it?
I'm writing my script per my instructor.
And that is all I can do for now.
We shall see what my script looks like in a few years, right...
"Please use {i} insert code - before posting"
I'm not sure what this is at all,
You weren't very clear what is at all.
I mean,
I can see you want my to use {i}
to insert code some where.
Insert a code on a help form,
Insert a code in to the CAD program?
I think you need to focus more on the results you are wanting from me.
Remember, I'm a little ignore to it all right now.
"It will be much better if you will more focus on the result you want to."
What are you telling me here?
More focus explaining to the AutoCAD community what I'm wanting my script to do?
If that is what you are saying,
I am truly sorry for that.
I guess I just figured that someone that have been writing scripts could look at it and have a pretty good idea what it is I was trying to achieve.
Basically I need a,
Inner circle,
A second circle,
And an outer circle.
You know like a "target".
Then I need to hatch it.
Inside circle being hatch,
Second circle no hatch,
Outer circle,
That right hatch.
If you've been to Targer lately,
Pull out a bag and look at it.
Thank you for making my code "better".
But I think I got it.
It was just this line,
(command "hatch" "ansi31" "1" "0" "@" "0.25" "@" "0.25" "@" "0.25")
It should have been
command "hatch" "ansi31" "1" "0" "@0,0.25" "@0,.025" "@0,0.25" "")
Explanation
I was off on my coordinate.
I didn't know how far I wanted to go over.
Silly computer...
Works like a top now.
I have to be honest with you Chris...
I know you can't judge a community on one person.
But...
Let's just say.
I had a predicament I was trying to find a solution for.
Not to be criticized on the way I write my script.
Not My ignorance to script,
How I address the community to ask a question.
Or the fact I have two dead bodies buried in my basement...
FYI.
This is California, we don't have basements.
I shall try to figure out what it is you are trying to relay to me
And "try" better next time.
Thank you,
Sincerely
Eric D. Simpson