What's new

User Interaction & Dialogues

idslk

Alibre Super User
Hello David,
not really sure why this works
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
 

DavidJ

Administrator
Staff member
Stefan,

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