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

Community Tip - Did you know you can set a signature that will be added to all your posts? Set it here! X

Re: Hide and show parts

JonC_16
6-Contributor

Re: Hide and show parts

As per the original post

 

HI, i have the same problem here.

if i use ProSolidFeatVisit() function to visit the assembly, how do i transfer between feature and modelitem? which value of ProSolidFeatVisit() function should be used? and do you mind share your code here, many thanks.

1 ACCEPTED SOLUTION

Accepted Solutions
RPN
17-Peridot
17-Peridot
(To:JonC_16)

Not sure if I understand your question, but you hide a feature, if you want to hide, in a subassembly, you hide a feature in this assembly and for each occurrence. If you want to toggle you need a loop, and you need an array to keep this information. 
Don’t forget this is functionality can be archived with the simmelar results if you use layer. 

View solution in original post

3 REPLIES 3
RPN
17-Peridot
17-Peridot
(To:JonC_16)

I’m not in front of my computer, but just hide the feature, and the ID in the owning assemble. Model to Modelitem is just PRO_PART, Model ID and the Model handle, but you want to hide something in an assembly or in Part. Not every feature type can be hidden, but a component and Datums for sure, else the context is wrong, because you don’t want to hide  A Part in the same Part😉 And a component ID is just the feature handle.

JonC_16
6-Contributor
(To:RPN)

thank you here, i get  it done. now i can visit all the component of an assembly and hide them.

but now i have a new problem. i want to select one or some of the part, and hide the others, i tried to use an array to get ones i select, but doesn't work, still hide all parts. do you have any ideas about this function?

RPN
17-Peridot
17-Peridot
(To:JonC_16)

Not sure if I understand your question, but you hide a feature, if you want to hide, in a subassembly, you hide a feature in this assembly and for each occurrence. If you want to toggle you need a loop, and you need an array to keep this information. 
Don’t forget this is functionality can be archived with the simmelar results if you use layer. 

Top Tags