Author Topic: DXF to Graphics  (Read 2428 times)

0 Members and 1 Guest are viewing this topic.

Draftek

  • Guest
DXF to Graphics
« on: May 01, 2009, 09:03:45 AM »
I'm extracting dxf text from a sql server database which basically contains some closed 2d polylines.

I need to build some kind of .Net graphics control for the user to view.

Any suggestions regarding the mapping and / or the output graphics?

Starting from the ground up on this one.

It's Alive!

  • Retired
  • Needs a day job
  • Posts: 8728
  • AKA Daniel
Re: DXF to Graphics
« Reply #1 on: May 01, 2009, 09:19:57 AM »
Maybe this thread will give you an idea or two
http://www.theswamp.org/index.php?topic=20620.0

Draftek

  • Guest
Re: DXF to Graphics
« Reply #2 on: May 01, 2009, 09:32:22 AM »
Nice - thanks. That will help.

I'm also looking at some dynamic xaml.
Creating a mapping tool to create a canvas from the dxf and then making it the content of a user control.

Either way, should be fun.

Draftek

  • Guest
Re: DXF to Graphics
« Reply #3 on: May 08, 2009, 09:59:01 AM »
Decided to map the dxf directly to a xaml canvas with path.
Pretty nice since the only calculation will be 'normalizing' all the points so x & Y are positive and calculating the bludges to a radius for the arcs.

Not as much work as I anticipated.

It's Alive!

  • Retired
  • Needs a day job
  • Posts: 8728
  • AKA Daniel
Re: DXF to Graphics
« Reply #4 on: May 08, 2009, 10:09:20 AM »
Pic please  :-D

Draftek

  • Guest
Re: DXF to Graphics
« Reply #5 on: May 08, 2009, 10:24:02 AM »
Here it is:


It's Alive!

  • Retired
  • Needs a day job
  • Posts: 8728
  • AKA Daniel
Re: DXF to Graphics
« Reply #6 on: May 08, 2009, 10:45:52 AM »
Fantastic!

Draftek

  • Guest
Re: DXF to Graphics
« Reply #7 on: May 08, 2009, 10:53:18 AM »
Thanks - it's the perfect little project.
Not too hard to code but looks like magic to the user.

Spike Wilbury

  • Guest
« Last Edit: May 08, 2009, 11:38:43 AM by Luis »