0
0
Solidworksbi_tool~10 mins

CommandManager and toolbars in Solidworks - Interactive Code Practice

Choose your learning style9 modes available
Practice - 5 Tasks
Answer the questions below
1fill in blank
easy

Complete the code to activate the CommandManager in SolidWorks.

Solidworks
swApp.[1].ActivateCommandManager()
Drag options to blanks, or click blank then click option'
AFeatureManager
BToolbars
CCommandManager
DPropertyManager
Attempts:
3 left
💡 Hint
Common Mistakes
Using Toolbars instead of CommandManager
Confusing with FeatureManager
2fill in blank
medium

Complete the code to show a specific toolbar named 'Sketch' in SolidWorks.

Solidworks
swApp.Toolbars.[1]("Sketch").Visible = True
Drag options to blanks, or click blank then click option'
AShowToolbar
BFindToolbar
CGetToolbarByName
DItem
Attempts:
3 left
💡 Hint
Common Mistakes
Using GetToolbarByName which does not exist
Using ShowToolbar which is not a method
3fill in blank
hard

Fix the error in the code to add a new toolbar button to the CommandManager.

Solidworks
cmdMgr.[1](cmdID, "ButtonName")
Drag options to blanks, or click blank then click option'
AAddToolbarButton
BAddCommandItem
CAddButton
DAddCommand
Attempts:
3 left
💡 Hint
Common Mistakes
Using AddToolbarButton which does not exist
Using AddButton which is incorrect
4fill in blank
hard

Fill both blanks to create and show a new toolbar named 'CustomTools'.

Solidworks
Dim newToolbar = swApp.Toolbars.[1]("CustomTools")
newToolbar.[2] = True
Drag options to blanks, or click blank then click option'
AAdd
BVisible
CShow
DCreate
Attempts:
3 left
💡 Hint
Common Mistakes
Using Create instead of Add
Using Show property which does not exist
5fill in blank
hard

Fill all three blanks to remove a toolbar button by its ID and refresh the CommandManager.

Solidworks
cmdMgr.[1](buttonID)
swApp.CommandManager.[2]()
swApp.CommandManager.[3] = True
Drag options to blanks, or click blank then click option'
ARemoveCommandItem
BRebuild
CVisible
DRefresh
Attempts:
3 left
💡 Hint
Common Mistakes
Using Refresh method which does not exist
Not rebuilding after removal