Your Products have been synced, click here to refresh
For the icon on use this
' Set Show Ids Item 1 = ICON
retval = DmisCommand.SetToggleString (1, SHOW_IDS, 1)
For the icon off use this
' Set Show Ids Item 1 =
retval = DmisCommand.SetToggleString (6, SHOW_IDS, 1)
Why it's '6' I have no idea.
Handy little trick for this type thing btw.
1) Get notepad++ (if you haven't yet)
2) From plugins menu select Plugins Admin and search for and install 'Compare'
3) From PCDMIS export the .bas with the option in question set one way, and then the other
4) Open both files in notepad++ and from the plugins menu select compare, then compare
For the icon on use this
' Set Show Ids Item 1 = ICON
retval = DmisCommand.SetToggleString (1, SHOW_IDS, 1)
For the icon off use this
' Set Show Ids Item 1 =
retval = DmisCommand.SetToggleString (6, SHOW_IDS, 1)
Why it's '6' I have no idea.
Handy little trick for this type thing btw.
1) Get notepad++ (if you haven't yet)
2) From plugins menu select Plugins Admin and search for and install 'Compare'
3) From PCDMIS export the .bas with the option in question set one way, and then the other
4) Open both files in notepad++ and from the plugins menu select compare, then compare
DmisCommand.SetToggleString (6, SHOW_IDS, 3)
Sub Main Dim DmisApp As Object Dim DmisPart As Object Dim DmisCommands As Object Dim DmisCommand As Object Set DmisApp = CreateObject("PCDLRN.Application") Set DmisPart = DmisApp.ActivePartProgram Set DmisCommands = DmisPart.Commands CommandCount = DmisCommands.Count Set DmisCommand = DmisCommands.Item(CommandCount) DmisCommands.InsertionPointAfter DmisCommand Set DmisCommand = DmisCommands.Add(DIMENSION_INFORMATION, True) DmisCommand.Marked = True retval = DmisCommand.PutText ("LOC1", REF_ID, 0) retval = DmisCommand.SetToggleString (6, SHOW_IDS, 3) retval = DmisCommand.SetToggleString (0, SHOW_IDS, 1) retval = DmisCommand.SetToggleString (0, SHOW_IDS, 2) retval = DmisCommand.SetToggleString (1, SHOW_HEADINGS, 0) retval = DmisCommand.SetToggleString (1, GRAPH_OPTION, 0) retval = DmisCommand.SetToggleString (4, DIM_INFO_ORDER, 1) retval = DmisCommand.SetToggleString (14, DIM_INFO_LOC, 1) End Sub
© 2024 Hexagon AB and/or its subsidiaries. | Privacy Policy | Cloud Services Agreement |