Jump to content

Wipeout help


Bumble

Recommended Posts

Guys,

 

 

I need some help with XREFs and wipeouts, when using an xclip and the referenced drawing has a wipeout in the drawing the zooming does some odd things. We have set our INDEXCTL to 3 and we still get inconsistent zooming.

 

 

I believe what the issue is, we have wipeouts on layers they should not be on. I found a lisp from Lee to delete wipeouts with-in blocks and the zooming issues are rectified. What I would like to do is use LISP to select all the wipeouts in these said blocks and change them to our layer for wipeouts, "WIPEOUT" so we are able to freeze and thaw the layer in the parent drawings.

 

 

Does anyone have a lisp like this or could help with the coding? I have a basic knowledge if coding and am basically just getting started in the world of LISP.

 

 

Thanks,

Dustin

Link to comment
Share on other sites

I changed the code you were talking about to put it on the layer (insert your layer name where indicated)

(defun c:test ( / acdoc )
 ;; Lee Mac 20.06.11
 ;; Stolen and murdered by: CB 06/21/15
 (setq acdoc (vla-get-activedocument (vlax-get-acad-object)))
 (vlax-for block (vla-get-blocks acdoc)
   (if
     (and
(eq :vlax-false (vla-get-islayout block))
(eq :vlax-false (vla-get-isxref   block))
)
     (vlax-for obj block
(if (eq "AcDbWipeout" (vla-get-objectname obj))
  (vla-put-layer obj "PUT YOUR LAYER NAME HERE")
  )
)      
     )
   )
 (vla-regen acdoc acallviewports)
 (princ)
 )


(vl-load-com) (princ)

Link to comment
Share on other sites

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