JustSelectedEntities 64 bit

JustSelectedEntities 64 bit

Anonymous
Not applicable
455 Views
3 Replies
Message 1 of 4

JustSelectedEntities 64 bit

Anonymous
Not applicable

64 bit Inventor hangs at the line below which runs OK in 32 bit. Is there something missing?

 

If TypeOf JustSelectedEntities.Item(1) Is DrawingView Then

 

 

0 Likes
456 Views
3 Replies
Replies (3)
Message 2 of 4

scottmoyse
Mentor
Mentor

any help on this one please? we really could do with it asap. our programmer is about to leave for a 3 month sejourn (lucky ba****d) and this will seriously hold us up on the 64 bit transition.


Scott Moyse
Did you find this post helpful? Feel free to Like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.


EESignature


RevOps Strategy Manager at Toolpath. New Zealand based.

Co-founder of the Grumpy Sloth full aluminium billet mechanical keyboard project

0 Likes
Message 3 of 4

Anonymous
Not applicable

It is hard to say without seeing the error or exactly what is happening.  Are you sure you have the filter set up right to select drawingviews?  But even then it shouldn't hang.....

 

I use this in one of my addins with no problems

 

          Dim oView As DrawingView
            If TypeOf JustSelectedEntities(1) Is DrawingView Then
                ' Set a reference to the selected View
                oView = JustSelectedEntities(1)

0 Likes
Message 4 of 4

Anonymous
Not applicable

Thanks for the help it pointed me in the right direction.

 

The dim for oView was global within the module and does not work in 64bit, making it function specific cured the problem.

0 Likes