D3D.LoadFile |
![]() ![]() |
state = D3D.LoadFile( BYVAL nControl AS INTEGER, BYVAL filename AS STRING, BYVAL options AS INTEGER = 0 ) AS INTEGER
state = D3D.LoadFile( BYVAL nControl AS INTEGER, BYVAL C3DFid AS HANDLE, BYVAL options AS INTEGER = 0 ) AS INTEGER
Loads a file into the Dynamic 3D Viewer. The file can be a C3D file or an ASCII file. If the ASCII file is a MaxMATE formatted file then loadfile will import automatically. You can also load a previously opened C3D file by supplying the C3D File ID returned from a call to C3D_open
The following constants have been define in MyBASIC2_MaxD3D.BAS
' LoadFile Option Flags CONST MD_OPT_None = 0x00000000 CONST MD_OPT_Use_Wizard = 0x00000004
Example:
IF fid = 0 THEN IF D3D.LoadFile( nControl, file ) <> 0 THEN PRINT "Error Opening C3D File '";file;"'", STOP 333 ENDIF ELSE newfid = D3D.FID( nControl, fid ) ENDIF
|