• Skip to main content
  • Skip to search
  • Skip to footer
Cadence Home
  • This search text may be transcribed, used, stored, or accessed by our third-party service providers per our Cookie Policy and Privacy Policy.

  1. Community Forums
  2. Allegro X PCB Editor
  3. Allegro crashes opening a new design after Skill routine...

Stats

  • Replies 6
  • Subscribers 159
  • Views 14398
  • Members are here 0
More Content

Allegro crashes opening a new design after Skill routine uses axlEnterPoint

joma
joma over 9 years ago

Hi, I have written a routine to output the min track, gap and annular ring values etc which works ok. It will happily update text on drawing layers if they exist already. If the text does not exist the user is prompted for a position for the new data. This is where the problem starts. All seems ok and the design checks out and can be saved. However, if I try to open another design Allegro crashes and creates a .sav file in the directory of the other design or symbol. Just to be clear, there is never a problem if the text to be updated is alredy in the design, only when there is a prompt for position. Here is a snippet:

layer_count = length(axlGetParam("paramLayerGroup:etch")->groupMembers)
l_text = axlGetSelSet()
        foreach(text_t l_text
                when(text_t->text
                    if(rexMatchp("^Number of LAYERS.*$" text_t->text) ; Lower case writing on is on layer Outline.
                    then
                    layno_xy = text_t->xy
                    layCountText = sprintf(nil, "%n", layer_count )
                    newText = strcat("Number of LAYERS:", " ", layCountText )
                    replaceText(text_t newText)
                        ) ;end if
                    ) ; when
                ) ; end foreach

                        unless(layno_xy
                            axlSetActiveLayer("DRAWING FORMAT/DRILL")
                            axlVisibleDesign(nil)  axlUIWUpdate(nil)
                            axlVisibleLayer("DRAWING FORMAT/DRILL" t)
                            axlVisibleUpdate(t)
                            axlClearSelSet() axlAddSelectAll()
                            l_text = axlGetSelSet()

                            foreach(text_t l_text
                                    when(text_t->text
                                        if(rexMatchp("^NUMBER OF LAYERS.*$" text_t->text)
                                        then    
                                        layno_xy = text_t->xy
                                        textOrientNumLayDrill = axlTextOrientationCopy(text_t)
                                        axlDeleteObject(text_t)
                                            ) ; end if
                                        ) ; when
                                     ) ; end foreach

                                unless(layno_xy
                                    layno_xy = axlEnterPoint(?prompts list("Pick Number of layers TEXT POSITION:"))
                                    textOrientNumLayDrill = defaultOrient
                                    ) ; end unless
                             ) ; end unless

                    when( textOrientNumLayDrill
                 axlDBCreateText(sprintf(nil "NUMBER OF LAYERS: %n" layer_count), layno_xy,
                                                textOrientNumLayDrill, "DRAWING FORMAT/DRILL", nil)
                        ) ; when

Any ideas ?

Jim O'Mahony

  • Sign in to reply
  • Cancel
Parents
  • joma
    joma over 9 years ago

    I thought sklint was only available with the toolbox. I will start learning how to use it.
    I started by using interrogation of standard Allegro reports for simplicity and that actually
    works very well when there is no user inputs. Looks like I have some more to learn about
    the database objects to make my code more robust :-) . Thanks.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
Reply
  • joma
    joma over 9 years ago

    I thought sklint was only available with the toolbox. I will start learning how to use it.
    I started by using interrogation of standard Allegro reports for simplicity and that actually
    works very well when there is no user inputs. Looks like I have some more to learn about
    the database objects to make my code more robust :-) . Thanks.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
Children
No Data
Cadence Guidelines

Community Guidelines

The Cadence Design Communities support Cadence users and technologists interacting to exchange ideas, news, technical information, and best practices to solve problems and get the most from Cadence technology. The community is open to everyone, and to provide the most value, we require participants to follow our Community Guidelines that facilitate a quality exchange of ideas and information. By accessing, contributing, using or downloading any materials from the site, you agree to be bound by the full Community Guidelines.

© 2025 Cadence Design Systems, Inc. All Rights Reserved.

  • Terms of Use
  • Privacy
  • Cookie Policy
  • US Trademarks
  • Do Not Sell or Share My Personal Information