Question
ProCableCosmeticFeatureCreate()
Hello,
Has anyone experience using the ProCableCosmeticFeatureCreate() function in Pro Toolkit?
cable.ParentAsm.ProAssemblyHandle = a assembly that holds an existing cable.
cable.ProCableHandle = a cable inside a harness
Running:
ProCablelocation* proCableLocations;
ProFeature cosmeticCable;
ProSelection selection;
ProCableLocationsCollect(cable.ParentAsm.ProAssemblyHandle, &cable.ProCableHandle, &proCableLocations);
ProSelectionAlloc(NULL, proCableLocations, &selection);
ProCableCosmeticFeatureCreate(ProCableCosmeticType::PRO_CABLECOSMTYPE_TAPE, selection, L"TapeBundle", L"TapeSpool", &cosmeticCable);
I'm getting this error:
| PRO_TK_INVALID_TYPE | The type of the reference selection is not valid for the type of cosmetic feature to be created. |
I've tried different combinations but cant get it to work.
