AutoCAD Architecture Customization

Reply
Contributor
mike
Posts: 14
Registered: ‎01-17-2007
Message 1 of 1 (218 Views)

Cannot embed interop type

218 Views, 0 Replies
05-22-2012 01:45 PM

I have a VB 2010 Express Project.  Using ACA 2013.  i have an error that seems to be related to a file that can't be found but I can see the .dll in the location listed by the reference.  Here is sample code.

 

Imports AecXBase
Imports AecXUIArchBase
Imports AutoCAD
Imports AecXArchBase

 

Function LayerFromKey(lName As String) As String
Dim lyr As AcadLayer, lKeyStyle As AecLayerKeyStyle
lKeyStyle = getAecBaseDB.LayerKeyStyles(getLayerStandard)
lyr = lKeyStyle.GenerateLayer(lName)
LayerFromKey = lyr.Name
End Function

 

This is the error indicated on "AecLayerKeyStyle":

Error 1 Cannot embed interop type 'AecXBase.IAcadObjectEvents_Event' because the source interface 'AXDBLib.IAcadObjectEvents' referenced by its ComEventInterfaceAttribute cannot be found. C:\Users\mike.OPSIS\Documents\Visual Studio 2010\Projects\AutoCAD VB plug-in1\AutoCAD VB plug-in1\cLayer.vb 18 44 AutoCAD VB plug-in1

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