Jump to content

Accessing objects without going to each layout tabs one by one, it is the problem.


Recommended Posts

Posted

Hi friends,

how is it possible to explode all blocks in all spaces (layouts) without setting each tab current (I mean issuing (setvar 'Ctab ...))

 

Thanks in advance

Posted

My approach also .... it works perfect .. :D

With ssget "_x" you can select all objects in model and in all layouts as well .....

 

(defun c:TesT (/ ss i) (vl-load-com)
;;;=== Tharwat 24. Sep. 2011 ===;;;
 (if (setq ss (ssget "_x" '((0 . "INSERT"))))
   (repeat
     (setq i (sslength ss))
      (vla-explode  (vlax-ename->vla-object (ssname ss (setq i (1- i)))))
   )
   (princ)
 )
 (princ)
)

 

Tharwat

Posted

Tharwat,

your help is very great. Thank you very much.

Posted
Tharwat,

your help is very great. Thank you very much.

 

You're welcome Mehrdad . :)

 

I am so happy to be of assistance with experienced guy like you .

 

Regards.

Posted
You're welcome Mehrdad . :)

 

I am so happy to be of assistance with experienced guy like you .

 

Regards.

 

I study many things in CADTutor from you and other CADMasters :thumbsup:

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