Page tree
Skip to end of metadata
Go to start of metadata

It is possible to use the "Partial Load" feature with other CAD integrations.


Disclaimer

Before use, clear the session directory to preserve the selection in the assembly window.  

Configuration

The function for partial loading is called fnc.doc.open.by.load.scenario(...) and needs to be configured. 

Likewise, the viewer can provide assistance. For this, the function, fnc.transfer.viewer.selection.to.comp.load.state must be configured. 

In the load_scenarios.xml, make your adjustments under

         <document_load_scenario>

Example:

<document_load_scenario>
 <document_load_scenario>  

	<name>AsDisplayedSzenario2</name>
	<description>As displayed with szenario</description>
	<application_type>UGS</application_type>
  
	<bod_explosion>
		<explosion_scenario>AS_DISPLAYED</explosion_scenario>
		<workset>marked</workset>
	</bod_explosion>
        
	<parthandler>
		<head>openDisplay</head> 
		<component>openQuiet</component>
	</parthandler> 
	
	<application>
		<option>
			<name>components</name>
			<value>FALSE</value>
		</option>
		<option>
			<name>compSettings</name>
			<value>NONE</value>
		</option>
	</application>
  
</document_load_scenario> 


As explosion scenario (<explosion_scenario>), AS_DISPLAYED is used. 

Workset section (<workset>): The section is optional, used only in connection with the AS_DISPLAYED scenario, and defines components to be loaded. Currently, two values (all  and  marked) are supported. If marked is set, only marked components are transferred. When the workset is not defined, all is used as a default value.

Parthandler section (<parthandler>): The section is optional, used only in connection with the AS_DISPLAYED scenario and defines a mode for the head and the components. If the PartHandler section is not defined or incomplete, openDisplay is used as a default value for the head. 

Menu entry and dictionary

The function needs to be added to the context menu of the respective DType.

Example:

menu.guidef
+  om.popup.menu.DOC.NXM    = ? DOC_GENERAL
                            = fnc.doc.open.by.load.scenario(AsDisplayedSzenario2)
                            ...

A description for the new menu entry has to be added in an SAP ECTR dictionary:

dictionary.txt
...
fnc.doc.open.by.load.scenario(AsDisplayedSzenario2) = Open with scenario 'partial load'
...

 Usage

Selection from viewer

Goal

Partially load assembly in CAD authoring system via selection in 3D viewer

Guide

  • Open the assembly window and drag&drop the respective assembly to the assembly window.
  • Select the first level of the assembly.
  • To open the assembly in the viewing window, click the eye symbol.
  • The viewing window opens. 
  • Select the parts you wish to select in the viewing window. 
  • To select the parts you selected in the viewing window automatically in the assembly window, click the icon "Set checkboxes in assembly window".
  • The parts are now selected in the assembly window.
  • In order to only load and display the selected parts in the CAD authoring system, click the icon "Open document for partial loading" in the assembly window. 

Selection from assembly window 

Goal

Partially load assembly in CAD authoring system via selection in assembly window

Guide

  • Open the assembly window and drag&drop the respective assembly to the assembly window.
  • Select your assembly parts.
  • In order to only load and display the selected parts in the CAD authoring system, click the icon "Open document for partial loading" in the assembly window. 
  • No labels