Visual LISP, AutoLISP and General Customization
Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic to the Top
- Bookmark
- Subscribe
- Printer Friendly Page
Re: "Hatch to back" reactor
Options
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
02-16-2013 02:11 AM in reply to:
msarqui
msarqui wrote:
It is possible to do this in model and paper space at the same time? Like in on shot?
Thanks!
Not one shot but sorta ![]()
(defun c:HatchBack (/ HatchColl Dict sorttable)
(vlax-for layout (vla-get-blocks (vla-get-activedocument (vlax-get-acad-object)))
(setq HatchColl nil
Dict (vla-getextensiondictionary layout))
(if (vl-catch-all-error-p
(setq sorttable (vl-catch-all-apply 'vla-item (list dict "ACAD_SORTENTS"))))
(setq sorttable (vla-addObject dict "ACAD_SORTENTS" "AcDbSortentsTable")))
(vlax-for itm layout
(if (eq (vla-get-objectname itm) "AcDbHatch")
(setq HatchColl (cons itm HatchColl))))
(and HatchColl (vlax-invoke sorttable 'MoveToBottom HatchColl)
)
)(princ)
)
Re: "Hatch to back" reactor
Options
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
02-18-2013 05:29 PM in reply to:
pbejse
Re: "Hatch to back" reactor
Options
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
02-19-2013 08:12 PM in reply to:
msarqui



