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

Community Tip - Stay updated on what is happening on the PTC Community by subscribing to PTC Community Announcements. X

Example of CreateSelectionFromString

WebOfMadness
1-Newbie

Example of CreateSelectionFromString

Good Morning Folks,

 

I was hoping someone could have an example of how to use CreateSelectionFromString

 

I've tried to format the string arg several ways based on the help, but I keep getting errors. I was hoping someone could point out my flaw.

 

Attempted

"ASSEMBLY_BLANK.ASM(CSYS_DEF)"

"ASSEMBLY_BLANK.0(CSYS_DEF)"

"ASSEMBLY_BLANK.ASM(47)"

"ASSEMBLY_BLANK.0(47)"

"ASSEMBLY_BLANK.ASM(#47)"

"ASSEMBLY_BLANK.0(#47)"

"ASSEMBLY_BLANK.ASM(CSYS_DEF):"

"ASSEMBLY_BLANK.0(CSYS_DEF):"

"ASSEMBLY_BLANK.ASM(47):"

"ASSEMBLY_BLANK.0(47):"

"ASSEMBLY_BLANK.ASM(#47):"

"ASSEMBLY_BLANK.0(#47):"

 

Regards,

 

WOM

 

PS. I'm wanting to select a coordinate system called CSYS_DEF in an assembly.

1 ACCEPTED SOLUTION

Accepted Solutions

I figured out my issue, I didn't to include the /type

This seems to work

"assembly_blank.asm/feature(#47)"

Regards,

WOM

View solution in original post

1 REPLY 1

I figured out my issue, I didn't to include the /type

This seems to work

"assembly_blank.asm/feature(#47)"

Regards,

WOM

Top Tags