Two aliases will not commit

Two aliases will not commit

CovenStine
Enthusiast Enthusiast
410 Views
3 Replies
Message 1 of 4

Two aliases will not commit

CovenStine
Enthusiast
Enthusiast

Hello,

I've added a few aliases, but a couple of my changes won't commit no matter what I've tried; and since these commands are (mostly) C3D specific, I figured the question should be here (on c3D 2023, up-to-date).

I use FeatureLines a bit, so it's been convenient to setup some commands for quickly accessing FeatureLine specific commands.

I've set 

FO to OffsetFeature 

FD to DrawFeatureLine

FC to CreateFeatureLine

FCA to CreateFeaturLinefromAlign[ments]

FB to BreakFeatures

FT to TrimFeatures

FJ to JoinFeatures 

FE to QuickEditFeatureElevs

FG to SetFeatureGrade

FS to FeatureElevsFromSurf

PII to InsertFeaturePI

PID to DeleteFeatuePI

 

Because none of these commands are in the Alias Command List by default, all of these needed to be added to alias.pjc, which has been done successfully*, and I've successfully created aliases to all but two of these commands. (*yes, as admin in win11)

 

No matter how many times I reset FC CreateFeatureLine and FS to FeatureElevsFromSurf, AC is ignoring these changes (after restarts, saves, new sessions, etc.)

Every time I use FC, I get "Unknown Command FC, press F1 for help," and every time I try FS, autocad activates 'FSMODE.

This is rather driving me bats, because at a previous employer these aliases were set as part of the standard AutoCAD configuration file that was rolled out to all users... so I can't understand why it won't work for me.

 

I apologize if this has been asked and answered elsewhere, I've tried searching but I think I'm wording my question wrong for any good results.

Thanks y'all!

0 Likes
411 Views
3 Replies
Replies (3)
Message 2 of 4

AllenJessup
Mentor
Mentor

It looks like FS may be a existing full command name. See:

https://www.autodesk.com/support/technical/article/caas/sfdcarticles/sfdcarticles/Command-Aliases-do...

I don't know about FC. You might try usijng AeccCreateFeatureLines. 

I've had 3rd party Add-ins hijack some Aliases.

You might try adding the Alias commands to an acaddoc.lsp file. See:

https://www.autodesk.com/support/technical/article/caas/sfdcarticles/sfdcarticles/Some-command-alias...

Allen Jessup
CAD Manager - Designer
Did you find this post helpful? Feel free to Like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.

EESignature

0 Likes
Message 3 of 4

CovenStine
Enthusiast
Enthusiast

Thanks!
I would've sworn we could override set aliases, but you're right- FS seems to be the ENTIRE command, and seemingly can't be overwritten.   

Your response also showed me my mistake- I'd set FC to "CreateFeatureline" instead of "CreateFeaturelines"

SMH 

Thanks for your help, Allen!

Message 4 of 4

chriscowgill7373
Advisor
Advisor

I have these in my startup lisp.  I have code in my acad.pgp file as well, but like you said FS overrides my function.  I'm guessing that years ago, it may have worked, and then newer functions were added that caused the pgp versions to no longer function and I never removed them when I switched to LISP. 

(defun c:FQ ()
(command-s "AeccQuickEditFeatureElevs")
)
(defun c:FC ()
(command-s "AeccCreateFeatureLines")
)
(defun c:FG ()
(command-s "AeccSetFeatureGrade")
)
(defun c:FP ()
(command-s "AeccInsertFeaturePI")
)
(defun c:FJ ()
(command-s "AeccJoinFeatures")
)
(defun c:FPD ()
(command-s "AeccDeleteFeaturePI")
)
(defun c:FE ()
(command-s "AeccInsertFeatureElevPoint")
)
(defun c:FED ()
(command-s "AeccDeleteFeatureElevPoint")
)
(defun c:FS ()
(command-s "AeccFeatureElevsFromSurf")
)


Christopher T. Cowgill, P.E.

AutoCAD Certified Professional
Civil 3D Certified Professional
Civil 3D 2024 on Windows 10

Please select the Accept as Solution button if my post solves your issue or answers your question.

0 Likes