Jump to content

Change the DGNMAPPINGPATH variable with LISP


Aftertouch

Recommended Posts

Hi All,

 

in the Options => tab 'Files' the DGN Mapping Setups Location' is present.

 

But on installation, its set to the wrong location, seems like an error in 2024.

Nog i want to change the variable using LISP, so i can push this setting so all our 400 users.

 

But.... i cannot find any documentation about this specific path-location..

 

I found a variable DGNMAPPINGPATH, wich is ReadOnly.

 

I can change the Register-key, but... that doesnt seem to be te right way, since all other locations CAN be changed quite easy..

 

What am i missing here?

Link to comment
Share on other sites

What location is it set for? Mine is default to C:\USERS\*****\Appdata\Roaming\Autodesk\AutoCAD 2024\R24.3\enu\support

 

Pretty sure you need to modify with the Registry if you want to bypass the OPTIONS method.

Link to comment
Share on other sites

@SLW210

Thats the default value, wich is wrong.

The DGN Seed files are stored in:

C:\USERS\*****\Appdata\Roaming\Autodesk\AutoCAD 2024\R24.3\enu\templates

Link to comment
Share on other sites

I do not have a templates folder, must only happen when creating the .ini files. I haven't messed with DGN since getting 2024 apparently, I did restore to defaults a couple of months ago as well.

 

That explains why the default is wrong. 

 

Does yours have the template folder already?

Link to comment
Share on other sites

@SLW210

Smal correction:

C:\USERS\*****\Appdata\Roaming\Autodesk\AutoCAD 2024\R24.3\enu\template

is the correct folder.

 

This is a default AutoDesk folder, everybody has in there installation.

This is where all regular templates are stored, both DWT and now also DGN seed files.

Link to comment
Share on other sites

C:\Users\**********\AppData\Roaming\Autodesk\AutoCAD 2024\R24.3\enu on my computer has no template folder.

 

Mine is at C:\Users\*********\AppData\Local\Autodesk\AutoCAD 2024\R24.3\enu\Template

 

Either way, it seems the path is incorrect, maybe contact Autodesk for a fix would be the best route to take.

Templates NO.png

Link to comment
Share on other sites

5 hours ago, Aftertouch said:

Hi All,

 

in the Options => tab 'Files' the DGN Mapping Setups Location' is present.

 

But on installation, its set to the wrong location, seems like an error in 2024.

Nog i want to change the variable using LISP, so i can push this setting so all our 400 users.

 

But.... i cannot find any documentation about this specific path-location..

 

I found a variable DGNMAPPINGPATH, wich is ReadOnly.

 

I can change the Register-key, but... that doesnt seem to be te right way, since all other locations CAN be changed quite easy..

 

What am i missing here?

 

(defun XD::DOC:GetDGNMAPPINGPATH ()
  (vl-registry-read
    (strcat "HKEY_CURRENT_USER\\"
	    (vlax-product-key)
	    "\\Profiles\\"
	    (getvar "cprofile")
	    "\\General"
    )
    "DGNMAPPINGPATH"
  )
)

 

$ (XD::DOC:GETDGNMAPPINGPATH)
"C:\\Users\\Administrator\\AppData\\Roaming\\Autodesk\\AutoCAD 2025\\R25.0\\enu\\support"
_$ 

 

(getenv "DGNMAPPINGPATH")
(setenv "DGNMAPPINGPATH" "d:\\abc")

 

Edited by XDSoft
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...