Insert Block and directly move attribute

Insert Block and directly move attribute

C.Utzinger
Collaborator Collaborator
2,483 Views
23 Replies
Message 1 of 24

Insert Block and directly move attribute

C.Utzinger
Collaborator
Collaborator

HI

 

Is it possible to insert the attached block and directly move the Attribute with a lispcode?

 

I mean first you select the instertpoint for the block and the the Location Point for the Attribute.

 

 

Please help....

 

0 Likes
Accepted solutions (3)
2,484 Views
23 Replies
Replies (23)
Message 21 of 24

C.Utzinger
Collaborator
Collaborator

Hi again 😞

 

A question to the getpoint part.

 

(getpoint (trans (vlax-get itm 'TextAlignmentPoint) 0 1) "\nTextposition angeben: ")

 

Is it posible to see the text moving, or a shadow, or a rectangle, or somehting else?

 

 

Kind regards

 

 

0 Likes
Message 22 of 24

pbejse
Mentor
Mentor
Accepted solution

@C.Utzinger wrote:

....Is it posible to see the text moving, or a shadow, or a rectangle, or somehting else?


Really Cree-G?

 

images.jpg

 

 

 

GRREAD <---- Read this

 

 

 

 

(defun _NextTrick (pt obj / end code pt2)
      	(while
              (and (null end)  (setq p (grread t 15 0) code (car p)))
                      (cond
                            ((= 5 code)
                             (vlax-put obj 'TextAlignmentPoint (setq pt2 (trans (cadr p) 1 0)))
			     (setq pt pt2)
                             )
                            ( (or (= 2 code)(= code 3))
                                 (setq end T)))
                      	)
      )

command: IBDMA <---- Insert Block and Directly Move Attribute

 

 

HTH (again)

 

Message 23 of 24

C.Utzinger
Collaborator
Collaborator

 

Sorry! I have no more questions, now it's perfect.

 

Thank you very much for the the link and lesson.

 

I learned again so much!!!!

 

And nice Image Smiley LOL

 

 

Kind regards

0 Likes
Message 24 of 24

pbejse
Mentor
Mentor

@C.Utzinger wrote:

 

Sorry! I have no more questions, now it's perfect....Thank you very much for the the link and lesson.... I learned again so much!!!! 

 


Excellent!

 

You are welcome.

 

 

0 Likes