Can you put comments into a script file?
CADForums.net Forum Index CADForums.net
Discussion of AutoCAD and other CAD software.
 
 FAQFAQ   MemberlistMemberlist     RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
 
Google
 
Web cadforums.net
Can you put comments into a script file?

 
Post new topic   Reply to topic    CADForums.net Forum Index -> Customization
Author Message
Doug
Guest





Posted: Thu Jan 06, 2005 6:33 pm    Post subject: Can you put comments into a script file? Reply with quote

Can you put comments into a script file? I'd like to keep a script template
for updating title blocks with comments labeling each entry to simplify
creting a new version of the script for a new change to a different area of
the title block.



DougVL

Back to top
Matt W
Guest





Posted: Thu Jan 06, 2005 6:48 pm    Post subject: Re: Can you put comments into a script file? Reply with quote

Yes.
Use ";" like you would in LISP.

--
I support two teams: The Red Sox and whoever beats the Yankees.

"Doug" <Doug.VanderLaan@aarcorp.com> wrote in message
news:41dd3e1d$1_2@newsprd01...
Quote:
Can you put comments into a script file? I'd like to keep a script
template
for updating title blocks with comments labeling each entry to simplify
creting a new version of the script for a new change to a different area
of
the title block.



DougVL

Back to top
Dean Saadallah
Guest





Posted: Thu Jan 06, 2005 6:48 pm    Post subject: Re: Can you put comments into a script file? Reply with quote

Sounds like you are ready for the leap to LISP: if you share your script,
I'm sure someone here could take a stab at it.

--
Dean Saadallah
Add-on products for LT
http://www.pendean.com/lt
--

Back to top
Nick_Merchant
Guest





Posted: Thu Jan 06, 2005 8:59 pm    Post subject: Re: Can you put comments into a script file? Reply with quote

I totally agree. My scripts just kept getting more and more complex, then I started requiring more flexibility and power to do the things I wanted to do. Programming in VLisp was the next logical step and I never looked back...
Back to top
Doug
Guest





Posted: Thu Jan 06, 2005 9:41 pm    Post subject: Re: Can you put comments into a script file? Reply with quote

I'd be glad to share the script if anyone wants it, but I don't really want
to change to LISP. Then I'm encroaching on the I.T. department's territory
and that brings trouble.

I have had another version, at another office, using Visual Basic with a
dialog box to enter the changes I need and then generate the script
automatically. But we don't have VB available here.

"Dean Saadallah" <info from pendean> wrote in message
news:41dd41be$1_2@newsprd01...
Quote:
Sounds like you are ready for the leap to LISP: if you share your script,
I'm sure someone here could take a stab at it.

--
Dean Saadallah
Add-on products for LT
http://www.pendean.com/lt
--

Back to top
Doug
Guest





Posted: Thu Jan 06, 2005 9:47 pm    Post subject: Re: Can you put comments into a script file? Reply with quote

Thanks!

I had wondered about that. If I'd been thinking quicker, I would have just
checked that first, instead of asking. But I'd just made another new
posting or 2 and got carried away.

Doug

"Matt W" <nospam@address.withheld.com> wrote in message
news:41dd419f$1_2@newsprd01...
Quote:
Yes.
Use ";" like you would in LISP.

--
I support two teams: The Red Sox and whoever beats the Yankees.

"Doug" <Doug.VanderLaan@aarcorp.com> wrote in message
news:41dd3e1d$1_2@newsprd01...
Can you put comments into a script file? I'd like to keep a script
template
for updating title blocks with comments labeling each entry to simplify
creting a new version of the script for a new change to a different area
of
the title block.



DougVL



Back to top
Tom Smith
Guest





Posted: Thu Jan 06, 2005 10:40 pm    Post subject: Re: Can you put comments into a script file? Reply with quote

Quote:
Then I'm encroaching on the I.T. department's territory

No offense, but whoever made it up, that's a really silly rule that
demonstrates an ignorance of AutoCAD. Prohibiting customizations which will
increase your company's productivity and profitability, because of a "turf"
jealousy, is just plain dumb.

AutoLISP is the "macro" language supplied supplied with Acad, it's specific
to Acad, and doesn't run outside Acad. I seriously doubt that your IT people
are programming in lisp, and if they were, it wouldn't be a dialect that's
useful in customizing Acad. No matter how smart they are, if they aren't
Acad users, I'd be very skeptical of their ability to write programs of
benefit to you without spending an inordinate amount of time learning
AutoCAD first.

You're "programming" when you write a script and use it as a way to automate
Acad. How is it any different to write a lisp in your text editor rather
than a script? Your script will translate almost directly into a series of
(command) function calls in lisp -- the same effect, just a change in
syntax. The only difference is that this silly limitation prevents you from
using logical techniques to vastly expand the power of the programming that
you are already doing.

I hope you find a different position some day, here your initiatve will be
appreciated rather than discouraged.
Back to top
Jim Claypool
Guest





Posted: Fri Jan 07, 2005 2:13 am    Post subject: Re: Can you put comments into a script file? Reply with quote

Very well put. Tom.

"Tom Smith" <nospam> wrote in message news:41dd77b9$1_3@newsprd01...
Quote:
Then I'm encroaching on the I.T. department's territory

No offense, but whoever made it up, that's a really silly rule that
demonstrates an ignorance of AutoCAD. Prohibiting customizations which
will
increase your company's productivity and profitability, because of a
"turf"
jealousy, is just plain dumb.

AutoLISP is the "macro" language supplied supplied with Acad, it's
specific
to Acad, and doesn't run outside Acad. I seriously doubt that your IT
people
are programming in lisp, and if they were, it wouldn't be a dialect that's
useful in customizing Acad. No matter how smart they are, if they aren't
Acad users, I'd be very skeptical of their ability to write programs of
benefit to you without spending an inordinate amount of time learning
AutoCAD first.

You're "programming" when you write a script and use it as a way to
automate
Acad. How is it any different to write a lisp in your text editor rather
than a script? Your script will translate almost directly into a series of
(command) function calls in lisp -- the same effect, just a change in
syntax. The only difference is that this silly limitation prevents you
from
using logical techniques to vastly expand the power of the programming
that
you are already doing.

I hope you find a different position some day, here your initiatve will be
appreciated rather than discouraged.

Back to top
Tom Smith
Guest





Posted: Fri Jan 07, 2005 2:40 am    Post subject: Re: Can you put comments into a script file? Reply with quote

Jim, I don't know the situation of course, but it just seemed absurd. A person who's taking the initiative to automate tasks ought to be encouraged, obviously within the reasonable bounds of not messing up company standards and so forth.

In our outfit, IT does hardware and networking and the like, and aside from doing the raw install of vanilla Acad on new computers, they want nothing to do with it or how we use it. That's the exclusive domain of the architectural dept.
Back to top
Luis Esquivel
Guest





Posted: Fri Jan 07, 2005 8:21 am    Post subject: Re: Can you put comments into a script file? Reply with quote

Bravo Tom...!

It remains me some similar situation.. many years ago, I end up moving to a new office...
Back to top
Tom Smith
Guest





Posted: Fri Jan 07, 2005 10:19 am    Post subject: Re: Can you put comments into a script file? Reply with quote

Luis, I think we have all been there.
Back to top
Doug
Guest





Posted: Fri Jan 07, 2005 6:04 pm    Post subject: Re: Can you put comments into a script file? Reply with quote

Wait. I just remembered. I have already used ";" in scripts, to work as
the ENTER key.

Doug


"Doug" <Doug.VanderLaan@aarcorp.com> wrote in message
news:41dd6bb4_1@newsprd01...
Quote:
Thanks!

I had wondered about that. If I'd been thinking quicker, I would have just
checked that first, instead of asking. But I'd just made another new
posting or 2 and got carried away.

Doug

"Matt W" <nospam@address.withheld.com> wrote in message
news:41dd419f$1_2@newsprd01...
Yes.
Use ";" like you would in LISP.

--
I support two teams: The Red Sox and whoever beats the Yankees.

"Doug" <Doug.VanderLaan@aarcorp.com> wrote in message
news:41dd3e1d$1_2@newsprd01...
Can you put comments into a script file? I'd like to keep a script
template
for updating title blocks with comments labeling each entry to
simplify
creting a new version of the script for a new change to a different
area
of
the title block.



DougVL





Back to top
Tom Smith
Guest





Posted: Fri Jan 07, 2005 7:20 pm    Post subject: Re: Can you put comments into a script file? Reply with quote

Quote:
Wait. I just remembered. I have already used ";" in scripts, to work as
the ENTER key.


No, you're thinking of menu macros. I did a quick test yesterday, and
semicolons worked for commenting a script. It's good to know -- I had not
needed that before.
Back to top
 
Post new topic   Reply to topic    CADForums.net Forum Index -> Customization All times are GMT
Page 1 of 1

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum




Windows Server DSP VoIP Electronics New Topics
Powered by phpBB