|
Welcome, Guest.
|
||||||
| AutoLISP AutoLISP or Visual LISP, learn both here! |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Active Member
Join Date: 2002-01
Posts: 92
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() |
Can i toggle between imageframe on and off using a single lisp routine?
Thanks |
|
|
|
|
|
#2 |
|
100 Club
Join Date: 2000-12
Posts: 126
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() |
The imageframe is controlled by a dictionary in the main dictionary (the NOB). It's not always safe to modify those thingies but I haven't found a problem with the function below.
Code:
(defun C:IFRAME (/ frameVal imgDict)
(cond ((setq imgDict (dictsearch (namedobjdict) "ACAD_IMAGE_VARS"))
(setq frameVal (cdr (assoc 70 imgDict)))
(entmod (subst (cons 70 (nth frameVal '(1 0)))
(assoc 70 imgDict)
imgDict
)
)
)
)
(command "REGEN")
(princ)
)
|
|
|
|
|
|
#3 |
|
Administrator
Join Date: 2001-03
Location: Fenton, MO via the UK
Posts: 13,500
![]() |
Hi
If you have Express Tools you could use TFRAMES, below is from the ExpressTools Help File - <snip> Toggles the state of frames for Wipeout and image objects. If frames are turned on, this command turns them off, and vice versa. </snip> Have a good one, Mike
__________________
Last edited by Mike.Perry : 2005-02-23 at 09:48 AM. Reason: Correct formatting |
|
|
|
|
|
#4 |
|
100 Club
Join Date: 2000-12
Posts: 126
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() |
I had the feeling of reinventing the wheel (once more). Oh well, the more tips the merrier.
Thanks Mike. |
|
|
|
|
|
#5 |
|
Active Member
Join Date: 2003-01
Posts: 83
![]() ![]() |
why don't u use object --- image --- frame --- on/off from the tools pull down menu?/?
|
|
|
|
![]() |
|
||||||
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Visibility Toggle | bclarch | Revit Architecture "Original" Wish List (Archived) | 16 | 2006-06-21 06:51 PM |
| Phase Toggle window in the Tool Bar | ita | Revit Architecture "Original" Wish List (Archived) | 5 | 2004-01-19 04:44 PM |
| Slope Defining Toggle should act like Constrain Toggle | gregcashen | Revit Architecture "Original" Wish List (Archived) | 0 | 2004-01-15 11:17 PM |
| Linework Toggle | Scott Hopkins | Revit Architecture "Original" Wish List (Archived) | 0 | 2003-11-25 09:43 PM |
| Keyboard toggle for reference planes on/off in view | 4christo4 | Revit Architecture - General | 11 | 2003-07-15 11:35 PM |