Open navigation menu
Close suggestions
Search
Search
en
Change Language
Upload
Sign in
Sign in
Download free for days
0 ratings
0% found this document useful (0 votes)
15 views
Plat
ganti Extention DOC ke LSP. bahasa lisp pada cad untuk membantu pembuatan base plat
Uploaded by
Darroes Widagda
Copyright
© © All Rights Reserved
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
Download now
Download
Save Plat For Later
Download
Save
Save Plat For Later
0%
0% found this document useful, undefined
0%
, undefined
Embed
Share
Print
Report
0 ratings
0% found this document useful (0 votes)
15 views
Plat
ganti Extention DOC ke LSP. bahasa lisp pada cad untuk membantu pembuatan base plat
Uploaded by
Darroes Widagda
Copyright
© © All Rights Reserved
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
Download now
Download
Save Plat For Later
Carousel Previous
Carousel Next
Save
Save Plat For Later
0%
0% found this document useful, undefined
0%
, undefined
Embed
Share
Print
Report
Download now
Download
You are on page 1
/ 2
Search
Fullscreen
;;; start the program
(defun c:rect_shim (/)
;;; drawing setup
(setq osm (getvar "osmode")) ; gets osnap settings and assigns to osm
(setvar "osmode" 0) ; turns osnap settings off
;;; user input
(setq sp (getpoint "\nPick the starting point "))
(setq height (getreal "\nWhat is the height of the rectangle shim? "))
(setq width (getreal "\nWhat is the width of the rectangle shim? "))
(setq drillsize (getreal "\nWhat is the size of the drilled holes? "))
(setq offset-y (getreal "\nWhat is the offset of the drilled hole on the y axis?
"))
(setq offset-x (getreal "\nWhat is the offset of the drilled hole on the x axis?
"))
;;; setup layers
(command "layer" "n" "rectangle_shim" "c" "14" "rectangle_shim" "")
(command "layer" "n" "dimension" "c" "red" "dimension" "")
(command "layer" "n" "text" "c" "green" "text" "")
(command "layer" "n" "center" "c" "yellow" "center" "lt" "center" "center" "")
(command "layer" "n" "hidden" "c" "magenta" "hidden" "lt" "hidden" "hidden" "")
(command "layer" "n" "section" "c" "cyan" "section" "lt" "phantom" "section" "")
;;; do math
(setq x1 (car sp)
x2 (+ x1 offset-x)
x4 (+ x1 width)
x3 (- x4 offset-x)
)
(setq y1 (cadr sp)
y2 (+ y1 offset-y)
y4 (+ y1 height)
y3 (- y4 offset-y)
)
;;; point assignments
(setq p1 (list x1 y1 )
p2 (list x4 y1 )
p3 (list x4 y4 )
p4 (list x1 y4 )
p5 (list x2 y2 )
p6 (list x3 y2 )
p7 (list x3 y3 )
p8 (list x2 y3 )
)
;;; lets draw
(command "layer" "s" "rectangle_shim" "" ) ; sets layer to the rectangle_shim la
yer
(command "line" p1 p2 p3 p4 "c")
(command "circle" p5 "d" drillsize)
(command "circle" p6 "d" drillsize)
(command "circle" p7 "d" drillsize)
(command "circle" p8 "d" drillsize)
;;; dimension the drawing
(command "layer" "s" "dimension" "" ) ; sets layer to the dimension layer
(setq circlept (list (+ (car p5) (/ drillsize 2.0)) (cadr p5) ))
(command "dimcenter" circlept)
(setq circlept (list (+ (car p6) (/ drillsize 2.0)) (cadr p6) ))
(command "dimcenter" circlept)
(setq circlept (list (+ (car p7) (/ drillsize 2.0)) (cadr p7) ))
(command "dimcenter" circlept)
(setq circlept (list (+ (car p8) (/ drillsize 2.0)) (cadr p8) ))
(command "dimcenter" circlept)
(setq offorigin (getvar "dimexo"))
(setvar "dimexo" 0.1875)
(command "dimlinear" p5 p6 (list (car sp) (- (cadr sp) 1.0)))
(command "dimlinear" p5 p1 (list (car sp) (- (cadr sp) 1.0)))
(command "dimlinear" p2 p3 (list (+ (car p2) 1.0) (cadr p2)))
(command "dimlinear" p4 p3 (list (car p4) (+ (cadr p4) 1.0)))
(command "dimlinear" p5 p8 (list (- (car sp) 1.0)(cadr sp)))
(command "dimvertical" p5 p1 (list (- (car sp) 1.0)(cadr sp)))
(command "dimdiameter" (list (+ (car p8) (/ drillsize 2.0))(cadr p8)) (list (- (
car p4) 1.0)(+
(cadr p4) 1.0 )))
;;; end of program
(command "layer" "s" "0" "")
(command "zoom" "e")
(setvar "osmode" osm)
(setvar "dimexo" offorigin)
;(gc)
(princ)
)
You might also like
Pressure Vessel - LSP
PDF
No ratings yet
Pressure Vessel - LSP
4 pages
beam-fin1
PDF
No ratings yet
beam-fin1
7 pages
To Draw A Rectangular Plate Having Hole at Its Center
PDF
No ratings yet
To Draw A Rectangular Plate Having Hole at Its Center
3 pages
Nick's Autolisp Utilities
PDF
No ratings yet
Nick's Autolisp Utilities
12 pages
Beam (LSP)
PDF
No ratings yet
Beam (LSP)
1 page
Coba Coba Slip Autocad
PDF
No ratings yet
Coba Coba Slip Autocad
5 pages
3DFPN
PDF
No ratings yet
3DFPN
1 page
Area Text 1
PDF
No ratings yet
Area Text 1
56 pages
Excel VBA ActiveX Controls - Easy Excel Macros
PDF
No ratings yet
Excel VBA ActiveX Controls - Easy Excel Macros
12 pages
AFMAR
PDF
No ratings yet
AFMAR
2 pages
Aw - LSP (2022 - 01 - 23 02 - 37 - 57 UTC)
PDF
No ratings yet
Aw - LSP (2022 - 01 - 23 02 - 37 - 57 UTC)
1 page
3dparaplot Anterior
PDF
No ratings yet
3dparaplot Anterior
2 pages
Within Boundary Selection
PDF
No ratings yet
Within Boundary Selection
1 page
Lisp Kaciklik v2
PDF
No ratings yet
Lisp Kaciklik v2
3 pages
Auto Cat Have Two Parts
PDF
No ratings yet
Auto Cat Have Two Parts
20 pages
Nam LSP22
PDF
No ratings yet
Nam LSP22
12 pages
Layouts & Shop Drawings
PDF
No ratings yet
Layouts & Shop Drawings
46 pages
1) Structural Symmetry 2) Bookshelf Problem: Jake Blanchard Fall 2009
PDF
No ratings yet
1) Structural Symmetry 2) Bookshelf Problem: Jake Blanchard Fall 2009
8 pages
Lisp File For Drawing A Gear Ttoh
PDF
No ratings yet
Lisp File For Drawing A Gear Ttoh
2 pages
3DBOX
PDF
No ratings yet
3DBOX
2 pages
Fortran (For NACA)
PDF
No ratings yet
Fortran (For NACA)
7 pages
Catia百格线生成宏
PDF
No ratings yet
Catia百格线生成宏
6 pages
Epura Lalane
PDF
No ratings yet
Epura Lalane
4 pages
New Rich Text Document
PDF
No ratings yet
New Rich Text Document
53 pages
3D-2D
PDF
No ratings yet
3D-2D
2 pages
LISPC07 Advanced applications (2)
PDF
No ratings yet
LISPC07 Advanced applications (2)
16 pages
Experiment No. 1: Measuring Commands Grid
PDF
No ratings yet
Experiment No. 1: Measuring Commands Grid
21 pages
BM & SF Command Snippet2
PDF
No ratings yet
BM & SF Command Snippet2
5 pages
Autocad Guide
PDF
No ratings yet
Autocad Guide
10 pages
22 NM
PDF
No ratings yet
22 NM
12 pages
3DPOL
PDF
No ratings yet
3DPOL
1 page
Totlen
PDF
No ratings yet
Totlen
2 pages
Boomtakweggeef
PDF
No ratings yet
Boomtakweggeef
8 pages
14 NM
PDF
No ratings yet
14 NM
17 pages
Polerase LSP
PDF
No ratings yet
Polerase LSP
2 pages
Aveva Commands
PDF
No ratings yet
Aveva Commands
17 pages
Cad Lab Manual
PDF
No ratings yet
Cad Lab Manual
8 pages
Machine Design & CAD-I Week No. 5: Steps Followed in Practice Drawing
PDF
No ratings yet
Machine Design & CAD-I Week No. 5: Steps Followed in Practice Drawing
4 pages
Free AutoLisp Samples
PDF
No ratings yet
Free AutoLisp Samples
21 pages
Four Write Answers in This Quest Paper Itself, Start A New Page For Each Question
PDF
No ratings yet
Four Write Answers in This Quest Paper Itself, Start A New Page For Each Question
26 pages
AutoCad Notes 1
PDF
No ratings yet
AutoCad Notes 1
27 pages
Autolisp TOOLS
PDF
No ratings yet
Autolisp TOOLS
15 pages
PDMS Draft Commands
PDF
100% (1)
PDMS Draft Commands
2 pages
AutoCAD lisp
PDF
No ratings yet
AutoCAD lisp
11 pages
Plate
PDF
No ratings yet
Plate
3 pages
Layers 120 Ply 2mm T800
PDF
No ratings yet
Layers 120 Ply 2mm T800
8 pages
Auto Lisp
PDF
No ratings yet
Auto Lisp
42 pages
_storage_emulated_0_Android_data_com.cv.docscanner_cache_cad cam file
PDF
No ratings yet
_storage_emulated_0_Android_data_com.cv.docscanner_cache_cad cam file
3 pages
Sprocess - Fps Fin Ler
PDF
No ratings yet
Sprocess - Fps Fin Ler
12 pages
TLEN
PDF
No ratings yet
TLEN
1 page
AUTOCAD-COMMAND-HANDOUT
PDF
No ratings yet
AUTOCAD-COMMAND-HANDOUT
8 pages
POLYAREA
PDF
No ratings yet
POLYAREA
2 pages
POLYAREA
PDF
No ratings yet
POLYAREA
2 pages
Creo PPT
PDF
No ratings yet
Creo PPT
45 pages
OLHAL
PDF
No ratings yet
OLHAL
3 pages
دستورات_اتوکد_همراه_با_مخفف_آن_160_فرمان
PDF
No ratings yet
دستورات_اتوکد_همراه_با_مخفف_آن_160_فرمان
6 pages
Korel
PDF
No ratings yet
Korel
72 pages
Computer Engineering Laboratory Solution Primer
From Everand
Computer Engineering Laboratory Solution Primer
Karan Bhandari
No ratings yet
C Language Programming Codes
From Everand
C Language Programming Codes
Durgesh
No ratings yet
No Ph.D. Game Design With Three.js
From Everand
No Ph.D. Game Design With Three.js
Nikiforos Kontopoulos
No ratings yet