bijoymano Posted December 12, 2016 Share Posted December 12, 2016 hi, Is it possible to create Coordinates Block with diesel expressions? please let me know how to create if it possible. thanks and regards Bijoy Quote Link to comment Share on other sites More sharing options...
tombu Posted December 29, 2016 Share Posted December 29, 2016 Lisp code to insert coordinate label block: ;| Label for Point. PtLabel.lsp BY: TOM BEAUFORD ^P(or C:Label (load "PtLabel.lsp"));PtLabel BeaufordT@LeonCountyFL.gov Leon County Public Works/Engineering ==================================================================|; (defun C:PtLabel (/ ATTDIA) (setq ATTDIA (getvar "ATTDIA")) (setvar "ATTDIA" 0) (command "._INSERT" "Pt_Coordinates" (getpoint "Pick Point: ") ;Insert pt (/ 0.1 (getvar "cannoscalevalue")) ;X Scale ; (* (getvar "DIMTXT") (getvar "DIMSCALE")) ;X Scale (Alternate) "" ;Y Scale ; "" ;Rotation (*(/(getvar "viewtwist")pi)-180) ;Rotation "" ;Easting "" ;Northing ) (setvar "ATTDIA" ATTDIA) (entupd (entlast)) ; (command "._DDATTE" (entlast)) (princ) ) Required Pt_Coordinates.dwg to insert attached. Pt_Coordinates.dwg 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.