Visual Basic Customization

Reply
Active Member
joelbrodeur1967
Posts: 6
Registered: ‎08-27-2009
Message 1 of 2 (161 Views)

Getlinks 64 bit

161 Views, 1 Replies
01-03-2012 07:15 AM

I am running 2012 64 bit on Win 7.  I have an external .exe, using VB.net, that works fine in a 32 bit environment.  However, while testing it on a 64 bit system I keep having problems with the getlinks.  Specifically:

---------------------------------------------

index is long

entityset is a selection set

objids is an array of longs    <-- I have also tried an array of objects with no luck

linkTemplate is a CAO.LinkTemplate

linkTypes is an Integer

     

For index = 0 To entitySet.Count - 1

                objIds(index) = entitySet.Item(index).ObjectID32

Next index

 

linkSel = dbConnect.GetLinks(linkTemplate, objIds, linkTypes)  <-- errors here

--------------------------------------------------​----------------------------------

If I use "entitySet.Item(index).ObjectID" my return value is something like - 8796083315392

howver if I use "entitySet.Item(index).ObjectID32" my return value is something like - 42

 

I am also having the same problem with reloadlabels.

 

I have looked on the boards and around the Net and have seen many references to this but I just have not seen much in the way of a fix.

 

Any help is greatly appreciated.

 

Thanks,

JB

ADN Support Specialist
adam.nagy
Posts: 521
Registered: ‎03-26-2007
Message 2 of 2 (138 Views)

Re: Getlinks 64 bit

01-10-2012 05:58 PM in reply to: joelbrodeur1967

Hi there,

 

Yes, it seems there are issues with GetLinks on 64 bit.

What you could do is return all the links (i.e. pass in empty parameter to the first two arguments, Type.Missing) and then iterate through the returned links and look for the ones you need.

 

I hope this helps.

 

Adam Nagy

Developer Technical Sevices



Adam Nagy
Developer Technical Services
Autodesk Developer Network

You are not logged in.

Log into access your profile, ask and answer questions, share ideas and more. Haven't signed up yet? Register

Announcements
Are you familiar with the Autodesk Expert Elites? The Expert Elite program is made up of customers that help other customers by sharing knowledge and exemplifying an engaging style of collaboration. To learn more, please visit our Expert Elite website.

Need installation help?

Start with some of our most frequented solutions to get help installing your software.

Ask the Community