AutoCAD Architecture Customization

AutoCAD Architecture Customization

Posts: 15
Registered: ‎01-17-2007
Message 1 of 1 (254 Views)

Cannot embed interop type

254 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

Post to the Community

Have questions about Autodesk products? Ask the community.

New Post
Do you have 60 seconds to spare? The Autodesk Community Team is revamping our site ranking system and we want your feedback! Please click here to launch the 5 question survey. As always your input is greatly appreciated.