Saturday, November 21, 2009
Home   |   Search   |   About AUGI   |   My AUGI   |   Join Now

Go Back   AUGI Forums > AUGI Technical (English) > Programming > AutoLISP
 Welcome, Guest. 

Login

Join Now FAQ Members List Calendar Search Today's Posts Mark Forums Read

AutoLISP AutoLISP or Visual LISP, learn both here!

Reply
 
Thread Tools Display Modes
Old 2004-06-16, 09:28 PM   #1
pmedina
Active Member
 
Join Date: 2002-01
Posts: 92
pmedina is glowing brightlypmedina is glowing brightlypmedina is glowing brightlypmedina is glowing brightlypmedina is glowing brightlypmedina is glowing brightlypmedina is glowing brightlypmedina is glowing brightlypmedina is glowing brightlypmedina is glowing brightly
Default Toggle imageframe

Can i toggle between imageframe on and off using a single lisp routine?
Thanks
pmedina is offline   Reply With Quote
Old 2004-06-16, 11:30 PM   #2
stig.madsen
100 Club
 
Join Date: 2000-12
Posts: 126
stig.madsen is glowing brightlystig.madsen is glowing brightlystig.madsen is glowing brightlystig.madsen is glowing brightlystig.madsen is glowing brightlystig.madsen is glowing brightlystig.madsen is glowing brightlystig.madsen is glowing brightlystig.madsen is glowing brightlystig.madsen is glowing brightlystig.madsen is glowing brightly
Default

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)
)
stig.madsen is offline   Reply With Quote
Old 2004-06-17, 08:20 AM   #3
Mike.Perry
Administrator
 
Mike.Perry's Avatar
 
Join Date: 2001-03
Location: Fenton, MO via the UK
Posts: 13,500
Mike.Perry has disabled reputation
Default RE: Toggle imageframe

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
__________________
..........MeWhee

Last edited by Mike.Perry : 2005-02-23 at 09:48 AM. Reason: Correct formatting
Mike.Perry is offline   Reply With Quote
Old 2004-06-17, 10:07 AM   #4
stig.madsen
100 Club
 
Join Date: 2000-12
Posts: 126
stig.madsen is glowing brightlystig.madsen is glowing brightlystig.madsen is glowing brightlystig.madsen is glowing brightlystig.madsen is glowing brightlystig.madsen is glowing brightlystig.madsen is glowing brightlystig.madsen is glowing brightlystig.madsen is glowing brightlystig.madsen is glowing brightlystig.madsen is glowing brightly
Default

I had the feeling of reinventing the wheel (once more). Oh well, the more tips the merrier.
Thanks Mike.
stig.madsen is offline   Reply With Quote
Old 2004-06-17, 05:09 PM   #5
moshira_hassan
Active Member
 
moshira_hassan's Avatar
 
Join Date: 2003-01
Posts: 83
moshira_hassan is going the right waymoshira_hassan is going the right way
Default RE: Toggle imageframe

why don't u use object --- image --- frame --- on/off from the tools pull down menu?/?
moshira_hassan is offline   Reply With Quote
Reply


Go Back   AUGI Forums > AUGI Technical (English) > Programming > AutoLISP

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off

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


All times are GMT +1. The time now is 11:01 AM.