Skip to content

Commit e756da2

Browse files
authored
Merge pull request #3133 from sweco-beb283/feature/expose_command_control_id
Exposed Command Control Id in Session Manager
2 parents 240e9e1 + e37101d commit e756da2

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

pyrevitlib/pyrevit/loader/sessionmgr.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -512,6 +512,10 @@ def extension(self):
512512
def unique_id(self):
513513
return getattr(self._extcmd.ScriptData, 'CommandUniqueId', None)
514514

515+
@property
516+
def control_id(self):
517+
return getattr(self._extcmd.ScriptData, 'CommandControlId', None)
518+
515519
def is_available(self, category_set, zerodoc=False):
516520
if self._extcmd_availtype:
517521
return self._extcmd_avail.IsCommandAvailable(HOST_APP.uiapp,

0 commit comments

Comments
 (0)