Import/Export Profile not overriding %RoamableRootFolder%

Import/Export Profile not overriding %RoamableRootFolder%

sbrooksF954V
Participant Participant
247 Views
1 Reply
Message 1 of 2

Import/Export Profile not overriding %RoamableRootFolder%

sbrooksF954V
Participant
Participant

I have a profile on AutoCAD with a custom support file path setup that doesn't use the standard roamable folder. Instead it uses a local folder on the C: drive. When I export the profile, the .ARG file still references the roamable root folder and therefore imports incorrectly on other computers. This results in "missing" CUI files and plotter paths that then need to be updated manually. Is there a way to export the profile so it references the correct specific C: drive path instead of the roaming path?

 

sbrooksF954V_0-1712102838002.png

 

0 Likes
248 Views
1 Reply
Reply (1)
Message 2 of 2

LDShaw
Collaborator
Collaborator

Late to the party but

(getenv "RoamableRootFolder") 
Should do it for you.

Should work if it's in your environment variables.

To see if it will try 

(setq path (strcat (getenv "RoamableRootFolder") "\\WEC Plotters\\WEC PMP files"))
(princ path)

See if it comes in right.

Perhaps something like this for printer config paths.

 

(vla-put-PrinterConfigPath
  (vla-get-files (vla-get-preferences (vlax-get-acad-object)))
  (strcat (getenv "RoamableRootFolder") "\\WEC Plotters\\WEC PMP files")
)

 


 

0 Likes