Lisp for RTEXT needed but no idea how to do it...!!!!

Lisp for RTEXT needed but no idea how to do it...!!!!

neilyj666
Mentor Mentor
725 Views
1 Reply
Message 1 of 2

Lisp for RTEXT needed but no idea how to do it...!!!!

neilyj666
Mentor
Mentor

I'm using the Express Tool RTEXT to place a list of XREFS in my drawing and using the Diesel expression $(xrefs,1, Includes: ) to produce this.

 

I have to copy and paste the Diesel expression every time which is a bit tedious so can this be incorporated into a macro or button and if so how is it done

 

Thanks

 

Neil

neilyj (No connection with Autodesk other than using the products in the real world)
Did you find this post helpful? Feel free to Like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.

EESignature


AEC Collection 2026 UKIE (mainly Civil 3D UKIE and IW)
Win 11 Pro x64, 1Tb Primary SSD, 1Tb Secondary SSD
64Gb RAM Intel(R) Xeon(R) W-11855M CPU @ 3.2GHz
NVIDIA RTX A5000 16Gb, Dual 27" Monitor, Dell Inspiron 7760
0 Likes
726 Views
1 Reply
Reply (1)
Message 2 of 2

patrick_35
Collaborator
Collaborator

Hi

 

For example

(entmake (list	(cons   0 "RTEXT")
		(cons 100 "AcDbEntity")
		(cons 100 "RText")
		(cons  10 '(0.0 0.0 0.0))
		(cons   1 "$(xrefs,3)")

; Options
		(cons  67 0) ; ModelSpace
		(cons 410 "Model")
		(cons   8 "My_Layer")
		(cons  62 1) ; Color
		(cons 370 -3) ; thickness line
		(cons  50 0.0) ; Angle
		(cons  40 10.0) ; Text hight
		(cons   7 "Standard") ; Text style
	 )
)

@+

0 Likes