Flattening 2D and 3D Object in Autocad
+2
3DZONE
render master
6 posters
:: Tutorials :: Autocad Tutorials
Page 1 of 1
Flattening 2D and 3D Object in Autocad
copy the whole text below and compiled it as your LISP
; Flatten a 2D and 3D drawing
; This command will set all elevations and points to zero, effectively flattening any 3D drawing.
;
(defun c:flat (/ total-nabor)
(vl-load-com)
(if
(setq total-nabor (ssget "x" '((410 . "model"))))
(progn
(setq total-nabor
(mapcar 'vlax-ename->vla-object
(mapcar 'cadr
(ssnamex total-nabor)
) ;_ end of mapcar
) ;_ end of mapcar
) ;_ end of setq
(foreach i '(1e99 -1e99)
(mapcar (function (lambda (x)
(vla-move x
(vlax-3d-point (list 0 0 0))
(vlax-3d-point (list 0 0 i))
) ;_ end of vla-move
) ;_ end of lambda
) ;_ end of function
total-nabor
) ;_ end of mapcar
) ;_ end of foreach
) ;_ end of progn
) ;_ end of if
(princ)
) ;_ end of defun
or download it here: FLAT.LSP
render master- Game Master
- Number of posts : 3274
Age : 104
Location : riyadh, saudi arabia
Registration date : 27/09/2008
Re: Flattening 2D and 3D Object in Autocad
Huge Help Sir Render Master
3DZONE- Cube Spinner
- Number of posts : 3834
Age : 49
Location : Abu Dhabi U.A.E.
Registration date : 20/12/2008
Re: Flattening 2D and 3D Object in Autocad
thanks....and thanks! master rend....
aesonck- CGP Expert
- Number of posts : 2448
Age : 44
Location : Philippines. La Trinidad-Visayas
Registration date : 13/07/2010
Re: Flattening 2D and 3D Object in Autocad
aha. this is what im looking for! thanks rendermaster
princedaguz13- CGP Apprentice
- Number of posts : 336
Age : 40
Location : philippines
Registration date : 30/03/2011
Re: Flattening 2D and 3D Object in Autocad
salamat sir! sakto na kailangan ko
jen_tol84- CGP Apprentice
- Number of posts : 539
Age : 39
Location : baguio city, philippines
Registration date : 19/10/2010
Re: Flattening 2D and 3D Object in Autocad
3DZONE wrote:Huge Help Sir Render Master
aesonck wrote:thanks....and thanks! master rend....
princedaguz13 wrote:aha. this is what im looking for! thanks rendermaster
jen_tol84 wrote:salamat sir! sakto na kailangan ko
youre all welcome
render master- Game Master
- Number of posts : 3274
Age : 104
Location : riyadh, saudi arabia
Registration date : 27/09/2008
Re: Flattening 2D and 3D Object in Autocad
salamat po dito sir...abangan ko po ung 3rd part on how to install the express tools!
Cravez2000- CGP Newbie
- Number of posts : 52
Age : 44
Location : gensan/ Riyadh, KSA
Registration date : 16/01/2012
:: Tutorials :: Autocad Tutorials
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum
|
|