VBA Loadlinetype
Posted: Sat Aug 17, 2024 8:21 am
Trying to load a new line type to active document with the following:
IntelliCAD.ActiveDocument.Linetypes.Load "HIDDEN", "icad.lin"
Tried various permutations of the above but get the following error:
"Method 'Load' of object "IIcadLinetypes' failed"
Other line types fail as well.
Using Intellicad version 12.1 PE+ on a windows 11 machine.
Any help is greatly appreciated, thank you.
Update........
Works with full path to "icad.lin" file in user directory. Will not work without full path even though file path is in search directory. How to make this work without full path?
IntelliCAD.ActiveDocument.Linetypes.Load "HIDDEN", "icad.lin"
Tried various permutations of the above but get the following error:
"Method 'Load' of object "IIcadLinetypes' failed"
Other line types fail as well.
Using Intellicad version 12.1 PE+ on a windows 11 machine.
Any help is greatly appreciated, thank you.
Update........
Works with full path to "icad.lin" file in user directory. Will not work without full path even though file path is in search directory. How to make this work without full path?