cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community login and other support tools will be unavailable Saturday May 3rd 9:00 am to 3:00 pm (EST) due to planned maintenance. Learn More

Translate the entire conversation x

Converting CSYS ProFeature to ProSelection

AB_10248132
3-Newcomer

Converting CSYS ProFeature to ProSelection

Hello All,

 

I have a function that create a CSYS from another CSYS. It works fine when I use the command ProSelect and use the ProSelection in the function.

 

ProError CreateCSYS(ProName name, ProMdl mdl, ProSelection CSYSREF, double tranX, double tranY, double tranZ, double rotX, double rotY, double rotZ) {}

 

Now, I'm trying to create de CSYS without asking for the selecion prompt from the user.

I'm trying to get the ProFeature of the CSYS and use the command ProFeatureSelectionGet(). But it doesn't work. I tryied many diferent ways and none worked.

 

How can I get the ProSelection of a CSYS to use in my function without asking it for the user?

 

I'm using Creo 8.0.10

ACCEPTED SOLUTION

Accepted Solutions
VIN
12-Amethyst
12-Amethyst
(To:AB_10248132)

Hi,can get the CSYS name, use API ProModelitemByNameInit(); ProSelectionAlloc(); to the ProSelection CSYSREF.

 

 

 

 

View solution in original post

2 REPLIES 2
VIN
12-Amethyst
12-Amethyst
(To:AB_10248132)

Hi,can get the CSYS name, use API ProModelitemByNameInit(); ProSelectionAlloc(); to the ProSelection CSYSREF.

 

 

 

 

AB_10248132
3-Newcomer
(To:VIN)

Thank you, I tryied this way and it worked just fine! 🙂

Announcements

Top Tags