CoCreate User Forum

CoCreate User Forum (https://www.cocreateusers.org/forum/index.php)
-   Enhancement Requests (https://www.cocreateusers.org/forum/forumdisplay.php?f=29)
-   -   integrated lisp editor (https://www.cocreateusers.org/forum/showthread.php?t=213)

rr79 01-02-2003 02:44 PM

integrated lisp editor
 
I think it would be extremely beneficial to have an integrated lisp editor similiar to autocad autolisp editor.

Just an idea, but I can survive without one.

Wolfgang 01-11-2003 07:54 AM

Sorry RR97,

I do not understand your posting.
on one hand you are asking for a LISP editor
on the other hand you wrote 'but I can survive without one.'

It's a little bit funny, isn't it?

I assume CoCreate will never create/deliver a simple ascii editor. There are enough (freeware) tools around and a couple of them offer syntax high lighting for LISP, too.

And further more, if CC would do so, how many people would be satisfied whit it? There would be lots of question: "I'm missing this" "I'm missing that".. CoCreate will concentrate on their core business and not spend time for an ascii editor (at least I hope so ;) )

rr79 01-21-2003 12:48 PM

Have you used the ACAD 2000 Autolisp editor?? It's amazing. It one of the best lisp editor, I've ever used. I prefer it over ultra edit, textpad, boxer and various other lisp editors.

I use it for all of my OSDM and autocad lisp code creation.
It's ability to help debug code is great, along with it's integrate help files (note only for autolisp).

I just think it would be nice to have a similar package available for OSDM.

Michael Kahle 06-12-2009 08:17 AM

Re: integrated lisp editor
 
CoCreate now adds Notepad++ to its package which also includes hilighters for lisp,ikit and macro code.

http://notepad-plus.sourceforge.net/de/site.htm

John van Doorn 09-24-2009 12:24 PM

Re: integrated lisp editor
 
Notepad++ is great, but i like to see if it would be possible to hit F5 in notepad++ which would load the file into modeling.

Mike Swartz 10-30-2009 06:32 AM

Re: integrated lisp editor
 
Quote:

Originally Posted by John van Doorn (Post 22528)
Notepad++ is great, but i like to see if it would be possible to hit F5 in notepad++ which would load the file into modeling.

Quote:

And further more, if CC would do so, how many people would be satisfied whit it? There would be lots of question: "I'm missing this" "I'm missing that".. CoCreate will concentrate on their core business and not spend time for an ascii editor (at least I hope so )

Looks like he just proved your point :D

BMaverick 10-30-2009 08:00 AM

Re: integrated lisp editor
 
Quote:

Originally Posted by John van Doorn (Post 22528)
Notepad++ is great, but i like to see if it would be possible to hit F5 in notepad++ which would load the file into modeling.

That would be nice indeed. ;)

Or how about in the EDIT > SETTINGS > UI SETTINGS the Lisp editor can be defined by the user. This way notepad++ or any other text editor can be defined. This way, when the hot-key is pressed in CC, it would load the active Lisp file into modeling. Of course, the Lisp file may need to be saved first. Not sure how this would totally interact.

It would be nice to have the defined Lisp editor as a plug-in to CC.

Plenty of the other parametic CAD systems talk with spreadsheets or are direct plug-ins to manage the parameters. Having a CC plug-in for the Lisp editor would be a great interface. :)

John van Doorn 11-05-2009 01:15 AM

Re: integrated lisp editor
 
I've found a solution for this which i like to share:
What I accomplished is that when i hit F6 in Notepad++ that the file is loaded in Modeling and that CoCreate Modeling pops to the front.
This is what you need to do:

First I added some registry keys in a way that when i double click in explorer on a .lsp file it loads into modeling (change the path's to meet your installation):

Code:


Windows Registry Editor Version 5.00


[HKEY_CLASSES_ROOT\.lsp]
@="SolidDesigner.Lisp"
 
[HKEY_CLASSES_ROOT\SolidDesigner.Lisp]
@="SolidDesigner Lisp File"
"EditFlags"=hex:00,00,00,00
 
[HKEY_CLASSES_ROOT\SolidDesigner.Lisp\DefaultIcon]
@="C:\\PROGRA~1\\CoCreate\\COCREA~1\\binNT\\SOLIDD~1.EXE,1"
 
[HKEY_CLASSES_ROOT\SolidDesigner.Lisp\shell]
 
[HKEY_CLASSES_ROOT\SolidDesigner.Lisp\shell\open]
 
[HKEY_CLASSES_ROOT\SolidDesigner.Lisp\shell\open\command]
@="C:\\PROGRA~1\\CoCreate\\COCREA~1\\binNT\\SolidDesigner.exe /dde"
 
[HKEY_CLASSES_ROOT\SolidDesigner.Lisp\shell\open\ddeexec]
@="[open(\"%1\")]"
 
[HKEY_CLASSES_ROOT\SolidDesigner.Lisp\shell\print]
 
[HKEY_CLASSES_ROOT\SolidDesigner.Lisp\shell\print\command]
@="C:\\PROGRA~1\\CoCreate\\COCREA~1\\binNT\\SolidDesigner.exe /dde"
 
[HKEY_CLASSES_ROOT\SolidDesigner.Lisp\shell\print\ddeexec]
@="[print(\"%1\")]"
 
[HKEY_CLASSES_ROOT\SolidDesigner.Lisp\shell\printto]
 
[HKEY_CLASSES_ROOT\SolidDesigner.Lisp\shell\printto\command]
@="C:\\PROGRA~1\\CoCreate\\COCREA~1\\binNT\\SolidDesigner.exe /dde"
 
[HKEY_CLASSES_ROOT\SolidDesigner.Lisp\shell\printto\ddeexec]
@="[printto(\"%1\",\"%2\",\"%3\",\"%4\")]"

Next we need to change notepad++ to lauch the lsp file when we hit F6, i wrote a batch file: C:\bin\load_lisp.bat which can be called from notepad++

Code:


setlocal ENABLEEXTENSIONS ENABLEDELAYEDEXPANSION
rem Check that the current file is a lisp Program Source file
if /i %~x1 NEQ .lsp (
        echo Error: file %~dpnx1 is not a lisp Program Source file ^(^*.lsp^)
        echo.
        pause
) else (
        if not exist "%~dpn1.lsp" (
                echo Error: file %~dpn1.lsp does not exist
                echo You have to save the file before you can run it
                echo.
                pause
) else (
        "%~dpn1.lsp"
)
)

And last we need to tell notepad++ to lauch the batch file with the filename parameter. You can accomplish this by editing the file:
%APPDATA%\notepad++\shortcuts.xml, please note that you can not edit this file with notepad++ itself because when you exit notepad++ this file will be overwritten. Add the following line to this file in the section <UserDefinedCommands>:
Code:


<Command name="Load in Modeling" Ctrl="no" Alt="no" Shift="no" Key="117">C:\bin\load_lisp.bat &quot;$(FULL_CURRENT_PATH)&quot;</Command>

Happy programming!

BMaverick 11-06-2009 08:41 AM

Re: integrated lisp editor
 
Brilliant work! :)


All times are GMT -8. The time now is 09:12 AM.

Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.