Merge Commands

Merge Commands

piyush.parihar24
Advocate Advocate
1,431 Views
17 Replies
Message 1 of 18

Merge Commands

piyush.parihar24
Advocate
Advocate

Hey Hi People,

 

Just need to know via mentors wheather we can merge two or more commands in Autocad 2015?

 

If yes what is the procedure?

 

 

0 Likes
1,432 Views
17 Replies
Replies (17)
Message 2 of 18

john.vellek
Alumni
Alumni

One possible way to do this @piyush.parihar24 would be to utilize the Action Recorder

 

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


John Vellek


Join the Autodesk Customer Council - Interact with developers, provide feedback on current and future software releases, and beta test the latest software!

Autodesk Knowledge Network | Autodesk Account | Product Feedback
Message 3 of 18

pendean
Community Legend
Community Legend
Which two commands are you trying to "merge"?
What is it you wish to accomplish?
Message 4 of 18

piyush.parihar24
Advocate
Advocate
I want to merge " Coinstranlator" and " Leotranslator" As one command "Translator".
0 Likes
Message 5 of 18

piyush.parihar24
Advocate
Advocate
Let me try once. If it helped out I will surely click accept solution button sir...
0 Likes
Message 6 of 18

john.vellek
Alumni
Alumni

Hi piyush.parihar24,

 


I am checking back to see if my post helped you with your problem. Please add a post with your results so other Forum users can benefit.

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


John Vellek


Join the Autodesk Customer Council - Interact with developers, provide feedback on current and future software releases, and beta test the latest software!

Autodesk Knowledge Network | Autodesk Account | Product Feedback
0 Likes
Message 7 of 18

piyush.parihar24
Advocate
Advocate
Action recorder not working in my case. Please suggest me different solution.
0 Likes
Message 8 of 18

john.vellek
Alumni
Alumni

Good morning piyush.parihar24,

 

I am not familiar with the commands that you are trying to "Merge". I tried creating a macro that utilized two different commands (line and circle) and inserted prompts for user input. The macro appears to work fine.

 

Please share more information (or send me the custom commands and a sample dwg as attachments) so that I can assist you further.

 

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

 

 


John Vellek


Join the Autodesk Customer Council - Interact with developers, provide feedback on current and future software releases, and beta test the latest software!

Autodesk Knowledge Network | Autodesk Account | Product Feedback
0 Likes
Message 9 of 18

piyush.parihar24
Advocate
Advocate
Actually "Coinstranslator" which converts Different language into Required language does nor properly work in case of german language.
For german translation people normally prefer "Leo Translator".

I do have "Coinstranslator" and i am searching for specific german translator. Once i get both Application, I need to merge both application command into one. So that one command will translate all language the user required.

I think John You are now clear what i exactly wanna do.
0 Likes
Message 10 of 18

piyush.parihar24
Advocate
Advocate
Hey Dean Can you provide me proper technical German Converter Application which will run on Autocad just like Coinstranslator?
0 Likes
Message 11 of 18

john.vellek
Alumni
Alumni

Good morning piyush.parihar24,

 

Since they are not native Autodesk applications I do not know how well they will behave using Macro's. I don't know how they hook into the program either so I can not offer further suggestions. Once you have them in place perhaps I can help you further.

 

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


John Vellek


Join the Autodesk Customer Council - Interact with developers, provide feedback on current and future software releases, and beta test the latest software!

Autodesk Knowledge Network | Autodesk Account | Product Feedback
Message 12 of 18

dbroad
Mentor
Mentor

@piyush.parihar24

This topic is better for one of the customization newsgroups since neither command is a built in AutoCAD command.  Your first post in the new thread should describe what the two commands are and how they are loaded into AutoCAD.  Your post should also describe how a choice of which translator to use would be triggered (based on localization or language detection).  I don't know of any free app that would work inside AutoCAD to automatically detect the source language but if a program could just ask a question like, "Which translator do you want to use?", the interface should be easy. 

 

I don't see any real productivity improvement though in your request.  Any command can be shortened by creating an alias and custom commands can be integrated into the ribbon.  A drafter who knows which translator to use should just enter the command they want to use.  Aliases or ribbon integration would be the best choice.

Architect, Registered NC, VA, SC, & GA.
0 Likes
Message 13 of 18

piyush.parihar24
Advocate
Advocate
Good morning john,

Coinstranslator is a Autodesk product, Leo translator is not. I am expecting some sort of German translator once it is through I will let you know two commands which I want to merge. Thank you for your help till date. Please be in contact till next post of mine for the same title. Cheers..!!
0 Likes
Message 14 of 18

piyush.parihar24
Advocate
Advocate
Sir don't take my word wrong but Please go through all conversation once you will get the point what you are asking for..
0 Likes
Message 15 of 18

dbroad
Mentor
Mentor

I read all of your posts and stand by my statement.  This is an issue that cannot be solved by using menu macros or action recorder statements.  It requires some knowledge of how the two commands operate and how they would be merged.  In other words some branching would need to occur. The branching condition has not been well defined in the thread so far.  Are you translating to or from German?  Do you need to translate to other languages?  Where do you make the choice of translation?  You need some sort of flow chart in order to define the branching.

 

These kinds of issues are more likely to be solved by completely describing your problem in the customization newsgroup.  I would look for a German customization forum.

Architect, Registered NC, VA, SC, & GA.
Message 16 of 18

piyush.parihar24
Advocate
Advocate
1. I want to translate German into English
2. I do have translator for other languages which is also a product of Autodesk called "Coinstranslator".
3. Choice of transaltion would be made in drawing ( AutoCAD ) itself.


Apart from these query I am stuck with one more problem that I am not getting proper German translator which supports AutoCAD just like Coinstranslator. Once I get that application. Then I need to merge these two commands namely coinstranslator and German translator combinely .
0 Likes
Message 17 of 18

dbroad
Mentor
Mentor

That is more informative.  So I assume that you want to say translate and have options such as german or other.  The branch would launch leo or coin.

 

;;Rough code 

(defun c:translate ( / language)
   (initget "German Other")
   (setq language (getkword "\nWhich language? [German/Other]"))
   (if (= language "German")
      (command "Leotranslator")
      (command "Coinstranlator")
    )
 (princ)
)

This assumes that the commands can be called by the command function.  They may need to be called by (c:leotranslator) and (c:cointranslator) or another name.  If they are not autoloaded, then they need to be manually loaded.  These issues are best discussed on a customization forum, not on an AutoCAD forum.

Architect, Registered NC, VA, SC, & GA.
Message 18 of 18

piyush.parihar24
Advocate
Advocate
OK once I get command I will try this script to merge them. Thank you for the help. Once my command is merged I will accept this as solution.
0 Likes