Sorry, I was not clear, obvipusly
When I select objects I want to remember the selection. But do not have them selected.
Or maybe I was clear only did not understand the answer.
My problem is basically also a problem that makes so many people mad. That is reverting assemblies to Master DVR on turning visibility on.
So I want a plug-in to fix this.
Plan is as follows:
1) I need basics of inventor API. Already have some VB basic knowledge, bud have no inventor API experience, so have basic problems with it.
2) once assembly is opened catch when component if being turned off.
3) remember reference to this component, write its DVR it is being displayed in given DVR of top level. (this may be small problem as I do not know if there is "beforeVisibilityOff" event for the component. If not than component will be turned off by plug-in.)
4) if any other component is turned off add to the list.
5) Once component is being turned on check if it is on the list if yes then:
6) check if any component in any depth of this component is on -> this means it is to be non associetive
7) If associative set representation to what it was before it was off and remove from the list
8) if not associative bring up dialogue with options witch DVR of the component is to be used
9) after user selects, set this representation and override any sub component that was on while top level component was off.
So that's the plan.
Currently I have a plan and gathering info. What I need:
1) plug-in template (but that's not the most important at the moment)
2) understand how to save reference to component so not to loose it in case it is renamed, copied, demoted, moved to a folder, deleted (than of course it is lost, but I do not want exception later on), replaced
Cris.
Cris,
https://simply.engineering