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.
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
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.
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
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.