AnsweredAssumed Answered

what is Error     (CS1752     Interop type 'PointClass' cannot be embedded. Use the applicable interface instead.)     

Question asked by hmohamed_collin on Jun 22, 2017
Latest reply on Jun 27, 2017 by hmohamed_collin

I am trying to update my Addin  from ArcObject 10.3 to 10.5 using VS2015  .net 5.2 Frame work  but I am getting  Error

CS1752:  CS1752 Interop type 'PointClass' cannot be embedded. Use the applicable interface instead.)

 // Get selected line segments end points
pPolyline = pFeature.Shape as IPolyline;
IPoint pOutPoint = new PointClass();
// Convert screen coordinates to Map coordinates
//pPoint = ;
pMxApp = pApp as IMxApplication;
pPoint = pMxApp.Display.DisplayTransformation.ToMapPoint(X, Y); 

 

and same Error here as  Well.

//Get normal
ILine pTangent = new LineClass();
pPolyline.QueryTangent(esriSegmentExtension.esriExtendTangentAtFrom, FromDist, false, 100.0, pTangent);

 

I do appreciate any help or hint

Husham

Outcomes