(2020-04-13, 18:47)Roland Melkert Wrote: Did you use the AIOI to install LDCad?
If so there might be a problem with it as it should have set the parts folder for LDCad automatically
The AIOI copies a complete.zip to the LDraw folder with the \parts and \p subfolders. It also copies a main.cfg with this content:
Code:
<LDrawPaths>
off->sLDrawPath
[editing]
defSteppingVersion=1
defAuthor=sUserName
to: AppData\Roaming\LDCad\config
In the post install process it finally does this replacement:
Code:
The session variable for %LDrawPartsLibraryPath% is %CommonDocumentsFolder%\LDraw
******************************************
-- Set a string for the commun documents folder
sLDrawPartsLibraryPath = SessionVar.Expand("%LDrawPartsLibraryPath%");
if (bLDCadIsInstalled) then
sMainCfgPath = SessionVar.Expand("%ApplicationDataFolder%" .. "\\LDCad\\config\\main.cfg");
-- Read the contents of main.cfg file into a string.
sMainCfg = TextFile.ReadToString(sMainCfgPath);
-- Check the error code of the last example.
error = Application.GetLastError();
-- If an error occurred, display the error message.
if (error ~= 0) then
Dialog.Message("Error", _tblErrorMessages[error], MB_OK, MB_ICONEXCLAMATION);
else
-- Replace every occurrence of the string "sLDrawPath" with the string "expanded LDraw path".
sNewMainCfg = String.Replace(sMainCfg, "sLDrawPath", sLDrawPartsLibraryPath .. "\\complete.zip", true);
sNewMainCfg = String.Replace(sNewMainCfg, "sUserName", SessionVar.Expand("%UserName%"), true);
-- Write out the modified contents of the text file.
TextFile.WriteFromString(sMainCfgPath, sNewMainCfg, false);
-- Check the error code of the last example.
error = Application.GetLastError();
-- If an error occurred, display the error message.
if (error ~= 0) then
Dialog.Message("Error", _tblErrorMessages[error], MB_OK, MB_ICONEXCLAMATION);
end
end
end
To make it short. It does directly point to the complete.zip file and not the directory.
Hope this helps
w.
LEGO ergo sum