Visual LISP, AutoLISP and General Customization
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Trying to get my layers enable to work.

15 REPLIES 15
SOLVED
Reply
Message 1 of 16
jdrpt
820 Views, 15 Replies

Trying to get my layers enable to work.

Hello I'm trying to get my layers to work but doesn't see to be happening keep getting "lamake Unknown command "LAMAKE". Press F1 for help.". Not sure why the command string changed to ^c^clamake. When I try to enable my 3dlayers in my tool palette I get "(progn(load "C:/WORK/ACAD/AutoCad/IETools/lisp/3dielayers.lsp")(c:commdl_cr)) ; error: File load canceled: C:/WORK/ACAD/AutoCad/IETools/lisp/3dielayers.lsp" 

 

If you have any ideas much would be appreciated. I can attach my lisp routine and my atc if needed.

15 REPLIES 15
Message 2 of 16
paullimapa
in reply to: jdrpt

Those look like custom commands that don't come with plain Autocad.

You should speak to whoever installed the IETOOLS for assistance.


Paul Li
IT Specialist
@The Office
Apps & Publications | Video Demos
Message 3 of 16
Sea-Haven
in reply to: jdrpt

Does just this part work copy it to command line ?

 

(load "C:/WORK/ACAD/AutoCad/IETools/lisp/3dielayers.lsp")

 

The other way if have spaces in directory or filenames etc

(load "C:\\WORK\\ACAD\\AutoCad\\IETool\\lisp\\3dielayers.lsp")

 

Another is set a support path Options, Files, Support and add "C:/WORK/ACAD/AutoCad/IETools/lisp" can then use (load "3dielayers.lsp")

Message 4 of 16
jdrpt
in reply to: Sea-Haven

So I got my 3D layers to start working now having and got some of my other layers to work as well but now having a lot of problems with my other palettes seems like an on going assessment of trouble. I'll attach my screen shot of my layers recent layers and the files for the layers. the old command for [CDATA[^c^clamake]] in the .atc but command string was ^c^clamake. I changed the new command string to ^c^c(progn(load "C:/WORK/ACAD/AutoCad/IETools/lisp/ielayers.lsp")(c:commdl_cr)) 

But this displays.

Layers Error Command.png

Message 5 of 16
jdrpt
in reply to: paullimapa

I no longer work with them anymore. The code isn't a copyright. For clarification for those who may think so.

Message 6 of 16
paullimapa
in reply to: jdrpt

That could be the reason why those don’t work any more 


Paul Li
IT Specialist
@The Office
Apps & Publications | Video Demos
Message 7 of 16
jdrpt
in reply to: paullimapa

A lot of them do work based on majority of them were paths of drives VIA C: drives or V: drives.

Message 8 of 16
Kent1Cooper
in reply to: jdrpt

That series of unknown command names [in the image at Message 4] starts with the line right after the ielayers.lsp code has tried to assign the linetype "matchline" to a Layer.  That is not a standard AutoCAD linetype.  If you don't have that linetype available, the Layer command complains about that, and goes back to the base Layer prompt, instead of asking for a Layer name to which that linetype should be assigned.  So the final "" in that line of code, which is intended to accept the current Layer as the one to give that linetype to, comes at the base prompt instead, and simply ends the command.  Then the "M" on the next line is the first of the unknown commands.

 

To avoid that, you must have the "matchline" linetype available to the command, which can be either by having it loaded in the drawing already, or included within the acad.lin [or acadiso.lin] file, where the Layer command can find it even if it is not yet loaded.  It can't find linetypes defined in other files, so they must be loaded first to be available.

Kent Cooper, AIA
Message 9 of 16
Sea-Haven
in reply to: jdrpt

Just a comment "No longer work for them" did you ask if you could take the code with you ? The copyright of who owns code is very grey and subsequent who can use it. You could put your self at risk of the former company suing you.

 

It also puts people commenting here as a party to a breach of copyright.

 

If you have approval then ignore my comments.

 

Message 10 of 16
jdrpt
in reply to: Sea-Haven

I do agree with you. But this isn't there circumstance I thank you for you're concern. 

Message 11 of 16
jdrpt
in reply to: Kent1Cooper

So I found the cad file that has all the layers and line types that it needs in order to create it but not sure how Link the two together VIA lisp routine to find the cad file and or linetype acad.lin.

 

Could the I used a routine to find the cadfile or export the linetype out of it?

Message 12 of 16
paullimapa
in reply to: jdrpt

for exporting linetypes to create the .lin file read up on this:

https://www.autodesk.com/support/technical/article/caas/sfdcarticles/sfdcarticles/how-to-export-line...


Paul Li
IT Specialist
@The Office
Apps & Publications | Video Demos
Message 13 of 16
jdrpt
in reply to: paullimapa

So once I run that where does it go?

Message 14 of 16
paullimapa
in reply to: jdrpt

follow the instructions


Paul Li
IT Specialist
@The Office
Apps & Publications | Video Demos
Message 15 of 16
jdrpt
in reply to: jdrpt

Loaded it through lisp and nothing happened which is why i asked. nil .png

Message 16 of 16
paullimapa
in reply to: jdrpt

after you loaded the vlx you have to run it by entering the command: LinOut


Paul Li
IT Specialist
@The Office
Apps & Publications | Video Demos

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

AutoCAD Inside the Factory


Autodesk Design & Make Report