pipefitter72 Posted November 10, 2014 Share Posted November 10, 2014 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 Quote Link to comment Share on other sites More sharing options...
Tharwat Posted November 10, 2014 Share Posted November 10, 2014 Post as example of the way you are processing the command manually so that we can arrange these steps in that command call in codes . Quote Link to comment Share on other sites More sharing options...
pipefitter72 Posted November 10, 2014 Author Share Posted November 10, 2014 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)) Quote Link to comment Share on other sites More sharing options...
Tharwat Posted November 10, 2014 Share Posted November 10, 2014 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 . Quote Link to comment Share on other sites More sharing options...
pipefitter72 Posted November 10, 2014 Author Share Posted November 10, 2014 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. Quote Link to comment Share on other sites More sharing options...
Tharwat Posted November 11, 2014 Share Posted November 11, 2014 I am sorry , I can't test any codes with the objects you are referring to . Maybe someone else can help you with it . Quote Link to comment Share on other sites More sharing options...
pipefitter72 Posted November 11, 2014 Author Share Posted November 11, 2014 thanks I appreciate you taking the time to try anyway. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.