Jump to content

Lisp's not working in 2010 that worked in 2009


kkleinchester

Recommended Posts

Did you not receive an error after running the code in reply #12?

 

If so, could you post your command-line history on here so that we can diagnose it :)

 

Guess I should word myself a little differently. Remember, I am American.:wink:

Link to comment
Share on other sites

  • Replies 54
  • Created
  • Last Reply

Top Posters In This Topic

  • alanjt

    22

  • kkleinchester

    19

  • Lee Mac

    12

  • JeepMaster

    2

Top Posters In This Topic

Posted Images

If you copied the code in post #12 onto the command line and hit enter you should receive:

 

C:MXY

 

Then, if you type MXY and hit enter, it should invoke the LISP function.

Link to comment
Share on other sites

it spat out a mile long list, then gave me a ton of errors.

 

Invalid window specification.

Select objects: Specify opposite corner: Select

Invalid window specification.

Select objects: Specify opposite corner: objects:

Invalid window specification.

Select objects: Specify opposite corner:

Invalid window specification.

Select objects: Specify opposite corner: Specify

Invalid window specification.

Select objects: Specify opposite corner: base

Invalid window specification.

Select objects: Specify opposite corner: point

Invalid window specification.

Select objects: Specify opposite corner: or

Invalid window specification.

Select objects: Specify opposite corner: [Displacement]

Invalid window specification.

Select objects: Specify opposite corner: :

Invalid window specification.

Select objects: Specify opposite corner: Specify

Invalid window specification.

Select objects: Specify opposite corner: second

Invalid window specification.

Select objects: Specify opposite corner: point

Invalid window specification.

Select objects: Specify opposite corner: or

Invalid window specification.

Select objects: Specify opposite corner:

Invalid window specification.

Select objects: Specify opposite corner:

Invalid window specification.

Select objects: Specify opposite corner: first

Invalid window specification.

Select objects: Specify opposite corner: point

Invalid window specification.

Select objects: Specify opposite corner: as

Invalid window specification.

Select objects: Specify opposite corner: displacement>:

Invalid window specification.

Select objects: Specify opposite corner: *Cancel*

Invalid window specification.

Select objects: Specify opposite corner:

Invalid window specification.

Select objects: Specify opposite corner: Command:

Invalid window specification.

Select objects: Specify opposite corner: *Cancel*

Invalid window specification.

Select objects: Specify opposite corner:

Invalid window specification.

Select objects: Specify opposite corner: Command:

Invalid window specification.

Select objects: Specify opposite corner: *Cancel*

Invalid window specification.

Select objects: Specify opposite corner:

Invalid window specification.

Select objects: Specify opposite corner: Command:

Invalid window specification.

Select objects: Specify opposite corner: (defun c:mxy (/ ss ptso ptre ptd)

;Move in X,Y only

(_> (_> (setvar "cmdecho" 1)

((_> (_> (setq ss (ssget))

(((_> (_> (setq ptso (getpoint "\n Select source point"))

((((_> (_> (setq ptre (getpoint "\n Select destination reference"))

(((((_> (_> (setq ptd (list (car ptre) (cadr ptre) (caddr ptso)))

((((((_> (_> (command "_.move" ss "" "_non" ptso "_non" ptd)

(((((((_> (_> (setvar "cmdecho" 1)

((((((((_> (_> (princ)

(((((((((_> (_> )

(((((((((_> C:MXY

(((((((((_>

(((((((((_> Command:

(((((((((_> .MOVE

misplaced dot on input

Specify opposite corner: Select

Invalid window specification.

Select objects: Specify opposite corner: objects:

Invalid window specification.

Select objects: Specify opposite corner: 1 0 found

Select objects: found

*Invalid selection*

Expects a point or

Window/Last/Crossing/BOX/ALL/Fence/WPolygon/CPolygon/Group/Add/Remove/Multiple/P

revious/Undo/AUto/SIngle/SUbobject/Object

Select objects:

Command: Select

Select objects: objects:

*Invalid selection*

Expects a point or

Window/Last/Crossing/BOX/ALL/Fence/WPolygon/CPolygon/Group/Add/Remove/Multiple/P

revious/Undo/AUto/SIngle/SUbobject/Object

Select objects:

Command: Specify Unknown command "SPECIFY". Press F1 for help.

Command: base Enter base point : point

Invalid point.

Enter base point : or

Invalid point.

Enter base point : [Displacement]

Invalid point.

Enter base point : :

Invalid point.

Enter base point : Specify

Invalid point.

Enter base point : second

Invalid point.

Enter base point : point

Invalid point.

Enter base point : or

Invalid point.

Enter base point :

Command:

Command: first Unknown command "FIRST". Press F1 for help.

Command: point

Current point modes: PDMODE=34 PDSIZE=0'-3"

Specify a point: as

Invalid point.

Specify a point: displacement>:

Invalid point.

Specify a point:

Invalid point.

Specify a point:

Invalid point.

Specify a point: off>

Invalid point.

Specify a point: *Cancel*

Invalid point.

Specify a point:

Invalid point.

Specify a point: Command:

Invalid point.

Specify a point: Specify

Invalid point.

Specify a point: opposite

Invalid point.

Specify a point: corner:

Invalid point.

Specify a point: Command:

Invalid point.

Specify a point: (defun c:mxy (/ ss ptso ptre ptd) ;Move in X,Y only

(_> (_> (setvar "cmdecho" 1)

((_> (_> (setq ss (ssget))

(((_> (_> (setq ptso (getpoint "\n Select source point"))

((((_> (_> (setq ptre (getpoint "\n Select destination reference"))

(((((_> (_> (setq ptd (list (car ptre) (cadr ptre) (caddr ptso)))

((((((_> (_> (command "_.move" ss "" "_non" ptso "_non" ptd)

(((((((_> (_> (setvar "cmdecho" 1)

((((((((_> (_> (princ)

(((((((((_> (_> )

(((((((((_> C:MXY

(((((((((_>

(((((((((_> Command:

(((((((((_> .MOVE

misplaced dot on input

Specify a point: Select

Invalid point.

Specify a point: objects:

Invalid point.

Specify a point: 1

Command: found

Unknown command "FOUND". Press F1 for help.

Command:

POINT

Current point modes: PDMODE=34 PDSIZE=0'-3"

Specify a point: Select

Invalid point.

Specify a point: objects:

Invalid point.

Specify a point:

Invalid point.

Specify a point: Specify

Invalid point.

Specify a point: base

Invalid point.

Specify a point: point

Invalid point.

Specify a point: or

Invalid point.

Specify a point: [Displacement]

Invalid point.

Specify a point: :

Invalid point.

Specify a point: Specify

Invalid point.

Specify a point: second

Invalid point.

Specify a point: point

Invalid point.

Specify a point: or

Invalid point.

Specify a point:

Invalid point.

Specify a point:

Invalid point.

Specify a point: first

Invalid point.

Specify a point: point

Invalid point.

Specify a point: as

Invalid point.

Specify a point: displacement>:

Invalid point.

Specify a point: *Cancel*

Invalid point.

Specify a point:

Invalid point.

Specify a point: Command:

Invalid point.

Specify a point: *Cancel*

Invalid point.

Specify a point:

Invalid point.

Specify a point: Command:

Invalid point.

Specify a point: *Cancel*

Invalid point.

Specify a point:

Invalid point.

Specify a point: Command:

Invalid point.

Specify a point: Command:

Invalid point.

Specify a point: (defun c:mxy (/ ss ptso ptre ptd) ;Move in X,Y only

(_> (_> (setvar "cmdecho" 1)

((_> (_> (setq ss (ssget))

(((_> (_> (setq ptso (getpoint "\n Select source point"))

((((_> (_> (setq ptre (getpoint "\n Select destination reference"))

(((((_> (_> (setq ptd (list (car ptre) (cadr ptre) (caddr ptso)))

((((((_> (_> (command "_.move" ss "" "_non" ptso "_non" ptd)

(((((((_> (_> (setvar "cmdecho" 1)

((((((((_> (_> (princ)

(((((((((_> (_> )x

(((((((((_> nil

(((((((((_>

(((((((((_> Command:

(((((((((_> Command:

(((((((((_> .+OPTIONS

misplaced dot on input

Specify a point: Tab

Invalid point.

Specify a point: index

Invalid point.

Specify a point: :

Invalid point.

Specify a point: 1

Command:

POINT

Current point modes: PDMODE=34 PDSIZE=0'-3"

Specify a point: Command:

Invalid point.

Specify a point:

Invalid point.

Specify a point: .+OPTIONS

Invalid point.

Specify a point: Tab

Invalid point.

Specify a point: index

Invalid point.

Specify a point: :

Invalid point.

Specify a point: (defun c:mxy (/ ss ptso ptre ptd) ;Move in X,Y only

(_> (_> (setvar "cmdecho" 1)

((_> (_> (setq ss (ssget))

(((_> (_> (setq ptso (getpoint "\n Select source point"))

((((_> (_> (setq ptre (getpoint "\n Select destination reference"))

(((((_> (_> (setq ptd (list (car ptre) (cadr ptre) (caddr ptso)))

((((((_> (_> (command "_.move" ss "" "_non" ptso "_non" ptd)

(((((((_> (_> (setvar "cmdecho" 1)

((((((((_> (_> (princ)

(((((((((_> (_> )*Cancel*

(((((((((_>

(((((((((_> Tab index :

(((((((((_>

(((((((((_> Command: .+OPTIONS

misplaced dot on input

Specify a point: Tab

Invalid point.

Specify a point: index

Invalid point.

Specify a point: :

Invalid point.

Specify a point: (defun c:mxy (/ ss ptso ptre ptd) ;Move in X,Y only

(_> (_> (setvar "cmdecho" 1)

((_> (_> (setq ss (ssget))

(((_> (_> (setq ptso (getpoint "\n Select source point"))

((((_> (_> (setq ptre (getpoint "\n Select destination reference"))

(((((_> (_> (setq ptd (list (car ptre) (cadr ptre) (caddr ptso)))

((((((_> (_> (command "_.move" ss "" "_non" ptso "_non" ptd)

(((((((_> (_> (setvar "cmdecho" 1)

((((((((_> (_> (princ)

(((((((((_> (_> )run

(((((((((_> nil

(((((((((_>

(((((((((_> Command: .+OPTIONS

misplaced dot on input

Specify a point: Tab

Invalid point.

Specify a point: index

Invalid point.

Specify a point: :

Invalid point.

Specify a point: (defun c:mxy (/ ss ptso ptre ptd) ;Move in X,Y only

(_> (_> (setvar "cmdecho" 1)

((_> (_> (setq ss (ssget))

(((_> (_> (setq ptso (getpoint "\n Select source point"))

((((_> (_> (setq ptre (getpoint "\n Select destination reference"))

(((((_> (_> (setq ptd (list (car ptre) (cadr ptre) (caddr ptso)))

((((((_> (_> (command "_.move" ss "" "_non" ptso "_non" ptd)

(((((((_> (_> (setvar "cmdecho" 1)

((((((((_> (_> (princ)

(((((((((_> (_> )

(((((((((_> C:MXY

(((((((((_>

(((((((((_> Tab index : 1

(((((((((_>

(((((((((_> *Cancel*

Function cancelled

Specify a point:

Command:

Command:

POINT

Current point modes: PDMODE=34 PDSIZE=0'-3"

Specify a point:

Command: Specify opposite corner:

Command: mx

Unknown command "MX". Press F1 for help.

Command:

Command: *Cancel*

Command: *Cancel*

Command: _close

Link to comment
Share on other sites

that works for to make you not move in a z axis. What I really would like is to make it where you can hit mx- and only move in the x axis, my...y axis and what not.

 

Thanks for the help, I am very new to altering lisps.

Link to comment
Share on other sites

Well, the only thing I changed was:

(command ".move" ss "" "_non" ptso "_non" ptd)

to

(command "[color=Red]_[/color].move" ss "" "_non" ptso "_non" ptd)

Link to comment
Share on other sites

that works for to make you not move in a z axis. What I really would like is to make it where you can hit mx- and only move in the x axis, my...y axis and what not.

 

Thanks for the help, I am very new to altering lisps.

 

Give this thread a look, I posted a couple routines for moving along x/y.

http://www.cadtutor.net/forum/showthread.php?t=41545

Link to comment
Share on other sites

So I assume Ms kleinchester is running a foreign version of ACAD... o:)

 

LoL Lee, o:) is going to become attached to your name, as much as you use it.

Link to comment
Share on other sites

Hahaha... your photoshop skills are off the chart... :shock: impressive.

LoL

I totally butchered the bottom of it. Magic Lasso isn't very smart and I'm just lazy.

Link to comment
Share on other sites

Thanks for the help and the smart ass comments! I have a lot to learn!

We're more about being jerks than helping. :wink:

Did you look at the link I posted?

Link to comment
Share on other sites

I took what I orginally posted to you after I loaded what you gave em, inserted it to the cmdline and shazam I am back in action! Did you self teach yourself this code or did you take some sort of class?

Link to comment
Share on other sites

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...