The file stud.dat is a primitive, and is in the p/ subdirectory of the LDraw parts library. File loading in LDraw involves a kind of search path. The standard search path is as follows:
If your project is in C/C++, you might consider using's Lars C. Hassing's LDrawIni code to find sub-files. (LDView uses this.)
- . (the main model's directory)
- <LDraw Dir>\p
- <LDraw Dir>\parts
- <LDraw Dir>\models
- <LDraw Dir>\Unofficial\p
- <LDraw Dir>\Unofficial\parts
If your project is in C/C++, you might consider using's Lars C. Hassing's LDrawIni code to find sub-files. (LDView uses this.)