Emmanuel Focus Electrique Posted January 30, 2024 Posted January 30, 2024 Hi, I'm a new Autolisp user and with Lee Ambrosus Book, I wrote this following code. I want to search a specific object in my block and move this one in a specific point (absolute coordinates). But what I saw, this Object move as a translation (Relative coordinates). So how change my code to move my object in the specific UCS coordinates. (if (setq ss (ssget "_X" '((2 . "RATING1")))) (progn (setq ent_data (entget (ssname ss 0))) (setq ent_data (ssname ss 0)) (setq obj (vlax-ename->vla-object ent_data)) (setq insPt (vlax-get-property obj 'insertionpoint)) (setq ca (vlax-variant-value insPt)) (setq pt (vlax-safearray->list ca)) (sssetfirst nil ss) (command "._move" ss "" pt '(6.0 -18.0 0.0)))) Thanks Emmanuel Quote
Emmanuel Focus Electrique Posted January 30, 2024 Author Posted January 30, 2024 So my bad, Thanks to this program, I understand I took the wrong object Property, I need to use TextAlignmentPoint instead of InsertionPoint: http://www.theswamp.org/index.php?topic=5185.msg62997#msg62997 I hope that could help someone else. Emmanuel Quote
CyberAngel Posted January 31, 2024 Posted January 31, 2024 Welcome to the forum. Thank you for sharing your experience, someone else may benefit. Quote
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.