Jump to content

Recommended Posts

Posted

So you know it's a problem using Marvic lisp, but you're not willing to try anything else?

  • Replies 27
  • Created
  • Last Reply

Top Posters In This Topic

  • jmos4

    12

  • Lee Mac

    8

  • tombu

    5

  • Roy_043

    3

Top Posters In This Topic

Posted

Hi,

 

 

I have tried everything that was suggested, the auto load does not work:

 

 

Command: jmos

Unknown command "JMOS". Press F1 for help.

 

 

So what should I be doing?

 

 

I use commands from the Marvic lisp as well as a few that I have created or inherited over the years and much of those are in the jmos.lsp

 

 

I posted this so you all with much more knowledge than I might give me a solution, I am no expert, I know just enough to be dangerous with LISP, I managed a few things 20 years ago and really haven't had much need for it as I have been mostly using SolidWorks and Catia, I am now at a place that utilizes AutoCAD much more so, I am attempting to get the files I know working, preferable like they use to. I am open to any suggestions, I would rather not have to add a macro button as I really have never like icons to activate commands, one if my major issue with SolidWorks and Catia as I do wished they had a command line function but that is another subject.

 

 

Thanks for the input again, if you all know a line of code to try I will be more than happy to give it a whirl and let you know if it works or not.

 

 

Regards,

Posted
I tried and added the auto load to the end of the Marvic lisp:

 

 

(autoload "jmos" '("jmos"))

 

 

and the same runaway

 

Have you also copied my code for the autoload function into the file before adding this expression?

Posted

Hi,

 

 

I didn't copy the auto load expression into the AutoCAD Acad.lsp file, the lisp files to function like I want them to have to go in the following order:

 

 

1-AutoCAD-Acad.lsp

2-Marvic-Acad.lsp

3-Jmos.lsp

 

 

If they are in a different order it overwrites commands and shortcuts.

 

 

The first 2 load no issues but the third one hasn't been a charm as of yet, ha-ha

 

 

Just a FYI: Marvic Soft Solutions is a Company (guy I use to work with) who wrote a bunch of lisp routines, probably the most wildly used one is FAST which was a fastener program that made most standard fasteners back way before AutoCAD had that function, also had a bunch of block editing commands, and layer commands, 80-85%% still work with the newest version just the loading sometimes causes issues hence the post.

 

 

Regards,

Posted
I didn't copy the auto load expression into the AutoCAD Acad.lsp file

 

That's fine, but did you copy the code for the autoload function definition (the file attached in the post to which I linked) into the file just before the autoload expression?

Otherwise the standard autoload function will be evaluated which will send the function into a recursive loop.

Posted

Hi,

 

 

Yes I added your line to the end of the Marvic-Acad.lsp file just as stated:

 

 

(autoload "jmos" '("jmos"))

(princ)

 

 

Those are the last 2 lines of that lisp, is the second causing an issue, sorry if I am not understanding, like I said I know just enough to be dangerous.

 

 

I did not see a file added to any of the post unless I missed it?

 

 

Regards,

Posted
Yes I added your line to the end of the Marvic-Acad.lsp file just as stated:

(autoload "jmos" '("jmos"))

(princ)

 

Those are the last 2 lines of that lisp, is the second causing an issue, sorry if I am not understanding, like I said I know just enough to be dangerous.

 

I did not see a file added to any of the post unless I missed it?

 

You will need to copy the content of the LISP file attached here to a line just before the autoload expression.

 

When you then invoke the jmos command after drawing startup, the function will indicate if there is an issue trying to demand load the file, rather than entering an infinite loop.

Posted

Please read "About Auto-Loading and Running AutoLISP Routines" https://knowledge.autodesk.com/search-result/caas/CloudHelp/cloudhelp/2016/ENU/AutoCAD-Customization/files/GUID-FDB4038D-1620-4A56-8824-D37729D42520-htm.html

 

Post Jmos.lsp. your (autoload "jmos" '("jmos")) automatically loads the command "jmos" from the "jmos.lsp" file.

Roy_043 repeatedly asked "Does the file contain a c:jmos function?"

 

I asked you to "Try loading it at the command line with (load "jmos.lsp") and look for errors at the command line."

Didn't that work?

 

If you want post "jmos.lsp" and I can guarantee you we'll show you how to autoload it.

 

Without seeing any of the code, what commands are defined in it, or knowing if you've tried anything we've asked helping you is difficult.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...