SelectionEvent in Sketch Environment

SelectionEvent in Sketch Environment

wolfgang_nickl
Advocate Advocate
593件の閲覧回数
3件の返信
メッセージ1/4

SelectionEvent in Sketch Environment

wolfgang_nickl
Advocate
Advocate

Hello together,


I want to make a special selection Filter for Edges.
For this I took the SDK-Example 'Basic Selection Using Interaction Events', which works on faces. The selection works when I open a new sketch. When I'm editing an existing sketch, it doesn't work. How can I use selection filters inside the sketch envirenment to select edges and faces when I'am editing an existing sketch?

 

I'am using Inventor Build: 227, 2018.2.3.

 

Best Regards
Wolfgang

 

0 件のいいね
594件の閲覧回数
3件の返信
返信 (3)
メッセージ2/4

chandra.shekar.g
Autodesk Support
Autodesk Support

Hello @wolfgang_nickl,

 

Can you please provide sample source code to test?

 

Please make sure that files are non confidential.

 

Thanks and regards,


CHANDRA SHEKAR G
Developer Advocate
Autodesk Developer Network



0 件のいいね
メッセージ3/4

wolfgang_nickl
Advocate
Advocate

Hello Chandra,
attached you will find a IPT, the Classmodul and the Basic Sub.
When you open the IPT and edit Sketch 'Skizze3' and start TestSelection it works.
If you make a new Sketch it also works. But if you edit Sketch 'Skizze2' it doesn't work.
I know the Face selection makes no sence but I have made a Window selection to select edge.
Because the code is complex I showed it with the example of VBA doc.

Best Regards
Wolfgang

0 件のいいね
メッセージ4/4

chandra.shekar.g
Autodesk Support
Autodesk Support

Hello @wolfgang_nickl,

 

Selection of face works in last sketch of a document (Sketch above the "End of Part"). Selection of face is disabled in other sketches. This is limitation of Inventor. You can log this wish list at idea station using below link.

 

https://forums.autodesk.com/t5/inventor-ideas/idb-p/v1232/tab/most-recent

 

Thanks and regards,


CHANDRA SHEKAR G
Developer Advocate
Autodesk Developer Network



0 件のいいね