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

Community Tip - Want the oppurtunity to discuss enhancements to PTC products? Join a working group! X

Simprepdataitem Question

pwilliams-3
11-Garnet

Simprepdataitem Question

All,
I have an assembly in session with a simprep activated. I want to get the
data for this simp rep and exclude the top-level assembly. I have already
iterated through the ProSimprepdata->items array and it does not contain
the top-level assembly. How do I set the simprep action for the top-level
assembly of an existing simprep using Pro/TOOLKIT? Do I set the default
action? Will that work for existing items or only with newly added items?

PATRICK S WILLIAMS
Information Technology
Mechanical Engr Solutions
Missile Systems
Raytheon Company

+1 520.545.6995 (office)
+1 520.446.0244 (pager)
+1 520.545.6399 (fax)
-

6221 S Palo Verde Rd
Tucson, AZ 85706-5093 USA
www.raytheon.com

Follow Raytheon On




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.
1 REPLY 1
FV
17-Peridot
17-Peridot
(To:pwilliams-3)

Hi all,


Patrick,


If the simprepdataitem was not presentit would mean that the default simprep action is in effect (ProSimprepdataDfltGet to get it).


The process of adding the top level assembly to the array of simprep items is no different then adding any component to it - initialize ProAsmcomppath, add the asmcomppath to simprepitem, set the explicit simprepitem action, add simprepitem to the array, set new data for simprep.


Beware that the explicitly setting an action which would be different from default simprep action for the top level assemblywill affect all implicit actions for every component of theassembly, very messy situation.


One of the workarounds is to get an array of all active (visible) components with ProAsmcompVisible get, rebuild simprep to explicitly contain those components with PRO_SIMPREP_INCLUDE action and set default action of the simprep to PRO_SIMPREP_EXCLUDE. You may have to deal with the situation when a subassembly and some or all of the subassembly's components would be visible - have to decide how to handle part components- implicitly or explicitly.


HIH.


FV.





In Reply to Patrick Williams:


All,
I have an assembly in session with a simprep activated. I want to get the
data for this simp rep and exclude the top-level assembly. I have already
iterated through the ProSimprepdata->items array and it does not contain
the top-level assembly. How do I set the simprep action for the top-level
assembly of an existing simprep using Pro/TOOLKIT? Do I set the default
action? Will that work for existing items or only with newly added items?

PATRICK S WILLIAMS
Information Technology
Mechanical Engr Solutions
Missile Systems
Raytheon Company

+1 520.545.6995 (office)
+1 520.446.0244 (pager)
+1 520.545.6399 (fax)
-

6221 S Palo Verde Rd
Tucson, AZ 85706-5093 USA
www.raytheon.com

Follow Raytheon On




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.