Community Tip - Your Friends List is a way to easily have access to the community members that you interact with the most! X
Hi All,
I am working on Creo 5.0.1.0 .
I have observed that the API pfcSelection:: SetPoint() is giving wrong results,
Can anyone explain this behavior??
Solved! Go to Solution.
Hi all,
Just a guess. Could be missing UV parameters ( ProSelectionUVParamSet).
I would try the round-trip test - make a datum tag for a datum plane via UI, then write a code - select a tag, get attachments, get selection object, store all of this, delete the existing tag, create a new one with stored data and the tag should appear at the same location as the original one. If it is not happening - contact tech support
HIH.
what do you mean by wrong behavior?
What is the use case?
What were you expecting?
What was observed?
Thanks for the reply,
So here is the case,
I created the selection object as
pfcSelection_ptr selection = pfcCreateModelItemSelection(item); (Item which is surface)
then I set the desired center point to my selection object,
as selection->SetPoint(point);
then I created an Annotation (Set Datum Tag ) at this attachment(selection object),
using ProMdlSetdatumtagCreate
But in UI the created SetDatumTag is attached to a different point of selection object,
Hi all,
Just a guess. Could be missing UV parameters ( ProSelectionUVParamSet).
I would try the round-trip test - make a datum tag for a datum plane via UI, then write a code - select a tag, get attachments, get selection object, store all of this, delete the existing tag, create a new one with stored data and the tag should appear at the same location as the original one. If it is not happening - contact tech support
HIH.
Hi,
Thank you for the solution,
After setting The UV parameters in the selection object the Tag can be set at the Correct Location.