ProjectRefPlane issue C#

Valued Contributor
Valued Contributor

using the community and interop .dll's I get an error with the projectrefplane method

 

SolidEdgeFrameworkSupport.Line2d oRefPlaneLine1 = null;

.

.

.

.

.

oRefPlaneLine1 = oProfile.ProjectRefPlane(oRefPlanes.Item(1));

 

cannot convert type object to solidedgeframeworksupport.line2d, and explicit conversion exists. did you miss a cast?

 

Any Ideas?

Bob Reinkemeyer
CAD Integration developer
Martin Sprocket and Gear Inc.
1 REPLY

Re: ProjectRefPlane issue C#

Valued Contributor
Valued Contributor
Ok, here was the fix.

SolidEdgeFrameworkSupport.Line2d oRefPlaneLine1 = null;

became

object oRefplaneline1=null

simple fix.
Bob Reinkemeyer
CAD Integration developer
Martin Sprocket and Gear Inc.