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

Community Tip - Learn all about the Community Ranking System, a fun gamification element of the PTC Community. X

Identify Cable/Harness Part?

pwilliams-3
11-Garnet

Identify Cable/Harness Part?

How do I identify a part as a cable/harness part? Assume I have a ProMdl
handle.

Patrick Williams
Sr. Systems Engineer II
Mechanical Engineering Solutions
Missile Systems
Raytheon Company

+1 520.545.6995 (business)
+1 520.545.6399 (fax)
-

TU/M12/8
6221 S Palo Verde Rd
Tucson, AZ 85706 USA
www.raytheon.com



This message contains information that may be confidential and privileged.
Unless you are the addressee (or authorized to receive mail for the
addressee), you should not use, copy or disclose to anyone this message or
any information contained in this message. If you have received this
message in error, please so advise the sender by reply e-mail and delete
this message. Thank you for your cooperation.

This thread is inactive and closed by the PTC Community Management Team. If you would like to provide a reply and re-open this thread, please notify the moderator and reference the thread. You may also use "Start a topic" button to ask a new question. Please be sure to include what version of the PTC product you are using so another community member knowledgeable about your version may be able to assist.
2 REPLIES 2

I would have thought the same thing. However; the type is PRO_MDL_PART
and the subtype is PROMDLSTYPE_PART_SOLID. Good try though.

ok.

Here is my current identification algorithm...
1. Get the model name and type.
2. Get a handle to the top-level assembly.
3. Call ProAssemblyHarnessesCollect.
4. Iterate though all the harnesses. For each harness get the name and
type and compare it with the name and type from step 1. If they match
then my model is a harness.

Does anyone have a better way?

Patrick Williams
Sr. Systems Engineer II
Mechanical Engineering Solutions
Missile Systems
Raytheon Company

+1 520.545.6995 (business)
+1 520.545.6399 (fax)
-

TU/M12/8
6221 S Palo Verde Rd
Tucson, AZ 85706 USA
www.raytheon.com



This message contains information that may be confidential and privileged.
Unless you are the addressee (or authorized to receive mail for the
addressee), you should not use, copy or disclose to anyone this message or
any information contained in this message. If you have received this
message in error, please so advise the sender by reply e-mail and delete
this message. Thank you for your cooperation.



jzwijsen
4-Participant
(To:pwilliams-3)

Patrick,
if the model is a part and you want to know if it is a harness part, use
the function ProHarnessCablesCollect. on that model. If the part is not a
harness, it will return PRO_TK_E_NOT_FOUND.
.... if((err=ProHarnessCablesCollect((ProHarness)
mdl,&p_cables)) != PRO_TK_E_NOT_FOUND) ....
I use this in my code to generate a bom of a cable assy for filtering out
the harness parts.
Regards,
Jan



Patrick S Williams <->
13/09/2010 21:59
Please respond to
Patrick S Williams <->


To
-
cc
Michael Fussy <->
Subject
[proecus] - RE: Identify Cable/Harness Part?







I would have thought the same thing. However; the type is PRO_MDL_PART
and the subtype is PROMDLSTYPE_PART_SOLID. Good try though.

ok.

Here is my current identification algorithm...
1. Get the model name and type.
2. Get a handle to the top-level assembly.
3. Call ProAssemblyHarnessesCollect.
4. Iterate though all the harnesses. For each harness get the name and
type and compare it with the name and type from step 1. If they match
then my model is a harness.

Does anyone have a better way?

Patrick Williams
Sr. Systems Engineer II
Mechanical Engineering Solutions
Missile Systems
Raytheon Company

+1 520.545.6995 (business)
+1 520.545.6399 (fax)
-

TU/M12/8
6221 S Palo Verde Rd
Tucson, AZ 85706 USA
www.raytheon.com



This message contains information that may be confidential and privileged.
Unless you are the addressee (or authorized to receive mail for the
addressee), you should not use, copy or disclose to anyone this message or
any information contained in this message. If you have received this
message in error, please so advise the sender by reply e-mail and delete
this message. Thank you for your cooperation.


Top Tags