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

Community Tip - Learn all about PTC Community Badges. Engage with PTC and see how many you can earn! X

How to hide a part in an assembly ?

AlexandreMG
13-Aquamarine

How to hide a part in an assembly ?

Hello all,

I would like to show and hide a part (in a model) when I click on a checkbox, how to do that ?

And I have the same question as before, but I was unanswered, how to play only a step in an illustrate animation ?

Thanks !

1 ACCEPTED SOLUTION

Accepted Solutions

Selected is an event and it is supposed to bind with services, besides that, you can also directly bind the value property (of checkbox) to modelItem and in the pop-up you can select invisible.

Yes it is possible to put a name on the part. Also, the drag-n-drop can be targeted to the name of the model-item in the left-panel, as shown below:

View solution in original post

12 REPLIES 12

You can drag a Model-Item on the desired part and bind the checkbox click to the Model-item's invisible property.

Let me know if that works.

-Giri

AlexandreMG
13-Aquamarine
(To:katte)

When I am on the properties of the checkbox, and I drag the "Selected" value on the model-item, only services appears, how to bind to invisibility ?

Is that possible to put a name on the part instead a drag and drop, if the part is very small, it can be hard to find it.

Selected is an event and it is supposed to bind with services, besides that, you can also directly bind the value property (of checkbox) to modelItem and in the pop-up you can select invisible.

Yes it is possible to put a name on the part. Also, the drag-n-drop can be targeted to the name of the model-item in the left-panel, as shown below:

AlexandreMG
13-Aquamarine
(To:katte)

Thank you very much ! And is that possible to do the opposite ? I mean, isolate a part.

Interesting!! I guess that should be possible. By isolate, do you mean moving the part out of the scope? If so, yes it  is possible and varies how you handle that part.

AlexandreMG
13-Aquamarine
(To:katte)

I mean, only show this specific part and hide all others parts.

mwassmann
5-Regular Member
(To:AlexandreMG)

Hej,

You will be able to do that show/hide by using a JS call.

For example: You can put the complete model invisible (without any coding) and just show the part, which has the model-item on it (e.g. by a button)...

Regarding the model-item placement:

- you can use the structure point of the part within sBom from Creo (e.g. Illustrate) and put the good value inside the occurence of the model-item.

After pressing enter it will then hookup with the good part from hierarchical point of view in the structure.

AlexandreMG
13-Aquamarine
(To:katte)

Hello, when I try to create a model item and modify manually the component occurrence to get an assembly, everything is okay. But when I scan the thingmark each model item I have created are moved and put at the wrong place. If I remove the model item in the view, everything goes back to the right place. I do nothing else, not even a action on it, I only modify the component occurrence.

Any ideas ?

In the studio :

Preview

mwassmann
5-Regular Member
(To:AlexandreMG)

Yes...

I've got the same issue... I already reported it :-).

You can manually resolve when you delete the coordinates inside the model-item (after it has moved to somewhere).

Don't set it to zero - just remove the values and press enter...

It seems to me like a bug

Martin

AlexandreMG
13-Aquamarine
(To:mwassmann)

It is does not work, even if I delete the coordinates...

mwassmann
5-Regular Member
(To:AlexandreMG)

Well that helps on my side at least - to remove the coordinates after the part has moved...

however it is a bug and I hope it's solved soon.

The bug is still there. Any changes or a workaround happened from PTC?

Top Tags