Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Lisp and tool palette

17 views
Skip to first unread message

Crystal Bailey

unread,
Mar 28, 2003, 3:05:05 PM3/28/03
to
I've heard that there is a way to add your lisp routines to the tool
palette. Does anyone have any information on this?

Crystal


Mikhail Belilovskiy (Autodesk)

unread,
Mar 28, 2003, 4:54:39 PM3/28/03
to
Just copy and paste Scott's code into Notepad.
Save the document as line.atc.
Start AutoCAD and drag and drop this file from Windows Explorer to AutoCAD
Tool Palette. You should get a new tool called Line.
You can now modify its properties by assigning and icon or changing Line
command to any of your Lisp routines or other commands or sequence of
commands.

You can obviously do it in Notepad too by replacing Line in
<ItemName>Line</ItemName> with something else. In case you can't see it
again, here is Scott's code you need to copy and paste into Notepad.

<Tool>
<ItemID idValue="{F0D064DC-6C66-4E6C-BBAA-CFCDBD15BE78}"/>
<Properties>
<ItemName>Line</ItemName>
<Images>
<Image cx="16" cy="16" src="Images\msf1f_1.png"/>
</Images><Time createdUniversalDateTime="2002-11-28T01:28:32"
modifiedUniversalDateTime="2002-11-28T01:28:32"/>
</Properties>
<Source/>
<StockToolRef idValue="{2AE7120B-CEE4-47A5-9B50-EF9F3ADE24AC}"/>
<Data>
<Macro>^C^C_line</Macro>
</Data>
</Tool>


Thanks,
Misha

"Crystal Bailey" <cba...@cfxamerica.com> wrote in message
news:B0E8598FC0A7CAA0...@in.WebX.maYIadrTaRb...
> Scott,
>
> ok....Bob and I are trying to figure out what you are talking about and we
> both have no clue. Could you clue us in?
>
> Crystal
>


scott mceachron

unread,
Mar 28, 2003, 3:59:53 PM3/28/03
to
oh ya - and then drag it to a tool palette!
;)

"scott mceachron" <smcea...@avat.com> wrote in message
news:A623C94BE00A4173...@in.WebX.maYIadrTaRb...
> Try this - save this as an .atc file. You'll notice this is for the line
> command. Simply replace the line command with a lisp routine.


>
> <Tool>
> <ItemID idValue="{F0D064DC-6C66-4E6C-BBAA-CFCDBD15BE78}"/>
> <Properties>
> <ItemName>Line</ItemName>
> <Images>
> <Image cx="16" cy="16" src="Images\msf1f_1.png"/>
> </Images><Time createdUniversalDateTime="2002-11-28T01:28:32"
> modifiedUniversalDateTime="2002-11-28T01:28:32"/>
> </Properties>
> <Source/>
> <StockToolRef idValue="{2AE7120B-CEE4-47A5-9B50-EF9F3ADE24AC}"/>
> <Data>
> <Macro>^C^C_line</Macro>
> </Data>
> </Tool>
>
>

> by the way - thanks for all the good jokes!
>
> Enjoy!
> scott
>
> --
> scott mceachron
> avatech solutions - dallas
> http://www.avat.com/


>
>
>
> "Crystal Bailey" <cba...@cfxamerica.com> wrote in message

> news:34C6BEA74D2E8731...@in.WebX.maYIadrTaRb...

scott mceachron

unread,
Mar 28, 2003, 3:58:25 PM3/28/03
to

Enjoy!
scott

Matt Kolberg

unread,
Mar 28, 2003, 6:31:56 PM3/28/03
to
Is there, or will there be documentation sometime in the future with
instructions/techniques for customizing these palette?

Matt Kolberg


scott mceachron

unread,
Mar 28, 2003, 4:54:02 PM3/28/03
to
1. open the notepad - start a new file.
2. paste in the following:

<Tool>
<ItemID idValue="{F0D064DC-6C66-4E6C-BBAA-CFCDBD15BE78}"/>
<Properties>
<ItemName>Line</ItemName>
<Images>
<Image cx="16" cy="16" src="Images\msf1f_1.png"/>
</Images><Time createdUniversalDateTime="2002-11-28T01:28:32"
modifiedUniversalDateTime="2002-11-28T01:28:32"/>
</Properties>
<Source/>
<StockToolRef idValue="{2AE7120B-CEE4-47A5-9B50-EF9F3ADE24AC}"/>
<Data>
<Macro>^C^C_line</Macro>
</Data>
</Tool>

3. Save the notepad file as "line.atc"
4. Drag and drop the file on a tool palette
5. You can substitute your own lisp routines instead of "_line" shown
above.

e-mail me if it doesn't make sense
smcea...@avat.com


--
scott mceachron
avatech solutions - dallas
http://www.avat.com/

"Crystal Bailey" <cba...@cfxamerica.com> wrote in message

news:B0E8598FC0A7CAA0...@in.WebX.maYIadrTaRb...
> Scott,
>
> ok....Bob and I are trying to figure out what you are talking about and we
> both have no clue. Could you clue us in?
>
> Crystal
>
>

> "scott mceachron" <smcea...@avat.com> wrote in message

> news:678AA43A914DA1C5...@in.WebX.maYIadrTaRb...

Crystal Bailey

unread,
Mar 28, 2003, 4:18:41 PM3/28/03
to
Scott,

ok....Bob and I are trying to figure out what you are talking about and we
both have no clue. Could you clue us in?

Crystal


"scott mceachron" <smcea...@avat.com> wrote in message

news:678AA43A914DA1C5...@in.WebX.maYIadrTaRb...

Mikhail Belilovskiy (Autodesk)

unread,
Mar 28, 2003, 10:28:17 PM3/28/03
to
There is API documentation. I am not sure how much it covers though.

I don't think there will be regular UI documentation since you can create
only block and hatch tools using UI.

Thanks,
Misha

"Matt Kolberg" <mkol...@urban-systems.com> wrote in message
news:595EAABCE71B3525...@in.WebX.maYIadrTaRb...

Jeff Briggs

unread,
Apr 9, 2003, 10:57:59 AM4/9/03
to
The last post does not make any sense to me.

Toolbars and ToolPalettes are different.

Crystal, I followed the exact steps as described in an earlier post from
scott mceachron and it worked for me. I saved the line.atc file to my
desktop and then dragged the file onto a tool palette in Acad 2004 and it
showed up.


R. Robert Bell

unread,
Apr 12, 2003, 12:00:13 AM4/12/03
to
A release of AutoCAD! ;-) Tool palettes are in A2k4.


--
R. Robert Bell, MCSE
www.AcadX.com


"Lumpo_Del_Magnifico" <eric...@tic.toshiba.com> wrote in message
news:f1536...@WebX.maYIadrTaRb...
| OK now I'm confused. I thought you were trying to put a button on the
toolbar to execute your Lisp routine? What is the difference then between a
toolbar and a
| tool palette? Someone clear this one up for me please?


0 new messages