Community Tip - You can change your system assigned username to something more personal in your community settings. X
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.
