Jump to content

Recommended Posts

Posted

Dose anyone have a lisp to change 3D solids to 2D

 

Thanks.

Posted

does command FLATTEN not do the trick?

Posted

it flattens everything else besides the 3d solids..

Posted

Methods for obtaining 2D views from 3D solids include:

 

1. SectionPlane

 

2. Flatshot

 

3. SolView / SolDraw / SolProf

Posted

It is not the view i'm asking for, its more of furniture issue. The furniture is in 3d solids or 3d faces once command "aecobjexplode" has completed, and i would like to flatten furniture to make things easier.

Posted

It's a "furniture" issue? So what do you do exactly? Explode a 3D solid of a piece of furniture then attempt to give all the geometry a "Z" elevation of "0"?

Posted

i have sorted it :oops: .. i was using the flatten command in a 3d view, instead of plan view.. thanks for your input!!

Posted
i have sorted it :oops: .. i was using the flatten command in a 3d view, instead of plan view.. thanks for your input!!

But FLATTEN doesn't work perfect for small objects or objects far in view:(. Test you drawing before delivery:sick:.

Posted

Give this a try

PS: Not mine I think that it is for LEE

 

(defun c:Supflat  (/ ss ssObj j)
 (vl-load-com)
 (vlax-map-collection
   (vla-get-Layers
     (vla-get-ActiveDocument
       (vlax-get-acad-object)))
   '(lambda (x) (vla-put-lock x :vlax-false)))
 (if (setq ss (ssget "X" (list (cons 410 (getvar "CTAB")))))
   (progn
     (setq ssObj (mapcar 'vlax-ename->vla-object
                         (mapcar 'cadr (ssnamex ss))) j 0)
     (foreach Obj  ssObj
       (foreach n  '(1e99 -1e99)
         (if (vl-catch-all-error-p
               (vl-catch-all-apply
                 '(lambda (x)
                    (vla-move x (vlax-3d-point (list 0 0 0))
                                (vlax-3d-point (list 0 0 n))))
                 (list Obj)))
           nil
           (setq j (1+ j)))))
     (princ (strcat "\n" (rtos (/ j 2.0)) " Objects Flattened.")))
   (princ "\n<!> No Objects Found <!>"))
 (princ))

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