Home > Community > Forums > PCB SKILL > Interactive vs. General mode and how to setup

Email

* Required Fields

Recipients email * (separate multiple addresses with commas)

Your name *

Your email *

Message *

Contact Us

* Required Fields
First Name *

Last Name *

Email *

Company / Institution *

Comments: *

 Interactive vs. General mode and how to setup 

Last post Fri, Apr 23 2010 3:17 AM by Pieman. 2 replies.
Started by Pieman 23 Apr 2010 02:06 AM. Topic has 2 replies and 1887 views
Page 1 of 1 (3 items)
Sort Posts:
  • Fri, Apr 23 2010 2:06 AM

    • Pieman
    • Top 500 Contributor
    • Joined on Thu, Feb 19 2009
    • Salt Lake City, UT
    • Posts 27
    • Points 405
    Interactive vs. General mode and how to setup Reply

    To the Community,

     I am gaining understanding with Skill Coding, but it seems there is so much to learn!

    I was reading a thread and there was mention about 'Interactive' and 'General' settings.

     How are these set, and what is the difference between these?

    I have been trying to find information on these in the Skill Reference Guide, but only find 'Interactive Edit Functions', nothing on how to set the skill code to be in 'interactive' or 'general' mode or what these refer to.

     Help on this would be great.

    Best regards,

    Marvin.

    • Post Points: 20
  • Fri, Apr 23 2010 2:46 AM

    • fxffxf
    • Top 25 Contributor
    • Joined on Thu, Jul 17 2008
    • ., AK
    • Posts 291
    • Points 4,640
    Re: Interactive vs. General mode and how to setup Reply

    Skill consists of both the language and a one or more sets of functions. The Skill core functions can be found in the Skill Reference manual. Skill has an additional set of functions developed to support the Allegro back-end family of products whose names start with "axl". The axl functions can be found in the Allegro Skill Reference manual. This means to program in Skill with Allegro, you need the 2 Skill manuals (Reference and User Guide) plus the Allegro Skill Reference manual.

    In your case, you are asking for the difference between interactive and general. This pertains to a single Allegro Skill function, axlCmdRegister, and has to do with how your Skill code registers itself as an Allegro command. Once your Skill code is registered as and Allegro command, you want your users invoke your code by the command name you register. Example, you create a Skill function called "myFunc()" that does something, you would register it via axlCmdRegister as the Allegro command  mycommand".  Users would then either type "mycommand"  or you would add "mycommand" to the Allegro menu.

    Typically, if you are going to change the Allegro database, you want to register your command as interactive. If your Skill code just displays infomation, you register it as general. General commands should not require user picks and will not terminate other interactive commands. When Allegro starts an interactive command it will first issue a "done" message to end any active interactive commands. The move and delete commands are both examples of interactive commands. The status form is an example of a general command.

    Most commands should be written as interative. See axlCmdRegister for a complete description.

    • Post Points: 20
  • Fri, Apr 23 2010 3:17 AM

    • Pieman
    • Top 500 Contributor
    • Joined on Thu, Feb 19 2009
    • Salt Lake City, UT
    • Posts 27
    • Points 405
    Re: Interactive vs. General mode and how to setup Reply

     fxffxf,

    Thanks for the quick response.

    I will read up on this under axlCmdRegister in the Skill Reference manual.

     Marvin.

    • Post Points: 5
Page 1 of 1 (3 items)
Sort Posts:
Started by Pieman at 23 Apr 2010 02:06 AM. Topic has 2 replies.