Results 1 to 5 of 5

Thread: Toggle imageframe

  1. #1
    Active Member
    Join Date
    2002-01
    Posts
    99
    Login to Give a bone
    0

    Default Toggle imageframe

    Can i toggle between imageframe on and off using a single lisp routine?
    Thanks

  2. #2
    100 Club
    Join Date
    2000-12
    Posts
    126
    Login to Give a bone
    0

    Default Re: Toggle imageframe

    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. #3
    The Silent Type Mike.Perry's Avatar
    Join Date
    2000-11
    Posts
    13,656
    Login to Give a bone
    0

    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
    Last edited by Mike.Perry; 2005-02-23 at 08:48 AM. Reason: Correct formatting

  4. #4
    100 Club
    Join Date
    2000-12
    Posts
    126
    Login to Give a bone
    0

    Default Re: Toggle imageframe

    I had the feeling of reinventing the wheel (once more). Oh well, the more tips the merrier.
    Thanks Mike.

  5. #5
    100 Club moshira_hassan's Avatar
    Join Date
    2003-01
    Posts
    133
    Login to Give a bone
    0

    Default Re: Toggle imageframe

    why don't u use object --- image --- frame --- on/off from the tools pull down menu?/?

Similar Threads

  1. Turning Imageframe off
    By kent409968 in forum AutoCAD Customization
    Replies: 2
    Last Post: 2014-09-02, 06:55 PM
  2. 'imageframe' & PDF
    By Maverick91 in forum AutoCAD General
    Replies: 9
    Last Post: 2009-04-28, 09:28 PM
  3. Toggle imageframe
    By Allen Quedawg392 in forum AutoLISP
    Replies: 1
    Last Post: 2008-10-21, 09:39 PM
  4. Imageframe Question
    By Rico in forum AutoCAD General
    Replies: 15
    Last Post: 2005-10-13, 08:35 PM
  5. Slope Defining Toggle should act like Constrain Toggle
    By gregcashen in forum Revit Architecture - Wish List
    Replies: 0
    Last Post: 2004-01-15, 10:17 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •