cs395 internship company: rohde & associates intern: chris kulhanek

22
CS395 Internship Company: Rohde & Associates Intern: Chris Kulhanek

Upload: tate-sliman

Post on 15-Dec-2015

221 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: CS395 Internship Company: Rohde & Associates Intern: Chris Kulhanek

CS395 Internship

Company: Rohde & Associates

Intern: Chris Kulhanek

Page 2: CS395 Internship Company: Rohde & Associates Intern: Chris Kulhanek

A Very Brief Background

• Rohde & Associates, Inc. Architects

• Commercial Grade Construction

• ASD, DOT, Private Contractors

• $1,000,000.00 A Year In Contracts

• Been In Business Since 1997

• I Am 1 of 5 Employees.

Page 3: CS395 Internship Company: Rohde & Associates Intern: Chris Kulhanek

The Problem

• AutoCAD is primary tool for production• Always looking for ways to improve

production• Out of date scripts written with out of date

language.• Need to improve scripts and improve

scripting language• Most important, make finished product

easy to deliver and install.

Page 4: CS395 Internship Company: Rohde & Associates Intern: Chris Kulhanek

Starting Point

• Existing scripts are written in AutoLISP, a dialect of the Lisp programming language.

• Existing scripts are manual install. Cumbersome for those not familiar with how to install them into AutoCAD.

• No user manual on scripts of things go wrong.

Page 5: CS395 Internship Company: Rohde & Associates Intern: Chris Kulhanek
Page 6: CS395 Internship Company: Rohde & Associates Intern: Chris Kulhanek
Page 7: CS395 Internship Company: Rohde & Associates Intern: Chris Kulhanek

Goal

• Covert Scripts to modern HLL. VBA or if needed C++.

• Wrapper into an easy to distribute and use self install pack.

• No command entry, use toolbars and menus.

Page 8: CS395 Internship Company: Rohde & Associates Intern: Chris Kulhanek
Page 9: CS395 Internship Company: Rohde & Associates Intern: Chris Kulhanek
Page 10: CS395 Internship Company: Rohde & Associates Intern: Chris Kulhanek
Page 11: CS395 Internship Company: Rohde & Associates Intern: Chris Kulhanek
Page 12: CS395 Internship Company: Rohde & Associates Intern: Chris Kulhanek

How was this accomplished?

• VBA was first chosen

• VBA has no easy way to wrapper and install

• Was decided to convert again to AutoCAD ObjectARX and C++ API

Page 13: CS395 Internship Company: Rohde & Associates Intern: Chris Kulhanek
Page 14: CS395 Internship Company: Rohde & Associates Intern: Chris Kulhanek
Page 15: CS395 Internship Company: Rohde & Associates Intern: Chris Kulhanek
Page 16: CS395 Internship Company: Rohde & Associates Intern: Chris Kulhanek

AutoCAD and ObjectARX

• You are basically creating a .dll

• Compile creates an AutoCAD .dll called .arx

• Every .arx is a specific new command for AutoCAD ie: stairs is stairs.arx

Page 17: CS395 Internship Company: Rohde & Associates Intern: Chris Kulhanek
Page 18: CS395 Internship Company: Rohde & Associates Intern: Chris Kulhanek

How do we package up?

• Could write our own package, but why?

• Installshield was used

• Easy to use once native scripting language was understood

Page 19: CS395 Internship Company: Rohde & Associates Intern: Chris Kulhanek
Page 20: CS395 Internship Company: Rohde & Associates Intern: Chris Kulhanek
Page 21: CS395 Internship Company: Rohde & Associates Intern: Chris Kulhanek

Problems Encountered

• General hassle of C++

• Lack of knowledge on .dll operations

• Needed to learn the windows registry

• AutoCAD is not user friendly concerning beta testing

• The company upgraded to AutoCAD 2006 mid development

Page 22: CS395 Internship Company: Rohde & Associates Intern: Chris Kulhanek

Concluding Outline

• Rank existing scripts by order of need

• Convert to VBA / C++ routines

• Include in shortcut menu and toolbar

• Package into .exe for distribution