Jump to content

Recommended Posts

Posted (edited)

Is there a lisp, changing solid hatch, to outline(pline global width 2mm)

,in the whole drawing also when it is in a block.

Edited by CAD
Posted

Hello Bigal u good:P!!, is a nice lisp, but need some modified, i have say solid hatch, but i think, i need it for all the hatches, sorry for that:geek:.

 

-The lisp ask select object, can u make it, that do instant for all the hatches in and outside the blocks, without asking.

-When it make outline the layer is 0, can u make a layer called outline

Posted (edited)

Looking somewhere else came across this little gem done by the Master Lee-mac in 2011. Change the 0.0 to what you want.

 

; original code by lee-mac 2011 zero pline in blocks
; just need this bit 
(setq doc (vla-get-activedocument (vlax-get-acad-object)))

(setq obj (vlax-ename->vla-object (entlast)))
(if (eq "AcDbPolyline" (vla-get-objectname obj))
(vl-catch-all-apply 'vla-put-constantwidth (list obj 0.0))
)
(vla-regen doc acallviewports)
(princ)

(vl-load-com) (princ)

Edited by BIGAL
Posted

Hello Bigal,

 

lisp get some

 

Error: bad argument type: VLA-OBJECT nil

Cannot invoke (command) from *error* without prior call to (*push-error-using-command*).

 

 

; original code by lee-mac 2011 zero pline in blocks

; just need this bit

(setq obj (vlax-ename->vla-object (entlast)))

(if (eq "AcDbPolyline" (vla-get-objectname obj))

(vl-catch-all-apply 'vla-put-constantwidth (list obj 0.0))

)

(vla-regen doc acallviewports)

(princ)

 

(vl-load-com) (princ)

Posted (edited)

hello B,

 

lisp loaded but nothing happen no error more :) but the things don't

 

-instant all hatch with outline (pline global width 2mm) without ask select objects.

-create outline layer name outlines

 

Do i miss something?

 

; original code by lee-mac 2011 zero pline in blocks

; just need this bit

(setq doc (vla-get-activedocument (vlax-get-acad-object)))

 

(setq obj (vlax-ename->vla-object (entlast)))

(if (eq "AcDbPolyline" (vla-get-objectname obj))

(vl-catch-all-apply 'vla-put-constantwidth (list obj 0.0))

)

(vla-regen doc acallviewports)

(princ)

 

(vl-load-com) (princ)

Edited by CAD

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