SelectEvents.OnSelect not fired with kSketchProfileFilter in an assembly

SelectEvents.OnSelect not fired with kSketchProfileFilter in an assembly

stefanome
Collaborator Collaborator
338 Views
1 Reply
Message 1 of 2

SelectEvents.OnSelect not fired with kSketchProfileFilter in an assembly

stefanome
Collaborator
Collaborator

If I open a part and I run my addin the InteractionEvents object allows me to select any type of entities, including profiles.

If I open an assembly containing the same part, enter the part editing on that part, and run my addin, all the selection filters but kSketchProfileFilter work well.

With kSketchProfileFilter when I move the mouse on an area I see the highlight, but when I click nothing happens.

When I right click, then click on Continue, InteractionEvents.OnTerminate is fired.

 

Thanks,

Stefano

0 Likes
339 Views
1 Reply
Reply (1)
Message 2 of 2

stefanome
Collaborator
Collaborator

I am afraid this is a bug of Inventor 2012.

 

I tried this from the Immediate window of VBA:

ThisApplication.CommandManager.Pick kSketchProfileFilter, "Pick a feature"

 

It works if the part is open, it says "Automation error - Invalid pointer" if the assembly is open and the part is editing.

 

Is there a workaround?

Can I ask the user for a point, then use the point to get to the profile? I wouldn't get the nice highlight, but at least it would work.

 

Thanks,

Stefano

0 Likes