Alias Edit - Error when adding new command

Alias Edit - Error when adding new command

Bendik_TorpJ2ZYT
Explorer Explorer
203 Views
3 Replies
Message 1 of 4

Alias Edit - Error when adding new command

Bendik_TorpJ2ZYT
Explorer
Explorer

Hello, 

Wondering if anybody could help me out with some Alias Edit-troubles. 

I'd like to make an alias for 'quickeditfeatureelevs', the command i can write to quickly adjust the nodes on a featureline (picture 1). This command does not have an alias from before, like 'circle' would be linked to 'c', and therefore i want to make a new one. 

When going forward with my new alias (top right in picture 2), 'qq', and the manually type  command, i get an error message "Unhandled exception has occured in your application" (bottom left in picture 2, with the 'details' copypasted into the bottom of this post). 

It gives me the option to continue regardless, but i havent done so in fear that it might mess something up. 

Any tips? 


Details from the error message: 

See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.

************** Exception Text **************
System.UnauthorizedAccessException: Access to the path 'C:\Program Files\Autodesk\AutoCAD 2025\Express\alias.pgc' is denied.
at Microsoft.VisualBasic.FileSystem.FileOpen(Int32 FileNumber, String FileName, OpenMode Mode, OpenAccess Access, OpenShare Share, Int32 RecordLength)
at Autodesk.ExpressTools.AliasEdit.Autodesk.ExpressTools.AliasEdit.frmNewAlias.CheckDuplicateCmd()
at Autodesk.ExpressTools.AliasEdit.Autodesk.ExpressTools.AliasEdit.frmNewAlias.cmdOK_Click(Object eventSender, EventArgs eventArgs)
at System.Windows.Forms.Button.OnClick(EventArgs e)
at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ButtonBase.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(HWND hWnd, MessageId msg, WPARAM wparam, LPARAM lparam)


************** Loaded Assemblies **************
System.Private.CoreLib
Assembly Version: 8.0.0.0
Location: C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.11\System.Private.CoreLib.dll
----------------------------------------
alias
Assembly Version: 25.0.0.0
Location: C:\Program Files\Autodesk\AutoCAD 2025\Express\alias.dll
----------------------------------------
Microsoft.VisualBasic.Forms
Assembly Version: 8.0.0.0
Location: C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App\8.0.11\Microsoft.VisualBasic.Forms.dll
----------------------------------------
System.Runtime
Assembly Version: 8.0.0.0
Location: C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.11\System.Runtime.dll
----------------------------------------
System.Windows.Forms.Primitives
Assembly Version: 8.0.0.0
Location: C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App\8.0.11\System.Windows.Forms.Primitives.dll
----------------------------------------
System.Windows.Forms
Assembly Version: 8.0.0.0
Location: C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App\8.0.11\System.Windows.Forms.dll
----------------------------------------
System.Diagnostics.TraceSource
Assembly Version: 8.0.0.0
Location: C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.11\System.Diagnostics.TraceSource.dll
----------------------------------------
System.Collections
Assembly Version: 8.0.0.0
Location: C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.11\System.Collections.dll
----------------------------------------
System.ComponentModel.Primitives
Assembly Version: 8.0.0.0
Location: C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.11\System.ComponentModel.Primitives.dll
----------------------------------------
System.Drawing.Primitives
Assembly Version: 8.0.0.0
Location: C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.11\System.Drawing.Primitives.dll
----------------------------------------
System.Runtime.InteropServices
Assembly Version: 8.0.0.0
Location: C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.11\System.Runtime.InteropServices.dll
----------------------------------------
System.Collections.Specialized
Assembly Version: 8.0.0.0
Location: C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.11\System.Collections.Specialized.dll
----------------------------------------
System.Security.Principal.Windows
Assembly Version: 8.0.0.0
Location: C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.11\System.Security.Principal.Windows.dll
----------------------------------------
System.Security.Claims
Assembly Version: 8.0.0.0
Location: C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.11\System.Security.Claims.dll
----------------------------------------
System.Threading.Thread
Assembly Version: 8.0.0.0
Location: C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.11\System.Threading.Thread.dll
----------------------------------------
System.ComponentModel.EventBasedAsync
Assembly Version: 8.0.0.0
Location: C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.11\System.ComponentModel.EventBasedAsync.dll
----------------------------------------
System.Threading
Assembly Version: 8.0.0.0
Location: C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.11\System.Threading.dll
----------------------------------------
System.ComponentModel
Assembly Version: 8.0.0.0
Location: C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.11\System.ComponentModel.dll
----------------------------------------
System.Drawing.Common
Assembly Version: 8.0.0.0
Location: C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App\8.0.11\System.Drawing.Common.dll
----------------------------------------
Microsoft.Win32.Primitives
Assembly Version: 8.0.0.0
Location: C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.11\Microsoft.Win32.Primitives.dll
----------------------------------------
Accessibility
Assembly Version: 4.0.0.0
Location: C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App\8.0.11\Accessibility.dll
----------------------------------------
System.ComponentModel.TypeConverter
Assembly Version: 8.0.0.0
Location: C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.11\System.ComponentModel.TypeConverter.dll
----------------------------------------
Microsoft.VisualBasic.Core
Assembly Version: 13.0.0.0
Location: C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.11\Microsoft.VisualBasic.Core.dll
----------------------------------------
System.Numerics.Vectors
Assembly Version: 8.0.0.0
Location: C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.11\System.Numerics.Vectors.dll
----------------------------------------
Microsoft.Win32.SystemEvents
Assembly Version: 8.0.0.0
Location: C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App\8.0.11\Microsoft.Win32.SystemEvents.dll
----------------------------------------
System.Collections.Concurrent
Assembly Version: 8.0.0.0
Location: C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.11\System.Collections.Concurrent.dll
----------------------------------------
System.Resources.Extensions
Assembly Version: 8.0.0.0
Location: C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App\8.0.11\System.Resources.Extensions.dll
----------------------------------------
System.Memory
Assembly Version: 8.0.0.0
Location: C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.11\System.Memory.dll
----------------------------------------
System.ObjectModel
Assembly Version: 8.0.0.0
Location: C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.11\System.ObjectModel.dll
----------------------------------------
System.Private.Uri
Assembly Version: 8.0.0.0
Location: C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.11\System.Private.Uri.dll
----------------------------------------
System.Drawing
Assembly Version: 8.0.0.0
Location: C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App\8.0.11\System.Drawing.dll
----------------------------------------
System.Runtime.Loader
Assembly Version: 8.0.0.0
Location: C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.11\System.Runtime.Loader.dll
----------------------------------------
System.Collections.NonGeneric
Assembly Version: 8.0.0.0
Location: C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.11\System.Collections.NonGeneric.dll
----------------------------------------
System.Linq.Expressions
Assembly Version: 8.0.0.0
Location: C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.11\System.Linq.Expressions.dll
----------------------------------------
System.Linq
Assembly Version: 8.0.0.0
Location: C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.11\System.Linq.dll
----------------------------------------
Microsoft.Win32.Registry
Assembly Version: 8.0.0.0
Location: C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.11\Microsoft.Win32.Registry.dll
----------------------------------------
System.Runtime.Serialization.Formatters
Assembly Version: 8.0.0.0
Location: C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.11\System.Runtime.Serialization.Formatters.dll
----------------------------------------
System.Diagnostics.StackTrace
Assembly Version: 8.0.0.0
Location: C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.11\System.Diagnostics.StackTrace.dll
----------------------------------------
System.Reflection.Metadata
Assembly Version: 8.0.0.0
Location: C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.11\System.Reflection.Metadata.dll
----------------------------------------
System.Collections.Immutable
Assembly Version: 8.0.0.0
Location: C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.11\System.Collections.Immutable.dll
----------------------------------------

************** JIT Debugging **************

 

0 Likes
Accepted solutions (2)
204 Views
3 Replies
Replies (3)
Message 2 of 4

will_young
Advocate
Advocate
Accepted solution

I just tried this as it's something I've been meaning to do myself.

 

I followed the steps:

1. Edit aliases via manage > customisation

willyoungMF8K3_0-1749121585743.png

2. Add the line at the bottom of the file, save and close

QQ, *QUICKEDITFEATUREELEVS

3. Type REINIT and tick PGP file

4. QQ is now linked to the command

willyoungMF8K3_1-1749121729326.png

 

I notice from the error message that you used ALIASEDIT, not sure why it didn't work but it sounds like there can be issues with editing that way:

ALIASEDIT command not Working in AutoCAD

 

To clear the error I would run the program Reset Settings to Default prior to editing the aliases.

Message 3 of 4

Bendik_TorpJ2ZYT
Explorer
Explorer

You sir, are a legend. Thank you. 

Message 4 of 4

MSchille-1994
Collaborator
Collaborator
Accepted solution

I would think you'd rather open the acad.pgp file located under your user folder on the c:\ drive and edit that one at the bottom of the list. 

 

Once you save and close it, use the REINIT command check the box next to the PPGP option.  Now try your QQ command.  I hate that AliasEditor command in the Express menu.

 

MSchille1994_0-1749228527516.png

 

Attitude, not Aptitude, Determines Altitude
0 Likes