stepalibre
Alibre Super User
You can write logic that gets the session name and/or type and if Assembly then proceed.
root = alibre.Root
session = root.TopmostSession
session.SessionType
type(session)
CurrentAssembly() - Satisfy the type/object required by AlibreX when using types/objects from Alibre Script
If you have multiple assemblies open you'll need logic to pick the one you want.
root = alibre.Root
session = root.TopmostSession
session.SessionType
type(session)
CurrentAssembly() - Satisfy the type/object required by AlibreX when using types/objects from Alibre Script
If you have multiple assemblies open you'll need logic to pick the one you want.