cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Set datum show/hide status using ProToolkit.

Highlighted
Newbie

Set datum show/hide status using ProToolkit.

Anybody here is aware of a way or API to control show/hide status of dayum planes/axes in ProE WF 5.0 M060?

6 REPLIES 6

Set datum show/hide status using ProToolkit.

Simply get the status of the config.pro options (display_axes,
display_points and so on). Their current status is being changed (true or
false) when the user presses the icons in the menu bar.



Andreas

Set datum show/hide status using ProToolkit.

Rahul,
Use ProModelitemHide() and ProModelitemUnhide().

Patrick Williams | Engineering Systems | o: 616.698.3766 | c: 616.947.2110
[cid:image001.jpg@01CC689F.AE518A90]

RE: Set datum show/hide status using ProToolkit.

Does anyone know if the ProModelitemIsHidden API works in WF4? It is not giving me correct results.


I am traversing through all the layers (ProMdlLayersCollect) and need to keep track of layer names and if each layer is hidden. No problems getting the layer names (ProModelitemNameGet), but when I added the hidden status check (ProModelitemIsHidden), it does nothing. The return data is PRO_B_FALSE for all layers and the return code is PRO_TK_NO_ERROR. Most of my layers ARE hidden.


Has this happened for anyone else?


Thanks,


Sharon


RE: Set datum show/hide status using ProToolkit.

In Reply to Sharon Barber:



Does anyone know if the ProModelitemIsHidden API works in WF4? It is not giving me correct results.


I am traversing through all the layers (ProMdlLayersCollect) and need to keep track of layer names and if each layer is hidden. No problems getting the layer names (ProModelitemNameGet), but when I added the hidden status check (ProModelitemIsHidden), it does nothing. The return data is PRO_B_FALSE for all layers and the return code is PRO_TK_NO_ERROR. Most of my layers ARE hidden.


Has this happened for anyone else?


Thanks,


Sharon





I had some luck with ProLayerDisplayStatusGet, but I'm not sure if your traversal supports this approach.

Set datum show/hide status using ProToolkit.

The HIDDEN status is different from the layer status.
Items/Features are hidden if the user hides an element/item by clicking with the
right mouse button on the item in the model tree or graphics window and select
"hide" or "unhide".
The layer status is an additional setting and Tookit can read the layer status
(shown or blanked). And you can check which elements are on the layer.

So with ProModelitemIsHidden you cannot check if a layer is blanked=hidden.

Andreas


Sean Geggie <sean@luxion.com> hat am 5. September 2011 um 10:18 geschrieben:


> In Reply to Sharon Barber:
>
> > Does anyone know if theProModelitemIsHiddenAPI works in WF4? It is not
> > giving me correct results.
> > I am traversing through all the layers (ProMdlLayersCollect) and need to
> > keep track of layer names and if each layer is hidden. No problems getting
> > the layer names (ProModelitemNameGet), but when I added the hidden status
> > check (ProModelitemIsHidden), it does nothing. The return data is
> > PRO_B_FALSE for all layers and the return code is PRO_TK_NO_ERROR. Most of
> > my layers ARE hidden.
> > Has this happened for anyone else?
> > Thanks,
> > Sharon
> >
> >

> I had some luck with ProLayerDisplayStatusGet, but I'm not sure if your
> traversal supports this approach.
>
>
> Site Links:View post online
> [

AW: Set datum show/hide status using ProToolkit.

Why don't you use the functions ProLayerDisplaystatusGet and ProLayerDisplaystatusSet?

Regards, Domenic