1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

User Interaction & Dialogues

Discussion in 'Alibre Script' started by DavidJ, Jun 25, 2020.

  1. idslk

    idslk Alibre Super User

    Hello David,
    that's why i said " a thing for Andy" ...

    While the "Face" solution also works in a single part (not so much sensful, but compatible...) and has no "timing problems", the "ShowPart" works for assemblies. I think it would be ok to add some lines to prevent a start in a single part:
    Code:
    Win = Windows()
    
    try:
      CA=CurrentAssembly()
    except:
      Win.ErrorDialog('Sorry, this script works only in an assembly','Error')
      sys.exit()
    I have changed the line position of "Win = Windows()" to the top of the script...

    Regards
    Stefan
     
  2. DavidJ

    DavidJ Alibre Super User Staff Member

    Stefan,

    I alerted Andy - he took a look and found an issue. He has resolved the problem for v22.
     
    idslk likes this.

Share This Page