Jump to content

movemaptext??


pipefitter72

Recommended Posts

Could someone give me an example of how to properly use the "movemaptext"? For instance if i wanted to put in a variable for X and Y offset of a selection set of numbers.this is what I am trying to use in my lisp.

 

(COMMAND "MOVEMAPTEXT" SS 301 (strcat "@" (rtos (car a)) "," (rtos (cadr a))

 

thanks

Link to comment
Share on other sites

this is my current lisp for moving pipe/hanger tags. the user inputs an x and y offset,( or does not input anything to drag tags around manually.). then every tag they click on moves the x and y distance. I would like to replace "movetext" with the "movemaptext" so I can move a selection set of tags instead of one at a time.

 

 

(defun c:MMT (/ a COUNT)
(setq count 0)
     (setq a (getpoint "\n X,Y OFFSET OR ENTER FOR MANUAL MODE"))
     (terpri)
     (princ "\n SELECT TEXT    ESC TO EXIT")
     (if (= nil a)
   
       (progn(while (< count 10)
	(COMMAND "MOVETEXT" pause pause)))
    
(progn(while (< count 10)
(COMMAND "MOVETEXT" pause  (strcat "@" (rtos (car a)) "," (rtos (cadr a)))))))


       

 (princ))

Link to comment
Share on other sites

Why don't you replace these command with standard move command to move the objects you want ?

 

I don't have have MEP AutoCAD to know the difference between the above used commands by you , so that's why I suggested to use move .

Link to comment
Share on other sites

what I am moving is tags , elevations etc for cadmep pipe and hangers. the text is associated with the object, however text is not really an independent object. if you use the "move" command it will move the pipe or hanger, not just the associated text.So you have to either use the grip for the text, or use the "movetext" command(which does not allow selection sets).I found the "movemaptext" command,but I trying to figure proper syntax and usage for it.

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