The other auto-include files (parts)
It should be noted that LDView also automatically includes another type of include file: those for parts. If it finds an XXXX.inc in the parts includes directory where XXXX is a part number included in the original file, it will then call that part.
For example I declare a custom 132.inc (and 132-OLD.inc) to make the old-style wheel. I place 132.inc (attached) in the /ldraw/pov/parts folder (you may choose a different directory) and when I generate a POV file through LDView it inserts #include "132.inc" rather than a declaration of the part. 132.inc must return a part in the format
where the details of the part go inside. Be wary of sub-declares in these parts to make sure they don't override others in the main model.
It should be noted that LDView also automatically includes another type of include file: those for parts. If it finds an XXXX.inc in the parts includes directory where XXXX is a part number included in the original file, it will then call that part.
For example I declare a custom 132.inc (and 132-OLD.inc) to make the old-style wheel. I place 132.inc (attached) in the /ldraw/pov/parts folder (you may choose a different directory) and when I generate a POV file through LDView it inserts #include "132.inc" rather than a declaration of the part. 132.inc must return a part in the format
Code:
#declare _132_dot_dat = union {
}