Open navigation menu
Close suggestions
Search
Search
en
Change Language
Upload
Loading...
User Settings
close menu
Welcome to Scribd!
Upload
Read for free
FAQ and support
Language (EN)
Sign in
0 ratings
0% found this document useful (0 votes)
10 views
Plat
Uploaded by
Darroes Widagda
ganti Extention DOC ke LSP. bahasa lisp pada cad untuk membantu pembuatan base plat
Copyright:
© All Rights Reserved
Available Formats
Download
as TXT, PDF, TXT or read online from Scribd
Download
Save
Save Plat For Later
0%
0% found this document useful, undefined
0%
, undefined
Embed
Share
Print
Report
Plat
Uploaded by
Darroes Widagda
0 ratings
0% found this document useful (0 votes)
10 views
2 pages
Document Information
click to expand document information
ganti Extention DOC ke LSP. bahasa lisp pada cad untuk membantu pembuatan base plat
Copyright
© © All Rights Reserved
Available Formats
TXT, PDF, TXT or read online from Scribd
Share this document
Share or Embed Document
Sharing Options
Share on Facebook, opens a new window
Facebook
Share on Twitter, opens a new window
Twitter
Share on LinkedIn, opens a new window
LinkedIn
Share with Email, opens mail client
Email
Copy link
Copy link
Did you find this document useful?
0%
0% found this document useful, Mark this document as useful
0%
0% found this document not useful, Mark this document as not useful
Is this content inappropriate?
Report
ganti Extention DOC ke LSP. bahasa lisp pada cad untuk membantu pembuatan base plat
Copyright:
© All Rights Reserved
Available Formats
Download
as TXT, PDF, TXT or read online from Scribd
Download now
Download as txt, pdf, or txt
Save
Save Plat For Later
0 ratings
0% found this document useful (0 votes)
10 views
2 pages
Plat
Uploaded by
Darroes Widagda
ganti Extention DOC ke LSP. bahasa lisp pada cad untuk membantu pembuatan base plat
Copyright:
© All Rights Reserved
Available Formats
Download
as TXT, PDF, TXT or read online from Scribd
Save
Save Plat For Later
0%
0% found this document useful, undefined
0%
, undefined
Embed
Share
Print
Report
Download now
Download as txt, pdf, or txt
Jump to Page
You are on page 1
of 2
Search inside document
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
Excel VBA ActiveX Controls - Easy Excel Macros
Document
12 pages
Excel VBA ActiveX Controls - Easy Excel Macros
kavyadeepam
No ratings yet
3DFPN
Document
1 page
3DFPN
bravomikeparle
No ratings yet
update_attributes
Document
1 page
update_attributes
bravomikeparle
No ratings yet
Nam LSP22
Document
12 pages
Nam LSP22
thanhbinh166
No ratings yet
Assignment No 1 (A) Q.Script File Programming To Generate A Blank Bill of Material Table
Document
44 pages
Assignment No 1 (A) Q.Script File Programming To Generate A Blank Bill of Material Table
Vijendra Patil
No ratings yet
3DFAC
Document
1 page
3DFAC
bravomikeparle
No ratings yet
CS_Str_Cut
Document
1 page
CS_Str_Cut
bravomikeparle
No ratings yet
Nick's Autolisp Utilities
Document
12 pages
Nick's Autolisp Utilities
jessiejames57
No ratings yet
CS Area Canal
Document
2 pages
CS Area Canal
bravomikeparle
No ratings yet
CG Deep
Document
38 pages
CG Deep
Rakhi Soni
No ratings yet
CS_Area
Document
2 pages
CS_Area
bravomikeparle
No ratings yet
AFMAR
Document
2 pages
AFMAR
bravomikeparle
No ratings yet
SPECIAL
Document
10 pages
SPECIAL
Romeo Jr Sibullas
No ratings yet
3DBOX
Document
2 pages
3DBOX
bravomikeparle
No ratings yet
Lenght of Each Polyline by Layerwise in Table
Document
2 pages
Lenght of Each Polyline by Layerwise in Table
Aasdas
No ratings yet
Autolisp TOOLS
Document
15 pages
Autolisp TOOLS
Ricardo Rodriguez
No ratings yet
Lisp
Document
161 pages
Lisp
Geovany Mena Villagra
No ratings yet
Rectangle Dims by Color
Document
4 pages
Rectangle Dims by Color
Aasdas
No ratings yet
Lisp Align Text in Autocad
Document
26 pages
Lisp Align Text in Autocad
Aasdas
No ratings yet
3D-2D
Document
2 pages
3D-2D
bravomikeparle
No ratings yet
AARAY
Document
2 pages
AARAY
bravomikeparle
No ratings yet
AEDIT
Document
2 pages
AEDIT
bravomikeparle
No ratings yet
Index
Document
52 pages
Index
Ramneek Singh Khalsa
No ratings yet
curvedata
Document
1 page
curvedata
bravomikeparle
No ratings yet
Tank Shell Developed Length
Document
4 pages
Tank Shell Developed Length
gharavii2063
No ratings yet
Computer Graphics
Document
27 pages
Computer Graphics
infinitybros2003
No ratings yet
Computer Graphics Practical File For College
Document
28 pages
Computer Graphics Practical File For College
Saif Ali
No ratings yet
Acadr 14
Document
7 pages
Acadr 14
unlimitedwwe
No ratings yet
Obfs4 Detector 1.5
Document
8 pages
Obfs4 Detector 1.5
bluebirdsoft2020
No ratings yet
TextCalcV1 01
Document
9 pages
TextCalcV1 01
Aasdas
No ratings yet
Experiment No. 1: Graphics Mode Initialization
Document
51 pages
Experiment No. 1: Graphics Mode Initialization
Nitika Gupta
No ratings yet
EXPT8
Document
8 pages
EXPT8
mayanksanjay007
No ratings yet
Делительная головка
Document
5 pages
Делительная головка
Alexey Onishenko
No ratings yet
PCD 9 Kavi
Document
6 pages
PCD 9 Kavi
KAVIRAJ N CSE
No ratings yet
3DPOL
Document
1 page
3DPOL
bravomikeparle
No ratings yet
Prims and Kruskal
Document
5 pages
Prims and Kruskal
2022it0093
No ratings yet
Auto Lisp
Document
42 pages
Auto Lisp
ae1329
No ratings yet
ilovepdf_merged (1)
Document
37 pages
ilovepdf_merged (1)
irin.solomon
No ratings yet
Functional and Logic Programming
Document
21 pages
Functional and Logic Programming
Nikhil K Mishra
0% (1)
Computer Graphics Lab Manual
Document
29 pages
Computer Graphics Lab Manual
ranishukla67890
No ratings yet
AFPRN
Document
1 page
AFPRN
bravomikeparle
No ratings yet
Autolisp Programs
Document
43 pages
Autolisp Programs
Amit Mishra
No ratings yet
Program To Draw A Line Using Dda Algorithm
Document
50 pages
Program To Draw A Line Using Dda Algorithm
varunsmith
No ratings yet
Abcd
Document
25 pages
Abcd
kissmeusually
No ratings yet
Files 3 2021 February NotesHubDocument 1613295767
Document
75 pages
Files 3 2021 February NotesHubDocument 1613295767
ayush saini
No ratings yet
Within Boundary Selection
Document
1 page
Within Boundary Selection
slsqsas
No ratings yet
C Lab Manual
Document
16 pages
C Lab Manual
Anamika T Anil
No ratings yet
Code 3
Document
2 pages
Code 3
sidali.menouchi
No ratings yet
Lisp Đánh Số Thứ Tự – Download Lisp Và Hướng Dẫn Chi Tiết
Document
1 page
Lisp Đánh Số Thứ Tự – Download Lisp Và Hướng Dẫn Chi Tiết
khangkhang8326
No ratings yet
LENHmoi Nhan
Document
16 pages
LENHmoi Nhan
Nhan Le
No ratings yet
Sensitivity: LNT Construction Internal Use
Document
2 pages
Sensitivity: LNT Construction Internal Use
sharvan10
No ratings yet
PROGRAM CODING: (Line Attributes)
Document
18 pages
PROGRAM CODING: (Line Attributes)
anon_341909881
No ratings yet
DFS 39
Document
7 pages
DFS 39
saarthakk.s
No ratings yet
Coba Coba Slip Autocad
Document
5 pages
Coba Coba Slip Autocad
eusebius.nahak
No ratings yet
CD 592
Document
16 pages
CD 592
arunkumarmak651
No ratings yet
#Include #Include Void Main (Int GD DETECT, GM Initgraph (&gd,&gm,"d://tc//bgi") Setcolor (15) Line (100,200,100,300) Getch Closegraph )
Document
23 pages
#Include #Include Void Main (Int GD DETECT, GM Initgraph (&gd,&gm,"d://tc//bgi") Setcolor (15) Line (100,200,100,300) Getch Closegraph )
Vishu Aeri
No ratings yet
CN Lab File
Document
35 pages
CN Lab File
vivek kumar
100% (2)
CProgramming 1
Document
19 pages
CProgramming 1
scarletlop299
No ratings yet
Polerase LSP
Document
2 pages
Polerase LSP
Aleida Rodríguez
No ratings yet
Computer Engineering Laboratory Solution Primer
From Everand
Computer Engineering Laboratory Solution Primer
Karan Bhandari
No ratings yet