The interactive "Hide Object" functionality only hides objects temporarily to get the out of the way for modelling purposes.
If I guess correctly, you want a way to permanently hide the graphics of an object.
Interactively, this can either be done in the 3D properties dialog with the visible flags in the list of graphic groups or in the context menu of the graphic groups in the graphic structure dialog of an object.
The SimTalk counterparts for this are the method <obj>._3D.hideGraphicGroup(<graphicGroupName>) and the attribute <obj>._3D.VisibleGraphics.
To hide all graphic groups of an object, set <obj>._3D.VisibleGraphics := makeArray();
The ideal way depends on your application:
Thank you for your answer Peter I have used the command you posted and they work well with objects like Single Proc or Assembly, but when I tried to use them with methods in order to hide their icons in the 3D view I don't know why but the methods are runned. Do you know how to hide the icons of the methods in 3D or what I am doing bad?
By default, methods are called when they are referenced to in a method.
To avoid this and just reference the method, you use ref() in SimTalk 1.0 or & in SimTalk 2.0.
In your case, instead of the call
.Models.Frame.Reasignar_tareas1._3D.VisibleGraphics := ... ,
you would need
ref(.Models.Frame.Reasignar_tareas1)._3D.VisibleGraphics := ... .
(SimTalk 2.0: .Models.Frame.&Reasignar_tareas._3D.VisibleGraphics := ...)