<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"></head><body dir="auto"><div></div><div>I believe the "run in memory" option will copy the GME objects to a Udm copy, but Udm does not have the guid. </div><div><br></div><div>Can you try it without that option? I haven't seen data that transforms will run faster with that option. Maybe it isn't faster?</div><div><br>On Dec 19, 2016, at 9:46 AM, Mansk, Robert <<a href="mailto:robert.mansk@ils.uni-stuttgart.de">robert.mansk@ils.uni-stuttgart.de</a>> wrote:<br><br></div><blockquote type="cite"><div><meta http-equiv="Content-Type" content="text/html; charset=us-ascii"><meta name="Generator" content="Microsoft Word 15 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri",sans-serif;
mso-fareast-language:EN-US;}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:#0563C1;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:#954F72;
text-decoration:underline;}
pre
{mso-style-priority:99;
mso-style-link:"HTML Vorformatiert Zchn";
margin:0cm;
margin-bottom:.0001pt;
font-size:10.0pt;
font-family:"Courier New";}
span.E-MailFormatvorlage17
{mso-style-type:personal-compose;
font-family:"Calibri",sans-serif;
color:windowtext;}
span.HTMLVorformatiertZchn
{mso-style-name:"HTML Vorformatiert Zchn";
mso-style-priority:99;
mso-style-link:"HTML Vorformatiert";
font-family:"Courier New";
mso-fareast-language:DE;}
.MsoChpDefault
{mso-style-type:export-only;
font-family:"Calibri",sans-serif;
mso-fareast-language:EN-US;}
@page WordSection1
{size:612.0pt 792.0pt;
margin:70.85pt 70.85pt 2.0cm 70.85pt;}
div.WordSection1
{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--><div class="WordSection1"><pre><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri",sans-serif">Hey everybody,<o:p></o:p></span></pre><pre><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri",sans-serif"><o:p> </o:p></span></pre><pre><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri",sans-serif">I’m referring to the thread in the GReAT archive of August 21<sup>st</sup>, 2014.<o:p></o:p></span></pre><pre><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri",sans-serif">There, code was provided which allows to read out the GUID of a given object.<o:p></o:p></span></pre><pre><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri",sans-serif"><o:p> </o:p></span></pre><pre><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri",sans-serif">I would like to know, if it’s possible to read out the GUID when running a transformation in memory?<o:p></o:p></span></pre><pre><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri",sans-serif">Using the given code, the line<o:p></o:p></span></pre><pre><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri",sans-serif"><o:p> </o:p></span></pre><pre><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri",sans-serif"> </span><span lang="EN-US">pUnk.Attach(UdmGme::Udm2Gme(PurchaseOrder)); // caveat: Udm2GME returns NULL if PurchaseOrder is a Udm XML object<o:p></o:p></span></pre><pre><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri",sans-serif"><o:p> </o:p></span></pre><pre><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri",sans-serif">returns NULL when running a transformation in memory. Therefore<o:p></o:p></span></pre><pre><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri",sans-serif"> <o:p></o:p></span></pre><pre><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri",sans-serif"> </span><span lang="EN-US">pFCO->GetGuidDisp(bstrGuid.GetAddress());<o:p></o:p></span></pre><pre><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri",sans-serif"><o:p> </o:p></span></pre><pre><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri",sans-serif">leads to an error in the header file ‘atlcomcli.h‘ at line 182, which causes a crash of the execution file.<o:p></o:p></span></pre><pre><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri",sans-serif">In the following link I provided a small example based on the given house2order transformation.<o:p></o:p></span></pre><pre><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri",sans-serif"><o:p> </o:p></span></pre><pre><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri",sans-serif"> <a href="https://dav.bastie.org/index.php/s/aJ5EXJYPBrCSVNf">https://dav.bastie.org/index.php/s/aJ5EXJYPBrCSVNf</a> (pw: iQ8&%fXs2)<o:p></o:p></span></pre><pre><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri",sans-serif"><o:p> </o:p></span></pre><pre><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri",sans-serif">Within the rule ‘AddToOrder’ I implemented the code to get the GUID of the object ‘Room1’.<o:p></o:p></span></pre><pre><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri",sans-serif">When running the transformation in memory (value is set to true for input and output file within the configuration aspect of the transformation)<o:p></o:p></span></pre><pre><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri",sans-serif">the compiled code crashes. This only happens when the file I’m reading from (House Model in this case) is run in memory. I suppose the problem lies with ‘Room1’<o:p></o:p></span></pre><pre><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri",sans-serif">being an Udm XML Object (or something similar), as stated in the comment above.<o:p></o:p></span></pre><pre><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri",sans-serif"><o:p> </o:p></span></pre><pre><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri",sans-serif">As I am currently executing some very large transformations where it is necessary to read out the GUID, it would be great if there would be possibility to run them in memory<o:p></o:p></span></pre><pre><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri",sans-serif">and save some time. Thank you in advance for your help.<o:p></o:p></span></pre><pre><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri",sans-serif"><o:p> </o:p></span></pre><pre><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri",sans-serif">Best regards,<o:p></o:p></span></pre><pre><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri",sans-serif">Robert<o:p></o:p></span></pre><pre><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri",sans-serif"><o:p> </o:p></span></pre><p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p></div></div></blockquote><blockquote type="cite"><div><span>_______________________________________________</span><br><span>great-users mailing list</span><br><span><a href="mailto:great-users@list.isis.vanderbilt.edu">great-users@list.isis.vanderbilt.edu</a></span><br><span><a href="http://list.isis.vanderbilt.edu/cgi-bin/mailman/listinfo/great-users">http://list.isis.vanderbilt.edu/cgi-bin/mailman/listinfo/great-users</a></span><br></div></blockquote></body></html>