How to create a SplineShape

 
 
 
Posted by:MrSparkle
Data created:31 May 2010

Hi!

I wonder how I can create an object of the type ISplineShape. Seems like the corresponding method IGlobal.SplineShape.Create method is missing?

Thanks,
Christian

I tried:

object result = global.CreateInstance(SClass_ID.Shape, global.SplineShapeClassID);

...but the result object is NULL. How come?

Hi Christian,

Not sure at the moment (don't have access to the sources) but will check out why that constructor isn't exported once I do.

Marsel Khadiyev (Software Developer, EPHERE Inc.)

Hi Marsel,

thanks you for having a look. I don't know if it could be helpful but the same happens when I use the class descriptor's Create method:

object test = IGlobal.SplineShapeDescriptor.Create(loading); // Returns NULL

Christian

The constructor wasn't exported because SplineShape derives from a whole bunch of classes privately, which usually gives link errors (while it doesn't in others) so the translator ommited it. I am working on this issue now, hopefully will be all resolved and dandy by 1.2.1

Marsel Khadiyev (Software Developer, EPHERE Inc.)

Ok, this is all sorted- fixed in 1.2.1 (next build)

Marsel Khadiyev (Software Developer, EPHERE Inc.)

Wow, thank you!

When is the next build online...?

Christian

I'll try to get 1.2.1 out in next few days.

Marsel Khadiyev (Software Developer, EPHERE Inc.)

Its up for download :)

Marsel Khadiyev (Software Developer, EPHERE Inc.)