AutoCAD Architecture Customization

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

Cannot embed interop type

195 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 interested in helping shape the Autodesk Community?
We’re looking at a few different ways to improve the “All Forums” landing page and need your feedback! If interested, please take a few minutes to fill out the following Usability Study. Thank you for your time!

Need installation help?

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

Ask the Community