Message 1 of 2
Adding Extended Data to Viewports AutoCAD

Not applicable
09-16-2018
07:49 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi
I'm trying to add extended data to a viewport. I've used the script below to sucessfully add extended data to Squares, Circles, Line..etc, BUT I'm having issues making it work with Viewports. Is there a way i can add extended data to viewports
Steps I followed
- Create Viewport as the last Object in the Drawing
- Run the below script in LISP Editor to add extended data to last object
(setq lastent (entget (entlast)))
(regapp "STV6")
(setq exdata
'((-3 ("STV6"
(1000 . "BLOCK_NAME")
(1000 . "DETAILCUT0")
)))
)
(setq newent
(append lastent exdata))
(entmod newent)
Thanks
AJ