forked from Nate711/propscript
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build_prop.rb
44 lines (35 loc) · 816 Bytes
/
build_prop.rb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
#require 'sinatra'
require_relative 'TMotor2685'
require_relative 'TMotor155'
require_relative 'TMotor1861'
require_relative 'Propeller'
require_relative 'prop_constructors'
require_relative 'Prop_Math'
tprop2685 = TMotor2685.new
tprop155 = TMotor155.new
tprop1861 = TMotor1861.new
code2865 = writeSolidworksMacro("#{tprop2685.name}.txt",tprop2685.getXSections,:string)
writeSolidworksMacro("#{tprop155.name}.txt",tprop155.getXSections,:file)
writeSolidworksMacro("#{tprop1861.name}.txt",tprop155.getXSections,:file)
#p roundRect(20,10)
print "success\n"
=begin
get '/' do
'propeller creator!'
end
get '/form' do
erb :form
end
post '/form' do
erb :post
end
not_found do
halt 404, 'Sorry! Page not found'
end
=end
=begin
use below for getting additional url
get '/hello/:name' do
params[:name]
end
=end