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

Community Tip - If community subscription notifications are filling up your inbox you can set up a daily digest and get all your notifications in a single email. X

In main assembly Part ID is not available in proprogram

AS_8639795
7-Bedrock

In main assembly Part ID is not available in proprogram

Hi,

 

Please can anyone help me.

 

I have developed a main assembly model with number of sub assembly and parts.

 

Sub assembly ID is available in main assembly pro-program, but part ID is not available in main assembly proprogram.

 

Can you please help me to find part ID in main assembly pro-program to continue the relations.

 

Thank you.

ACCEPTED SOLUTION

Accepted Solutions


@AS_8639795 wrote:

Hi  MartinHanak,

 

Please find attached main assembly model and pls given a solution to find a PART ID in proprogram or 

Is there any other possibility for the below conditions?

Need to unhide a coil end plate in main assembly with parametric commend are given "YES"  and hide when parametric comments are given "NO" for a particular component or part.

 

Thank you.


Hi,

download modified data and test them:

  • open blower_motor_asm.asm
  • set PLATES_AVAILABLE parameter value to NO
  • regenerate
  • plates are suppressed

 

Modification description:

 

modification no.1 ... eva_coil_4d_lhs.asm ... pro/program
INPUT
PLATES_AVAILABLE YES_NO
END INPUT
...
IF PLATES_AVAILABLE == YES
ADD PART COIL_TOP_ENDPLATE
INTERNAL COMPONENT ID 814
PARENTS = 40(#5) 121(#7)
END ADD

ADD PART COIL_BTM_ENDPLATE
INTERNAL COMPONENT ID 817
PARENTS = 40(#5)
END ADD
END IF

 

modification no.2 ... open blower_motor_asm.asm ... pro/program
...
EXECUTE ASSEMBLY EVA_COIL_4D_LHS
PLATES_AVAILABLE = PLATES_AVAILABLE
END EXECUTE

 

Also please read http://support.ptc.com/help/creo/creo_pma/usascii/index.html#page/fundamentals%2Fprogram%2FSpecifying_Part_to_Execute_in_an_Assem_Program.html%23 document

 


Martin Hanák

View solution in original post

7 REPLIES 7

I'm not a user of Pro/Program, but I do use relations often. To get the session ID of a subcomponent (.asm or .prt) I go to

 

Tools -> Relations

 

Then in the relations dialog window, go to

 

Show -> Session ID

 

Now you can get the ID for whatever interests you.

The Session IDs are odd numbers (1, 3, 5,...) for assemblies, even (2, 4, 6,...) for parts. As their name suggests, they change from session to session, but Creo, in some obscure way, handles this for you, so if you have a reference to a part that is something like "VALUE:4" and the next time that assembly is loaded the same part has session ID 12, the relations are automatically updated so it now says "VALUE:12".

 

I don't know if the same behavior exists in Pro/Program. Hopefully it is.

 

Thank you for your response KenFarley.

Unable to find part ID in main assembly proprogram.

 

Is there any other possibility for the below conditions?

Need to unhide a part in main assembly with parametric commend are given "YES"  and hide when parametric comments are given "NO" for a particular component or part.

 

Have tried with proprogram to hide and unhide a subassembly in main assembly. Though subassembly ID is available in main assembly proprogram. but part ID is not available in main assembly proprogram.


@AS_8639795 wrote:

Thank you for your response KenFarley.

Unable to find part ID in main assembly proprogram.

 

Is there any other possibility for the below conditions?

Need to unhide a part in main assembly with parametric commend are given "YES"  and hide when parametric comments are given "NO" for a particular component or part.

 

Have tried with proprogram to hide and unhide a subassembly in main assembly. Though subassembly ID is available in main assembly proprogram. but part ID is not available in main assembly proprogram.


Hi,

please build simple testing assembly, put its files into zip-file and upload this zip-file. Also describe what part do you need to hide.


Martin Hanák

Hi  MartinHanak,

 

Please find attached main assembly model and pls given a solution to find a PART ID in proprogram or 

Is there any other possibility for the below conditions?

Need to unhide a coil end plate in main assembly with parametric commend are given "YES"  and hide when parametric comments are given "NO" for a particular component or part.

 

Thank you.


@AS_8639795 wrote:

Hi  MartinHanak,

 

Please find attached main assembly model and pls given a solution to find a PART ID in proprogram or 

Is there any other possibility for the below conditions?

Need to unhide a coil end plate in main assembly with parametric commend are given "YES"  and hide when parametric comments are given "NO" for a particular component or part.

 

Thank you.


Hi,

download modified data and test them:

  • open blower_motor_asm.asm
  • set PLATES_AVAILABLE parameter value to NO
  • regenerate
  • plates are suppressed

 

Modification description:

 

modification no.1 ... eva_coil_4d_lhs.asm ... pro/program
INPUT
PLATES_AVAILABLE YES_NO
END INPUT
...
IF PLATES_AVAILABLE == YES
ADD PART COIL_TOP_ENDPLATE
INTERNAL COMPONENT ID 814
PARENTS = 40(#5) 121(#7)
END ADD

ADD PART COIL_BTM_ENDPLATE
INTERNAL COMPONENT ID 817
PARENTS = 40(#5)
END ADD
END IF

 

modification no.2 ... open blower_motor_asm.asm ... pro/program
...
EXECUTE ASSEMBLY EVA_COIL_4D_LHS
PLATES_AVAILABLE = PLATES_AVAILABLE
END EXECUTE

 

Also please read http://support.ptc.com/help/creo/creo_pma/usascii/index.html#page/fundamentals%2Fprogram%2FSpecifying_Part_to_Execute_in_an_Assem_Program.html%23 document

 


Martin Hanák

Hi,

 

Thank you for your support.

 

Getting error in modification no, 1# proprogram. 

 

Can you pls explain and execute modification no. 1# in the same model.

 

modification no.1 ... eva_coil_4d_lhs.asm ... pro/program
INPUT
PLATES_AVAILABLE YES_NO
END INPUT
...
IF PLATES_AVAILABLE == YES
ADD PART COIL_TOP_ENDPLATE
INTERNAL COMPONENT ID 814
PARENTS = 40(#5) 121(#7)
END ADD

ADD PART COIL_BTM_ENDPLATE
INTERNAL COMPONENT ID 817
PARENTS = 40(#5)
END ADD
END IF

 

Thank you.


@AS_8639795 wrote:

Hi,

 

Thank you for your support.

 

Getting error in modification no, 1# proprogram. 

 

Can you pls explain and execute modification no. 1# in the same model.

 

modification no.1 ... eva_coil_4d_lhs.asm ... pro/program
INPUT
PLATES_AVAILABLE YES_NO
END INPUT
...
IF PLATES_AVAILABLE == YES
ADD PART COIL_TOP_ENDPLATE
INTERNAL COMPONENT ID 814
PARENTS = 40(#5) 121(#7)
END ADD

ADD PART COIL_BTM_ENDPLATE
INTERNAL COMPONENT ID 817
PARENTS = 40(#5)
END ADD
END IF

 

Thank you.


Hi,

I modified your source data once again. It's up to you to investigate them and understand them.


Martin Hanák
Announcements
NEW Creo+ Topics: Real-time Collaboration


Top Tags