Jump to content

How to assign number of opend files in the same time ???


Recommended Posts

Posted

Hello friends !

How can I control the number of opened files in AutoCad-2010 ?

Please help me how to do that . I have to work in 2 files Simultaneously.

Thanks

Posted

You can open as many drawings as you need without starting a new session of AutoCAD. I've had as many as 10 drawings open at one time with no problem. Use the key combo CTRL+TAB to cycle through each drawing.

Posted

Yes I did that b4 . But now I have a problem : when I try to open a new drawing, AutoCAD closes the current one. My question is : How can I make AutoCAD OPENS multiple files ??? .... any way thanks a lot !!!:)

Posted

Type "SDI" at the command line

 

0 = Multiple drawings

1 = Single Document Interface

Posted (edited)

The best way I've found to manage multiple open drawings is using AutoCAD's Free Bonus Tool MDITabs.

 

So much so, that I wrote a System Variable Reactor that automagically loads/unloads the appropriate MDITabs version for R17* 32-Bit/64-Bit, and R18* 32-Bit/64-Bit, based upon the SDI System Variable. I can post if you're interested.

 

I know this isn't a programming forum, but as it's germane, and to manually demonstrate, here's a simple command version:

 

(defun c:MdiTabs  (/ _64Bit-p)
 ;; © RenderMan, 2011
 (vl-load-com)

 (defun _64Bit-p ()
 ;; © RenderMan, 2011
 ;; Returns T if version is 64Bit
 ;; Example: (_64bit-p)
 (vl-load-com)
 (if (vl-string-search "64" (getenv "PROCESSOR_ARCHITECTURE"))
   T
   nil))
 
 ((lambda (key sdi / mditabs flag)
    (if (and
          sdi
          (setq mditabs
                 (cond
                   ((vl-string-search "17" key)                        ; 2007, 2008, 2009
                    (if (_64Bit-p)
                      "mditab17[color=red]x64[/color].arx"
                      "mditab17.arx"))
                   ((vl-string-search "18" key)                        ; 2010, 2011, 2012
                    (if (_64Bit-p)
                      "mditab18[color=red]x64[/color].arx"
                      "mditab18.arx"))))
          (setq flag (findfile mditabs))
          (not (vl-position mditabs (arx))))
      (and (arxload mditabs) (princ "\rMDITAB: LOADED "))
      (cond
        (flag (and (arxunload mditab) (princ "\rMDITAB: UNLOADED ")))
        (mditabs
         (prompt (strcat "\n** \"" mditabs "\" cannot be found ** ")))
        (sdi (prompt "\n** This AutoCAD version not supported ** "))
        ((prompt "\n** Command not allowed in SDI mode ** ")))))
   (vlax-product-key)
   (= 0 (getvar 'sdi)))
 (princ))

** Note - I chose to rename the 64-Bit MDITabs files to include a suffix of *x64.arx so that all files could reside in the same directory. These files must reside within the Support Files Search Paths (SFSP).

 

While MDITabs will successfully load when SDI = 1, I chose to prevent this in the above command, as MDITabs really serves no purpose unless one is able to actually open multiple drawings. Also included is a sub-function that I wrote to test for 64-Bit versions. Enjoy!

 

HTH

Edited by BlackBox
Posted

Thank you friends ! thank you nestly, your answer is very useful easy and fast ... so thanks again !

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...