ryankevin15 Posted January 26, 2018 Posted January 26, 2018 Hello, I am looking for a .lsp that will allow me to insert a titleblock of a different size and run a command on the existing titleblock and click on the new titleblock and it will retain all the same information (even with text fields) and copy over the information into the new titleblock without having to fill out the new titleblock. Our titleblocks use mostly fields but the project name, address, drawing number and drawing name have just regular attribute text objects. This would be a huge time saver if I have to take something that was originally on a 22x34 titleblock and resize the viewport and insert a new 8-1/2x11 titleblock quickly without having to re-enter all of the information. This would be a tremendous time saver! Thank you in advance Quote
BIGAL Posted January 26, 2018 Posted January 26, 2018 It is not that hard you can use ssget with a W window, WP within polygon CP crossing polygon etc and get just one object at a time, you will have to repeat for every window pick. (setq ss1 (ssget "W" pt1 pt2 '((0 . "*text")))) (setq tans (vla-get-textstring (vlax-ename->vla-object (ssname SS1 0 )))) or (setq tans (cdr (assoc 1 (entget (ssname ss1 0))))) (setq ss1 nil) Quote
maratovich Posted January 27, 2018 Posted January 27, 2018 An interesting method ... Can you attach a sample dwg file? Quote
CAD_Noob Posted January 29, 2018 Posted January 29, 2018 This will be good if someone will create a lisp for this. currently I'm using Leemac's CopyField Quote
BIGAL Posted January 29, 2018 Posted January 29, 2018 Like Maratovich a sample with the two titles would be best the 2 filled in so can see where stuff goes. Quote
ryankevin15 Posted January 29, 2018 Author Posted January 29, 2018 Apparently there is already an express tool for this. Express Tools > Blocks > Replace Block with another block. Then just run ATTSYNC on the new titleblock. 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.