.NET
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Is there a way around late binding if using ActiveX/COM?

1 REPLY 1
Reply
Message 1 of 2
raulpa
276 Views, 1 Reply

Is there a way around late binding if using ActiveX/COM?

Since the ActiveX/COM interface was designed to return array values as Variants (treated as Objects in VB.Net), does that imply that I have not choice, but to use late binding if I want to use any of the returned array values? Is there any other way to get those returned array values without having to use late binding?

Thanks in advance for your help,

Raul
1 REPLY 1
Message 2 of 2
FRFR1426
in reply to: raulpa

What's the problem with that? You get the array as an object and you can use it like a regular array (get the bounds, iterate on it...):

 

 

Dim attributes = br.GetAttributes()
Console.WriteLine(UBound(attributes)) For Each attributeObj as AcadAttributeReference In attributes Console.WriteLine(attributeObj.TagString) Next

 

 

 

Maxence DELANNOY
Manager
Add-ins development for Autodesk software products
http://wiip.fr

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk DevCon in Munich May 28-29th


Autodesk Design & Make Report

”Boost