<?xml version="1.0" encoding="utf-8"?>
<PROCESS Id="RDK:0001" Name="Sub_DWG2SWG" SystemProcess="True" Options="(GITSAVEMODE)" Expanded="True">
	<PROCESSPROPERTY CrUser="pmarani [ENGMARANI17R]" CrDate="2022-05-05T18:05:31" ModUser="dre [NBDELP3561-04C]" ModDate="2023-07-03T17:35:52" LanguageVersion="2014.1.3.569" />
	<GROUP Id="RDK:0002" Name="Declarations" SubType="Declarations" Expanded="True">
		<GROUP Id="RDK:0003" Name="Types" SubType="TypeSet" IncludeDate="0" />
		<GROUP Id="RDK:0004" Name="Parameters" SubType="ParameterDefs">
			<PAR_DEF Id="RDK:53778" Name="DWGFile" TypeRD="string" Direction="IN" Panel="Parameters" UseDataFile="False">
				<LABEL />
				<DESCRIPTION />
			</PAR_DEF>
			<PAR_DEF Id="RDK:53779" Name="Editor2DLibraryName" TypeRD="string" Direction="IN" Panel="Parameters" UseDataFile="False">
				<LABEL />
				<DESCRIPTION />
			</PAR_DEF>
			<PAR_DEF Id="RDK:53780" Name="SizeX" TypeRD="double" Direction="OUT" Panel="Parameters" UseDataFile="False">
				<LABEL />
				<DESCRIPTION />
			</PAR_DEF>
			<PAR_DEF Id="RDK:53782" Name="SizeY" TypeRD="double" Direction="OUT" Panel="Parameters" UseDataFile="False">
				<LABEL />
				<DESCRIPTION />
			</PAR_DEF>
			<PAR_DEF Id="RDK:53783" Name="ImageBase64" TypeRD="string" Direction="OUT" Panel="Parameters" UseDataFile="False" Suppressed="True">
				<LABEL />
				<DESCRIPTION />
			</PAR_DEF>
			<PAR_DEF Id="RDK:53805" Name="XMLFile" TypeRD="string" Direction="OUT" Panel="Parameters" UseDataFile="False" Suppressed="True">
				<LABEL />
				<DESCRIPTION />
			</PAR_DEF>
			<PAR_DEF Id="RDK:53807" Name="SVGFile" TypeRD="string" Direction="OUT" Panel="Parameters" UseDataFile="False">
				<LABEL />
				<DESCRIPTION />
			</PAR_DEF>
		</GROUP>
		<GROUP Id="RDK:0005" Name="Global Variables" SubType="VarSet" IncludeDate="0">
			<VAR Id="RDK:2064" Name="SVGFolder" Type="string" DesignTimeRemark="Generated by RD" />
			<VAR Id="RDK:2065" Name="SVGFile" Type="string" Suppressed="True" DesignTimeRemark="Generated by RD" />
			<VAR Id="RDK:2066" Name="XMLFile" Type="string" Suppressed="True" DesignTimeRemark="Generated by RD" />
			<VAR Id="RDK:2394" Name="OutputXML" Type="string" DesignTimeRemark="Generated by RD" />
			<VAR Id="RDK:2396" Name="CADXBox" Type="double[]" />
			<VAR Id="RDK:53798" Name="BB" Type="double[]" DesignTimeRemark="Generated by RD" />
			<VAR Id="RDK:53801" Name="Layers" Type="string[]" DesignTimeRemark="Generated by RD" />
			<VAR Id="RDK:53802" Name="Thumbnails" Type="string[]" DesignTimeRemark="Generated by RD" />
		</GROUP>
		<GROUP Id="RDK:0006" Name="Profiles" SubType="ProfileSet" />
		<GROUP Id="RDK:0007" Name="Functions" SubType="FunctionSet" IncludeDate="0" />
	</GROUP>
	<GROUP Id="RDK:0008" Name="Main Group" SubType="Generic" Expanded="True">
		<GROUP Id="RDK:53789" Name="DEBUG" SubType="Generic">
			<VALUECONDITION Value="true">
				<EXP><![CDATA[$=$IsDebugMode()]]></EXP>
			</VALUECONDITION>
			<VALUECONDITION Value="true">
				<EXP><![CDATA[$=$IsMainProcess()]]></EXP>
			</VALUECONDITION>
			<SET Id="RDK:53794" VarRef="DWGFile">
				<EXP><![CDATA[$=$ProcPath()+"Hallen Layouts\Faurecia Neuburg für PBU.dwg"]]></EXP>
				<PAR Name="AdvancedOptions" />
			</SET>
			<SET Id="RDK:53795" VarRef="Editor2DLibraryName">
				<EXP><![CDATA[$C$SSG]]></EXP>
				<PAR Name="AdvancedOptions" />
			</SET>
		</GROUP>
		<GROUP Id="RDK:2062" Name="Convert2SVG" SubType="Generic">
			<SET Id="RDK:2050" VarRef="SVGFolder">
				<EXP><![CDATA[$=$WebRootPath()+"Editor2D\"+Editor2DLibraryName+"\shapes\svg\"]]></EXP>
				<PAR Name="AdvancedOptions" />
			</SET>
			<SET Id="RDK:2051" VarRef="SVGFile">
				<EXP><![CDATA[$=$ChangeFolder(ChangeExt(DWGFile, "svg"), SVGFolder)]]></EXP>
				<PAR Name="AdvancedOptions" />
			</SET>
			<SET Id="RDK:2052" VarRef="XMLFile" Suppressed="True">
				<EXP><![CDATA[$=$ChangeExt(DWGFile, "xml")]]></EXP>
				<PAR Name="AdvancedOptions" />
			</SET>
			<COMMENTS Id="RDK:2053" DesignTimeRemark="CADEditorX must be installed!" />
		</GROUP>
		<GROUP Id="RDK:2059" Name="CADEditorX" SubType="Generic">
			<ACTION_CALL Id="RDK:2054" Name="RDEngineering_2DCadEditorX" DesignTimeRemark="{Cad Action} {FileName}">
				<PAR Name="RDLibraryName">
					<EXP><![CDATA[$C$RDEngineering_MISC]]></EXP>
				</PAR>
				<PAR Name="ActionType">
					<EXP><![CDATA[$C$1]]></EXP>
				</PAR>
				<PAR Name="InputXml" />
				<PAR Name="FileName">
					<EXP><![CDATA[$=$DWGFile]]></EXP>
				</PAR>
				<PAR Name="InLayers" />
				<PAR Name="OutLayers">
					<EXP><![CDATA[$V$]]></EXP>
				</PAR>
				<PAR Name="Param" />
				<PAR Name="OutputXml">
					<EXP><![CDATA[$V$OutputXML]]></EXP>
				</PAR>
				<PAR Name="Options" />
				<PAR Name="OutThumbnails">
					<EXP><![CDATA[$V$]]></EXP>
				</PAR>
				<PAR Name="OutBoundingBox">
					<EXP><![CDATA[$V$]]></EXP>
				</PAR>
			</ACTION_CALL>
			<ACTION_CALL Id="RDK:2055" Name="RDEngineering_2DCadEditorX" DesignTimeRemark="{Cad Action} {FileName}">
				<PAR Name="RDLibraryName">
					<EXP><![CDATA[$C$RDEngineering_MISC]]></EXP>
				</PAR>
				<PAR Name="ActionType">
					<EXP><![CDATA[$C$2]]></EXP>
				</PAR>
				<PAR Name="InputXml" />
				<PAR Name="FileName">
					<EXP><![CDATA[$=$SVGFile]]></EXP>
				</PAR>
				<PAR Name="InLayers" />
				<PAR Name="OutLayers">
					<EXP><![CDATA[$V$]]></EXP>
				</PAR>
				<PAR Name="Param" />
				<PAR Name="OutputXml">
					<EXP><![CDATA[$V$]]></EXP>
				</PAR>
				<PAR Name="Options" />
				<PAR Name="OutThumbnails">
					<EXP><![CDATA[$V$]]></EXP>
				</PAR>
				<PAR Name="OutBoundingBox">
					<EXP><![CDATA[$V$]]></EXP>
				</PAR>
			</ACTION_CALL>
			<GROUP Id="RDK:53803" Name="Viewbox" SubType="Generic">
				<ACTION_CALL Id="RDK:2056" Name="RDEngineering_2DCadEditorX" DesignTimeRemark="get view box">
					<PAR Name="RDLibraryName">
						<EXP><![CDATA[$C$RDEngineering_MISC]]></EXP>
					</PAR>
					<PAR Name="ActionType">
						<EXP><![CDATA[$C$0]]></EXP>
					</PAR>
					<PAR Name="InputXml">
						<EXP><![CDATA[$C$<?xml version="1.0" encoding="UTF-8"?>
<cadsofttools version="2">
  <getbox/>
</cadsofttools>]]></EXP>
					</PAR>
					<PAR Name="FileName" />
					<PAR Name="InLayers" />
					<PAR Name="OutLayers">
						<EXP><![CDATA[$V$]]></EXP>
					</PAR>
					<PAR Name="Param" />
					<PAR Name="OutputXml">
						<EXP><![CDATA[$V$OutputXML]]></EXP>
					</PAR>
					<PAR Name="Options" />
					<PAR Name="OutThumbnails">
						<EXP><![CDATA[$V$]]></EXP>
					</PAR>
					<PAR Name="OutBoundingBox">
						<EXP><![CDATA[$V$]]></EXP>
					</PAR>
				</ACTION_CALL>
				<SET Id="RDK:2060" VarRef="CADXBox">
					<EXP><![CDATA[$=$SplitStr(FieldValue(XmlGetStructList(OutputXML, "/cadsofttools/Results/Result", False)[0], "Output_Box"), ",", "TRIM")]]></EXP>
					<PAR Name="AdvancedOptions" />
				</SET>
				<SET Id="RDK:53787" VarRef="SizeX">
					<EXP><![CDATA[$=$Round(ABS(CADXBox[3]-CADXBox[0]),2)]]></EXP>
					<PAR Name="AdvancedOptions" />
				</SET>
				<SET Id="RDK:53788" VarRef="SizeY">
					<EXP><![CDATA[$=$Round(ABS(CADXBox[4]-CADXBox[1]),2)]]></EXP>
					<PAR Name="AdvancedOptions" />
				</SET>
			</GROUP>
			<ACTION_CALL Id="RDK:2057" Name="RDEngineering_2DCadEditorX" Suppressed="True" DesignTimeRemark="getimage">
				<PAR Name="RDLibraryName">
					<EXP><![CDATA[$C$RDEngineering_MISC]]></EXP>
				</PAR>
				<PAR Name="ActionType">
					<EXP><![CDATA[$C$0]]></EXP>
				</PAR>
				<PAR Name="InputXml">
					<EXP><![CDATA[$C$<?xml version="1.0" encoding="UTF-8"?>
<cadsofttools version="2">
    <!-- Description:  Returns picture of the current view in Base64 encoding. -->
  <getimage>
      <ExportParams FileName = "C:\Users\dre\Desktop\test" Format=".png"><!-- attribute 'FileName' calls additional saving to file -->
         <Width>1024</Width><!--always needs setup  -->
         <Height>768</Height><!--always needs setup -->
         <Proportional>True</Proportional>
         <BitPerPixel>24</BitPerPixel>
         <MeasureInPixels>True</MeasureInPixels>
         <Transparent>True</Transparent>
         <BackgroundColor>$FFFFFF</BackgroundColor><!--default value white -->
         <DefaultColor>$000000</DefaultColor><!--default value black -->
         <ClipMode>4</ClipMode>
         <ClipRect>0,0,0,2048,1536,0</ClipRect>
         <LayoutNameExportMode>Layout Bud2</LayoutNameExportMode><!--default current layout. The first char '@' of this name is layout index -->
      </ExportParams>
    </getimage>
</cadsofttools>]]></EXP>
				</PAR>
				<PAR Name="FileName" />
				<PAR Name="InLayers" />
				<PAR Name="OutLayers">
					<EXP><![CDATA[$V$]]></EXP>
				</PAR>
				<PAR Name="Param" />
				<PAR Name="OutputXml">
					<EXP><![CDATA[$V$ImageBase64]]></EXP>
				</PAR>
				<PAR Name="Options" />
				<PAR Name="OutThumbnails">
					<EXP><![CDATA[$V$]]></EXP>
				</PAR>
				<PAR Name="OutBoundingBox">
					<EXP><![CDATA[$V$]]></EXP>
				</PAR>
			</ACTION_CALL>
			<ACTION_CALL Id="RDK:2058" Name="RDEngineering_2DCadEditorX" DesignTimeRemark="UNLOAD">
				<PAR Name="RDLibraryName">
					<EXP><![CDATA[$C$RDEngineering_MISC]]></EXP>
				</PAR>
				<PAR Name="ActionType">
					<EXP><![CDATA[$C$0]]></EXP>
				</PAR>
				<PAR Name="InputXml">
					<EXP><![CDATA[$C$<?xml version="1.0" encoding="UTF-8"?>
<cadsofttools version="2">
  <unload index="0"/>
</cadsofttools>]]></EXP>
				</PAR>
				<PAR Name="FileName" />
				<PAR Name="InLayers" />
				<PAR Name="OutLayers">
					<EXP><![CDATA[$V$]]></EXP>
				</PAR>
				<PAR Name="Param" />
				<PAR Name="OutputXml">
					<EXP><![CDATA[$V$]]></EXP>
				</PAR>
				<PAR Name="Options">
					<EXP><![CDATA[$C$(WITHCLOSE)]]></EXP>
				</PAR>
				<PAR Name="OutThumbnails">
					<EXP><![CDATA[$V$]]></EXP>
				</PAR>
				<PAR Name="OutBoundingBox">
					<EXP><![CDATA[$V$]]></EXP>
				</PAR>
			</ACTION_CALL>
		</GROUP>
	</GROUP>
	<EXTERNAL_DATA>
		<PROFILES_DATA />
		<BOM_DATA />
	</EXTERNAL_DATA>
</PROCESS>