Jump to content

Recommended Posts

Posted

Hi, I am using a lisp code to trim walls for door and window frames. In autocad everything works fine ,but in Zwcad  "m2p" is not supported. Is any other way to trim the wall?

 

 

 

 ;; Break frame opening
 (command "_trim" "" "m2p" point1 point2 "m2p" point4 point3 "")

 

Thanks

test.png

Posted

;; Break frame opening

(command "_trim" "" "(mapcar '(lambda ( a b ) (/ (+ a b) 2.0)) point1 point2) (mapcar '(lambda ( a b ) (/ (+ a b) 2.0)) point3 point4) "")

Posted

A hint breaking 2 or 4 wall lines, you know wall thickness so always pick outside, then you know which way is in, so pick pt1 then pt2, can work out the break points.

Posted

Hi marko_ribar.

 

If I replace this

 

(command "_trim" "" "m2p" point1 point2 "m2p" point4 point3 "")

 

with this

 

(command "_trim" "" "(mapcar '(lambda ( a b ) (/ (+ a b) 2.0)) point1 point2) (mapcar '(lambda ( a b ) (/ (+ a b) 2.0)) point3 point4) "") 

 

I have this error

 

Error: malformed list on input

 

 

Thanks

Posted

Look carefully you have an extra " just remove.

(command "_trim" "" "(

 

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