- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I have a .CSV file that manages our title block attributes. A script file that runs LISP routing that reads those values, updates the title blocks, then plots the dwgs and places them into a defined folder location.
I had previously written the code to work with BIM30/ACC when the default location for the cache was your C:\.
C:\Users\username\ACCDocs\
With recent updates you have the option of changing your default "Workspace" location drive , root folder, etc
Now that the root location to that local cache is variable my routine will not work unless they left their install in the default location.
Is there a way to extract the DTC cache path as a variable?
This is an example portion of the code I have atm.
(load (strcat "C:\\Users\\" (getenv "username") "\\ACCDocs\\......blahblah......\\UpdateTBAttributes.lsp"))
If for example someone modifies their DTC workspace to say D drive and a Subfolder that path would be like this:
D:\Users\username\DC\ACCDocs\.....blahblah.....\UpdateTBAttributes.lsp
How would you extract the red text as a variable??
Pls/Thx.
Solved! Go to Solution.