comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » DXF and other CAD file formats
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
DXF and other CAD file formats [message #28300] Thu, 29 November 2001 06:15 Go to previous message
Georg Wiora is currently offline  Georg Wiora
Messages: 13
Registered: November 2001
Junior Member
Hi everybody,

I have problems using the polyline feature in an IDLffDXF object. I connect 4 points with a line, using the CONNECTIVITY array. When I add this object, I allways get the following message:
% IDLFFDXF::PUTENTITY: DXF error: DXF Polyline: explicit connectivity ignored
For a little test program see the code below.

Does anyone know about this problem?

Is there any other free code to create 3D-CAD-Files formats like STL or IGES or whatever?

Thanks for your help!

Georg


---- Cut Here ------- Cut Here ------- Cut Here ------- Cut Here ------- Cut Here ------- Cut Here ------- Cut Here ------- Cut Here ---
PRO Write_DXF_Lines

dxf = OBJ_NEW('IDLffDXF')

; 4 points
points = DBLARR(3,5)
points(*,0) = [0,0,0]
points(*,1) = [1,0,0]
points(*,2) = [1,1,0]
points(*,3) = [1,1,1]
points(*,4) = [0,1,1]
; Connectivity
connect = [0,1,2]
; Create pointers
ppoints = PTR_NEW(points,/NO_COPY)
pconnect = PTR_NEW(connect,/NO_COPY)


; Create a polyline object
pline = {IDL_DXF_POLYLINE}
pline.Vertices=ppoints
pline.Connectivity=pconnect
pline.Color=256
pline.DXF_Type=7 ; 7=POLYLINE
pline.BLOCK='' ; default block
pline.Layer='0' ; default layer

dxf->PutEntity, pline

IF NOT dxf->Write('test.dxf') THEN $
MESSAGE,'Write failed',/INFORMATIONAL

; Free pointers
PTR_FREE,ppoints
PTR_FREE,pconnect
OBJ_DESTROY,dxf

xdxf,'test.dxf'
END
---- Cut Here ------- Cut Here ------- Cut Here ------- Cut Here ------- Cut Here ------- Cut Here ------- Cut Here ------- Cut Here ---
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Unable to acquire a GL context (IDLDE and w2000)
Next Topic: Re: Unable to acquire a GL context (IDLDE and w2000)

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Wed Oct 08 16:11:42 PDT 2025

Total time taken to generate the page: 0.00269 seconds