Importing Lman Layer States
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
Importing Lman Layer States

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





Posted: Fri Dec 17, 2004 10:11 pm    Post subject: Importing Lman Layer States Reply with quote

I just wrote some code to import layer states into lman and I can't figure out why it isn't working. Here's the code:

(defun c:lmanlsimport ()
(setvar "cmdecho" 0)
(setvar "filedia" 0)
(c:-lman)
(command "import" "PRALayerStates.lay" "")
(setvar "cmdecho" 1)
(setvar "filedia" 1)
(princ)
)

It stops after executing the lman. It doesn't do my commands after it.

Back to top
T.Willey
Guest





Posted: Fri Dec 17, 2004 10:28 pm    Post subject: Re: Importing Lman Layer States Reply with quote

Is it because "lman" is lisp routine? Isn't it not part of the ACAD core program?

Just thinking out loud. Other then that I don't know.

Tim
Back to top
jlspartz
Guest





Posted: Sat Dec 18, 2004 12:40 am    Post subject: Re: Importing Lman Layer States Reply with quote

That's why I call it up as (c:-lman) But I expect to be able to put in commands after it is running in the command prompt. I wonder if it takes a split second to load so I need to pause the lisp for a second and then put in the commands. I will try that.

Back to top
Tom Smith
Guest





Posted: Tue Dec 21, 2004 7:01 pm    Post subject: Re: Importing Lman Layer States Reply with quote

Quote:
I need to pause the lisp for a second ...

No. The error you get is "can't reenter AutoLISP" which is telling you this
ain't gonna work. You can't start a lisp running and then use another lisp
expression to feed it an answer.

You could probably do this by way of a script or menu macro of the form
^c^c-lman;import;<etc>

Or alternatively, why not do the same thing with the core LAYER command?
this avoids the lisp difficulty. Since layer states have been added to the
core functions, it shouldn't be necessary to use LMAN at all. Then your lisp
approach would work (command "layer" "state" "import" <etc>).
Back to top
jlspartz
Guest





Posted: Tue Dec 21, 2004 9:15 pm    Post subject: Re: Importing Lman Layer States Reply with quote

Right, it does work with the -layer command. And I have that made. I have it set up to import the layer manager layer states with lisp, and what I had to do with the lman states was make a separate script file and then with lisp run the script. I'm setting up automation for both types of layer states, so people can do anything they'd like to to whichever one they want to use. The only thing I'm missing is the conversion in the migration tools that Autodesk gives you. For some reason, I can't install the package. It tells me I need ADT2005, which I do, but it's not seeing it for some reason. I need the AcLSConvert.arx and AcLSConvertRes.dll files if anyone has them out there.
Back to top
Daniel J. Altamura, R.A.
Guest





Posted: Fri Dec 31, 2004 6:15 pm    Post subject: Re: Importing Lman Layer States Reply with quote

I had the same problem. I had to temporarily install 2004 to get it to
work. It wouldn't see my 2005. Try it, if you still have access to 2004.

--
Daniel J. Altamura, R.A.
Altamura Architectural Consulting
and SoftWorx, Autodesk Authorized Developer
--------------------------------------------------------------------


"jlspartz" <nospam@address.withheld> wrote in message
news:5528963.1103645737718.JavaMail.jive@jiveforum2.autodesk.com...
Quote:
The only thing I'm missing is the conversion in the migration tools that
Autodesk gives you. For some reason, I can't install the package. It
tells me I need ADT2005, which I do, but it's not seeing it for some
reason. I need the AcLSConvert.arx and AcLSConvertRes.dll files if anyone
has them out there.
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