This might help with turning off all work geometry. It basically just executes the Object Visibility command you would execute via the Inventor GUI. I haven't seen anything built into Intent to do this.
{code}
Method ToggleObjectVisibility() As Boolean
Dim iv As Any = Autodesk.Intent.IntentAPI.Instance.HostAPI.HostApplication
Dim oCtrlDef As Any
oCtrlDef = iv.CommandManager.ControlDefinitions.get_Item("AppAllWorkfeaturesCmd")
oCtrlDef.Execute()
Return oCtrlDef.Pressed
End Method
{code}
The second question again would likely require .net code inside Intent.
--Farren
************************************************************************************
If this post helps, please click the "thumbs up" to give kudos
If this post answers your question, please click "Accept as Solution"
************************************************************************************