Now i am working on Solidworks API. What i want to do is to modify the feature dimension. In solidworks interface, we can see that if the user want to edit the dimensions except for the depth information of the feature, the user have to access the sketch and edit the sketch to update the feature finally.
So i think it should work in the same way in Solidworks API, is it?
Now what i do is want to modify the coordinates for the sketch points of the sketch to edit the sketch. But a problem emerged, now i can access the chosen feature's sketch and read every sketch point in it. After getting the sketch point, i want to use the funciton of pSketchPoint->SetCoords(modifiedcoord, modifiedcoord, modifiedcoord, &retval); to modify its coordinates, but unfortunately it did not work, the value for retval is FALSE. don't know why. for the coordinates i read from the sketch point and the coordinates which is revalued to the sketch point are transfered between the sketch coordinates system and model system and i have checked these values which are correct. Do i need to add functions such as pModelDoc2->editsketch()...and pModelDoc2->pModelDoc->EditRebuild3 (&retval); before and after the codes to access the sketch and reset its coordinates?
thanks so much