Block scale, -x value change to +x value without rotating the block

Block scale, -x value change to +x value without rotating the block

sivarajann
Contributor Contributor
462 Views
8 Replies
Message 1 of 9

Block scale, -x value change to +x value without rotating the block

sivarajann
Contributor
Contributor

hi everyone,

i inserted may blocks, by mistake i mirror the blocks, now the x scale become -1, i need to change the value to +1 without rotating the block. please anyone can help me.

0 Likes
463 Views
8 Replies
Replies (8)
Message 2 of 9

Kent1Cooper
Consultant
Consultant

What does the Block look like at scales of 1 and rotation of 0?

Kent Cooper, AIA
0 Likes
Message 3 of 9

sivarajann
Contributor
Contributor

only scale need to change -1 to +1, rotation as it is. because these block indicating plot connections, if it is rotate its moving away from the plot, so rotation i need as it is.

0 Likes
Message 4 of 9

Kent1Cooper
Consultant
Consultant

So does simply changing it in the Properties palette not do what you want?

Kent Cooper, AIA
0 Likes
Message 5 of 9

sivarajann
Contributor
Contributor

actually i need the block look as it is, no rotation. only i need to change the scale -1 to 1.

0 Likes
Message 6 of 9

sivarajann
Contributor
Contributor

if i change the value in properties block will be rotate. whithout rotation i need to change the scale value.

0 Likes
Message 7 of 9

ВeekeeCZ
Consultant
Consultant

See if this returns desired result.

 

(defun c:BXfix ( / s i d)
  
  (if (setq s (ssget "_:L" '((0 . "INSERT") (-4 . "<") (41 . 0.))))
    (repeat (setq i (sslength s))
      (setq d (entget (ssname s (setq i (1- i)))))
      (entmod (setq d (subst (cons 41 (- (cdr (assoc 41 d)))) (assoc 41 d) d)
		    d (subst (cons 50 (+ pi (cdr (assoc 50 d)))) (assoc 50 d) d)))))
  (princ)
  )

 

0 Likes
Message 8 of 9

Kent1Cooper
Consultant
Consultant

@sivarajann wrote:

if i change the value in properties block will be rotate. whithout rotation i need to change the scale value.


You really mean with rotation of the Block, to compensate for the scale factor change so that there is no apparent rotation.  This is why I asked about the native orientation.  I can imagine the solution being different depending on which of these is the equal-scales-and-zero-rotation condition:

Kent1Cooper_0-1663860026570.png

and those are not the only possibilities.

Kent Cooper, AIA
0 Likes
Message 9 of 9

paullimapa
Mentor
Mentor

Since the orientation as displayed on the screen is correct, is there a reason why you need the x scale value to show a +1 vs -1?


Paul Li
IT Specialist
@The Office
Apps & Publications | Video Demos
0 Likes