Author Topic: Help on creating a drawing function  (Read 1101 times)

0 Members and 1 Guest are viewing this topic.

Irvin

  • Guest
Help on creating a drawing function
« on: March 12, 2012, 09:05:15 AM »
Hi guys,

I need your help again. Because there are no other (CAD) programmers in my company, my boss has decided that he want to get rid of all lisp components from our application. So my task is to rewrite our lisp code to .NET so more people (programmers) can get working on our application.

I’ve done a lot of things with the AutoCAD.net API but I didn’t do much drawing stuff and I need some advice on how to start. For this example I use a simple drawing routine that draws a flat roof with paneling and beams. Please look at the attached print screen and hope you guys can help me in the right direction.

These are the properties I can set for the function: Attachment 1

Vloerhout dikte = Thickness woodpaneling
Balk hoogte = Beam hight
Balk breedte = Beam width
Plafond dikte = Ceiling thickness
HOH Afstand Balken = Measurement between Beams (heart to heart distance) Like measure command.

When the function is run This is what I get: Attachment 2

How do you guys start if you need to do something like this. Any help would be much appreciated.

My ultimate goal is to specify the first point and by stretching to the second point a jig would draw what I’m getting. But first how to start a function like this in .NET

Kind regards,

Irvin