DesignCAD 3D Max 2027 box
Now available

DesignCAD 2027

Hatches that follow their boundaries, an on-screen dial to turn your model, and a way to find any command by name, in a clean Windows 11 look.

Sys$(6) not working?

Started by Mark Laing, October 31, 2011, 06:53:48 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Mark Laing

Sys$(6) is supposed to find the drawing path. I know you have 'load' it sometimes by saving the drawing first but okay.
I have a macro in version 17 that uses it fine, but in version 21 it just points to where Designcad itself is. Does anyone else have this problem?

DrollTroll

It seems to be working ok for me.

Note that it should return the path that a drawing was most recently loaded from, so if you've loaded multiple drawings from different folders, it'll only return the most recent folder, not necessarily that from which the currently-active drawing was loaded.

25 years with DesignCAD

dcadRob

QuoteNote that it should return the path that a drawing was most recently loaded from, so if you've loaded multiple drawings from different folders, it'll only return the most recent folder, not necessarily that from which the currently-active drawing was loaded.
It always returns the default drawing folder for me.

DrollTroll

Nuts! It seemed to be working fine for me yesterday... Now I'm getting the same result you describe. Perhaps I was testing a different version. Must test further.

Workaround: Use Sys$(2), the full drawing path, and strip off the filename Sys$(3) from the end.
25 years with DesignCAD