Create XForm for wavelink

Hi,

I am trying to create xform to create wavelink. Code is written below:
workPart.Xforms.CreateXform(@nXObject1, SmartObject.UpdateOption.WithinModeling);
Where NXObject nXObject1 = waveLinkBuilder1.Commit();
so this nXObject1 contains a Coordinate System.

But while executing this line I get error saying that : "Association to this object is not supported."

P.S. This xform will be used for creating offsetted coordinate system:
workPart.CoordinateSystems.CreateCoordinateSystem(xform1,
NXOpen.SmartObject.UpdateOption.WithinModeling);

Regards,
Ankita

I suggest recording a journal while creating a wavelink to get some working code, then generalize it to your situation.

Hi, The code for the above problem is pretty straight forward as mentioned
workPart.Xforms.CreateXform(@nXObject1, SmartObject.UpdateOption.WithinModeling); Where NXObject nXObject1 = waveLinkBuilder1.Commit();
And error was because I was using attributes which were not part of same component where it is creating wavelink.
Regards.

~ Ankita

Life is beautiful. :)