Re: DXF and other CAD file formats [message #28329 is a reply to message #28300] |
Tue, 04 December 2001 09:37   |
Dick Jackson
Messages: 347 Registered: August 1998
|
Senior Member |
|
|
"Georg Wiora" <georg.wiora@DaimlerChrysler.com> wrote in message
news:1103_1007453886@rtulmrb142...
> Thank you Rick! I tried it, but it did not work. I got a hint
> from RSI that the polyline feature is not implemented in
> IDLffDXF yet.
> There seems to be another problem with IDLffDXF: The point
> coordinates I supplied to the object are clearly 3
> dimensional, but the object displayed with the XDXF procedure
> is flat!
>
> So there is either a lack of documentation for the IDLffDXF
> object or a lack of implementation :-(
Looking a little deeper, it really is ignoring whatever you put as the
connectivity. I did this after running your Write_DXF_Lines:
IDL> toView = Get_DXF_Objects('test.dxf')
IDL> o=toview->get()
IDL> xobjview,o
It looks like a flat polyline shaped like this: ] :-)
But this is what's surprising...
IDL> o->getproperty,polylines=poly
IDL> print,poly
5 0 1 2 3 4
... so it has five vertices, four segments, and...
IDL> o->getproperty,data=data
IDL> print,data
0.00000000 0.00000000 0.00000000
1.0000000 0.00000000 0.00000000
1.0000000 1.0000000 0.00000000
1.0000000 1.0000000 0.00000000
0.00000000 1.0000000 0.00000000
The five points are there, but they're all flattened to Z=0. Now I'm not a
fluent reader of DXF, but looking into the DXF file, it looks like there's
something called an AcDb2dVertex, here's a sample:
VERTEX
5
29
100
AcDbEntity
8
0
100
AcDbVertex
100
AcDb2dVertex
10
0.0
20
1.0
30
1.0
0
It looks like it *should* be the point [0,1,1] (that's XYZ at the end), but
it ends up treated as [0,1,0] when read in. I'd guess this is where
PutEntity is making a mistake.
Sorry, this probably doesn't help a lot, but it's curious.
Cheers,
--
-Dick
Dick Jackson / dick@d-jackson.com
D-Jackson Software Consulting / http://www.d-jackson.com
Calgary, Alberta, Canada / +1-403-242-7398 / Fax: 241-7392
|
|
|