Search found 17 matches

by Chris
08 Apr 2009, 05:05
Forum: CAD .NET
Topic: Converting dwg to directx using C#
Replies: 34
Views: 161722

Re: Converting dwg to directx using C#

Granted they took a while to update their website, and they only posted the 2D version that doesn't use the CADImport... I am happy to show you the product I was working on. Finally! http://www.matrixsys.com/products/Frontier_SCREEN1lg.jpg http://www.matrixsys.com/product_frontier.htm They are a gre...
by Chris
31 Oct 2008, 22:58
Forum: CAD .NET
Topic: Converting dwg to directx using C#
Replies: 34
Views: 161722

Re: Converting dwg to directx using C#

Sergey, Here is an update now that the product has been released. This is an example of the first floor of a real world building, integrated with access control security devices. It allows security personnel to navigate facilities and evaluate status with real time 3D information. Importing CAD file...
by Chris
20 Aug 2008, 19:41
Forum: CAD .NET
Topic: Converting dwg to directx using C#
Replies: 34
Views: 161722

Re: Converting dwg to directx using C#

Sergey, In the following code, I am applying a Y axis conversion when sender.Extrusion.Z < 0, and applying a X axis conversion when cadParams.xscale < 0. This is getting me for what I can tell, a 100% conversion of all CADArc where cadParams.xScale = 1 or -1. when xScale and yScale are other values,...
by Chris
15 Aug 2008, 00:54
Forum: CAD .NET
Topic: Converting dwg to directx using C#
Replies: 34
Views: 161722

Re: Converting dwg to directx using C#

I assumed that RadPt was already accounted for in the CADParams Angle, or some other angle such as start and end. I can make a quick sin evaluation of the RadPt angle to determine if it should be an X or Y major axis and abstract the correct 3D math values from there for conversion. For reference, a...
by Chris
12 Aug 2008, 18:59
Forum: CAD .NET
Topic: Converting dwg to directx using C#
Replies: 34
Views: 161722

Re: Converting dwg to directx using C#

Sergey, private void ImportEllipse(CADEllipse sender) { DPoint p; if (sender.Extrusion.X != 0 || sender.Extrusion.Y != 0 || sender.Extrusion.Z != 1 || cadParams.xScale != 1 || cadParams.yScale != 1) { #region CatchAll for (int i = 0; i < sender.DottedSingPts.Count - 1; i += 8) { FVV.FVV_Line TempLin...
by Chris
04 Aug 2008, 20:15
Forum: CAD .NET
Topic: Converting dwg to directx using C#
Replies: 34
Views: 161722

Re: Converting dwg to directx using C#

EDIT: cadParams.xScale and cadParams.yScale ... are these already accounted for in the position data? the radius data? is it just parenthetical information or do I need to apply this in some fashion? xScale - Represents a text width scaling yScale - Represents a text height scaling Sergey. I have a...
by Chris
31 Jul 2008, 20:33
Forum: CAD .NET
Topic: Converting dwg to directx using C#
Replies: 34
Views: 161722

Re: Converting dwg to directx using C#

Sergey, Arc, Circle, Ellipse, and Polygons can all be solved when the following variables are set. CenterPoint (x,y,z) Radius == XAxisLength (all arc are generated on this axis, and then rotated afterwards) Ratio == YAxisLength/XAxisLength StartAngle(radians) == must be < StopAngle StopAngle(radians...
by Chris
29 Jul 2008, 22:40
Forum: CAD .NET
Topic: Converting dwg to directx using C#
Replies: 34
Views: 161722

Re: Converting dwg to directx using C#

Sergey, If there is a way to isolate which Arc, Circles, and Ellipse can be translated properly from those that can not, then I could at least get a conversion on those cases. Is it safe to say that if the extrusions are not 1.0, then use the point list fallback method? That way I still have a 100% ...
by Chris
23 Jul 2008, 00:27
Forum: CAD .NET
Topic: Converting dwg to directx using C#
Replies: 34
Views: 161722

Re: Converting dwg to directx using C#

Thank you Sergey,

This method works fine for getting past our immediate deadline needs. I would like to continue working on a method of having these entity types converted into proper FVV_Arc format as soon as possible.

~Chris
by Chris
21 Jul 2008, 18:53
Forum: CAD .NET
Topic: Converting dwg to directx using C#
Replies: 34
Views: 161722

Re: Converting dwg to directx using C#

Again, Thank you Sergey,

One note on the Arc class I think I forgot to mention.

Only specify a number of sides for Polygons. For the Arc, Circle, and Ellipse, the sides can be set to 0(zero) and the engine will optimize the correct number of sides to use.

~Chris
by Chris
16 Jul 2008, 19:03
Forum: CAD .NET
Topic: Converting dwg to directx using C#
Replies: 34
Views: 161722

Re: Converting dwg to directx using C#

Sergey, Our CAD officer is stripping that particular file of customer specific information so that it can be viewed by your team. I will be emailing it to you shortly. The file I am sending you represents a major portion of what we will be importing. I am also sending you an abstract of the source c...
by Chris
11 Jul 2008, 17:34
Forum: CAD .NET
Topic: Converting dwg to directx using C#
Replies: 34
Views: 161722

Re: Converting dwg to directx using C#

Sergey, Thanks, that clears up the confusion with why ellipse behave the way they do. A few more questions in that regard. Does the Z extrusion also act as an order of magnitude? I have seen values such as 1, -1, -34; I would assume the -34 would mean something different from -1? The DXF reference s...
by Chris
11 Jul 2008, 00:34
Forum: CAD .NET
Topic: Converting dwg to directx using C#
Replies: 34
Views: 161722

Re: Converting dwg to directx using C#

I am focusing on Arc right now, and trying to get a 100% conversion. Perhaps I am missing a step that provides the actual start/stop values. http://www.ausukusa.com/workstuff/Chairs.jpg private void ImportArc(CADArc sender) { FVV.FVV_Arc TempArc = new FVV.FVV_Arc(); DPoint p = cadParams.matrix.PtXMa...
by Chris
02 Jul 2008, 21:01
Forum: CAD .NET
Topic: Converting dwg to directx using C#
Replies: 34
Views: 161722

Re: Converting dwg to directx using C#

Thank you Sergey,

I will keep working on this. I would have never assumed a file called "TXTImport.cs" would actually contain code for exporting. I never even looked in it.
It will make my bosses happy to know that you have the tool we need.

Chris.
by Chris
19 Jun 2008, 02:04
Forum: CAD .NET
Topic: Converting dwg to directx using C#
Replies: 34
Views: 161722

Re: Converting dwg to directx using C#

This is a test CAD file http://www.ausukusa.com/workstuff/CADTestTarget.jpg Here is how the DXF reader is showing it http://www.ausukusa.com/workstuff/CADTestDXF.jpg Here is how the DWG reader is showing it http://www.ausukusa.com/workstuff/CADTestDWG.jpg All arc in the second and fourth quadrants a...