vanowm Posted April 28 Share Posted April 28 I've created a new command SPLEDIT and toolbar button with icon. It shows and working properly: However it doesn't show my icon at the command prompt when command is running: If I register my command via (vlax-add-cmd "spledit" 'sple) then it shows the icon at command prompt, but it fails to load/register the command when opened another drawing. Also, note, the SPLE command is also has a toolbar button and icon of the SPLEDIT but for some reason it doesn't even show the icon in the suggested list. Am I doing something wrong here? Quote Link to comment Share on other sites More sharing options...
CyberAngel Posted April 29 Share Posted April 29 It's possible that you need to set the command flag ACRX-CMD-TRANSPARENT for vlax-add-cmd to be able to run it in multiple windows, especially if a command is running in another window. See this page. Not so sure about the icon for SPLE, it may be because it's not considered a "real" AutoCAD command. Have you saved the workspace that includes it? Quote Link to comment Share on other sites More sharing options...
vanowm Posted April 29 Author Share Posted April 29 Interesting... why wouldn't it consider it as "real" command? They both are registered as: (DEFUN c:spledit (/) (c:sple) (PRINC) ) (DEFUN c:sple (/) (princ) ) ACRX-CMD-TRANSPARENT doesn't seem to have any effect: (vlax-add-cmd "spledit" 'sple "spledit" 1) It works with first opened file, but btill getting Quote Command: spledit ; error: Visual LISP command document mismatch: spledit when open another file in the same window. (note, that when I use vlax-add-cmd I remove C: from function names) Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.