Community Tip - Did you get an answer that solved your problem? Please mark it as an Accepted Solution so others with the same problem can find the answer easily. X
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.
Solved! Go to Solution.
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.
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.
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?
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.