Mr. Bram1 Kerkhofs1 0 Report post Posted June 28, 2017 Hi there When I construct a fobjectlist which contains my own defined FeatureDef's, I can't (don't know how to) cast them to the FeatureDef when I want to retrieve the item.The name of my FeatureDef is "CurveFunctions". I tried following: fp_curvefunctions dd(MyList.at(0).CastTo( FFeature::CurveFunctions )fp_curvefunctions dd(MyList.at(0).CastTo( FCurveFunctions )fp_curvefunctions dd(MyList.at(0).CastTo( fp_CurveFunctions ) but none of them work Does anyone know what the correct way of casting is? Thanks Kind regardsBram Share this post Link to post Share on other sites
Stefan Wunderlich 6 Report post Posted June 28, 2017 Hi Bram, you have to use the typename in the first place like: FFeature::CurveFunctions dd(MyList.at(0).CastTo(FFeature::CurveFunctions) Cheers,Stefan Share this post Link to post Share on other sites
Mr. Bram1 Kerkhofs1 0 Report post Posted June 28, 2017 Hi Stefan Thanks!What is the difference between using the "fp_" prefix and the "FFeature::" ? Is it the same as when you use "point" you generate a "3DPoint" object? When do you use which one? cheersBram Share this post Link to post Share on other sites
Stefan Wunderlich 6 Report post Posted June 28, 2017 Hi Bram, using the typename (F3DPoint, FFeature::...) will create a reference (a different name and optionally a casted type) to an existing object like: point p(1,2,3)F3DPoint myRefPoint(p) // myRefPoint is p same for features:fp_... f(...)FFeature::... myRefFeature(f) Cheers,Stefan 1 Share this post Link to post Share on other sites