THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 05/05/2009 at 15:47, xxxxxxxx wrote:
User Information:
Cinema 4D Version: r11
Platform:
Language(s) : C++ ;
---------
hi there,
again i face a problem not able to solve..
i have a link field in my gui which i use this way:
> `
\> BaseObject *profile = (BaseObject* )(bc->GetLink(VIRAL_PROFILE,op->GetDocument()));
\>
`
and want to use it later on for a sweep nurbs:
> `
\> if (profile)
\> {
\> op = (BaseObject* )(profile->GetClone(0, NULL));//BaseObject::Alloc(profile->GetType());
\> }
\> op->InsertUnderLast(sweep);
\>
`
but it doesnt work. if i use the commented (...GetType) at least the Type of Object is created and inserted, but of course not its settings (like radius, etc)
how do i use the linked object correctly in this case?
thanks for your help