Jump to content

Insertion Point Not Holding??


jonathann3891

Recommended Posts

This is a dwg_setup menu that I'm working on.

 

For some reason if I delete the title block and run the command again, it will not hold the insertion point at 0,0. Why?

 

(defun c:test ()

(if (= (getvar "Tilemode") 1)(setvar "Tilemode" 0))
(command "._insert" "TEST1" 0.0 "" "" "")
);end if

(princ)

)

Link to comment
Share on other sites

I would suggest:

(command "_.-insert" "test1" "_s" 1.0 "_r" 0.0 "_non" '(0 0))

The "_non" (or "_none") command modifier will ensure any active Object Snap modes are ignored when supplying point input to a command through AutoLISP.

Link to comment
Share on other sites

Thanks for the reply mostafa, that fixed it.

 

I think I tried that, but without the quotation

 

You're welcome

Link to comment
Share on other sites

on a side note, I was messing around with a macro

 

*^C^C-INSERT;TEST1;;;;

 

To specify 0,0,0 would it be this?

 

*^C^C-INSERT;TEST1;0,0,0;;

Link to comment
Share on other sites

on a side note, I was messing around with a macro

 

*^C^C-INSERT;TEST1;;;;

 

To specify 0,0,0 would it be this?

 

*^C^C-INSERT;TEST1;0,0,0;;

 

Try this.

*^C^C_insert;test1;0,0;1;1;0;

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