cancel
Showing results for 
Search instead for 
Did you mean: 
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.

ptc-3191571
1-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?


This thread is inactive and closed by the PTC Community Management Team. If you would like to provide a reply and re-open this thread, please notify the moderator and reference the thread. You may also use "Start a topic" button to ask a new question. Please be sure to include what version of the PTC product you are using so another community member knowledgeable about your version may be able to assist.
6 REPLIES 6

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

Rahul,
Use ProModelitemHide() and ProModelitemUnhide().

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

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


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.

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
> [

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

Regards, Domenic
Announcements