<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: iLogic Help - Code for taking ipt iProperties to IDW iproperties in Inventor Programming Forum</title>
    <link>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-help-code-for-taking-ipt-iproperties-to-idw-iproperties/m-p/8851460#M74941</link>
    <description>&lt;P&gt;Hi.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have used this in the past. Don't know if it will work.&lt;/P&gt;&lt;PRE&gt;If (ThisDrawing.ModelDocument Is Nothing) Then Return

modelName = IO.Path.GetFileName(ThisDrawing.ModelDocument.FullFileName)

'read the values from the Custom iProperties in the part file

'and apply them to the Custom iProperties with the same name in the drawing

iProperties.Value("Custom", "Header 1") = iProperties.Value(modelName, "Custom", "Header 1")

iProperties.Value("Custom", "Header 2") = iProperties.Value(modelName, "Custom", "Header 2")

iProperties.Value("Custom", "Header 3") = iProperties.Value(modelName, "Custom", "Header 3")

iProperties.Value("Custom", "Remarks") = iProperties.Value(modelName, "Custom", "Remarks")

iProperties.Value("Project", "Part Number")=iProperties.Value(modelName, "Project", "Part Number")

iProperties.Value("Summary", "Company")=iProperties.Value(modelName, "Summary", "Company")

iProperties.Value("Project", "Project")=iProperties.Value(modelName, "Project", "Project")

iProperties.Value("Summary", "Title")=iProperties.Value(modelName, "Summary", "Title")

'iProperties.Value(modelName, "Project", "Revision Number") = iProperties.Value("Project", "Revision Number")

iProperties.Value("Custom", "Header 3") = iProperties.Value("Summary", "Title")

'iProperties.Value("Custom", "Mass") = iProperties.Value(modelName, "Custom", "Mass")&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And then I have used this to push iProperties from the drawing back to the 3D model.&lt;/P&gt;&lt;PRE&gt;If (ThisDrawing.ModelDocument Is Nothing) Then Return

modelName = IO.Path.GetFileName(ThisDrawing.ModelDocument.FullFileName)

'read the values from the Custom iProperties in the part file

'and apply them to the Custom iProperties with the same name in the drawing

iProperties.Value("Custom", "Header 1") = iProperties.Value(modelName, "Custom", "Header 1")

iProperties.Value("Custom", "Header 2") = iProperties.Value(modelName, "Custom", "Header 2")

iProperties.Value("Custom", "Header 3") = iProperties.Value(modelName, "Custom", "Header 3")

iProperties.Value("Custom", "Remarks") = iProperties.Value(modelName, "Custom", "Remarks")

iProperties.Value("Project", "Part Number")=iProperties.Value(modelName, "Project", "Part Number")

iProperties.Value("Summary", "Company")=iProperties.Value(modelName, "Summary", "Company")

iProperties.Value("Project", "Project")=iProperties.Value(modelName, "Project", "Project")

iProperties.Value("Summary", "Title")=iProperties.Value(modelName, "Summary", "Title")

'iProperties.Value(modelName, "Project", "Revision Number") = iProperties.Value("Project", "Revision Number")

iProperties.Value("Custom", "Header 3") = iProperties.Value("Summary", "Title")

'iProperties.Value("Custom", "Mass") = iProperties.Value(modelName, "Custom", "Mass")&lt;/PRE&gt;&lt;P&gt;Then I don't have to go back to the 3D to update the properties.&lt;/P&gt;</description>
    <pubDate>Fri, 14 Jun 2019 07:25:31 GMT</pubDate>
    <dc:creator>Jesper_S</dc:creator>
    <dc:date>2019-06-14T07:25:31Z</dc:date>
    <item>
      <title>iLogic Help - Code for taking ipt iProperties to IDW iproperties</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-help-code-for-taking-ipt-iproperties-to-idw-iproperties/m-p/8847805#M74932</link>
      <description>&lt;P&gt;Hello Everyone,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have been trying for some time and failed.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would like a piece of code that I can use in my drawings template that will copy the iProperties from within the IPT or IAM that is placed on the drawing and place the copied iproperties within the iproperties of the IDW.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The main reason for doing this, or at least trying is so that when I place IDW's into the vault, the iproperties fields are not left blank.&lt;/P&gt;&lt;P&gt;Creating forms within ipt's and iam's is no problem, I can and have done that, but when it comes to VB Code, lets be honest, I am crap and just cannot get my head around the language.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can anyone help?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Many thanks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 12 Jun 2019 17:28:13 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-help-code-for-taking-ipt-iproperties-to-idw-iproperties/m-p/8847805#M74932</guid>
      <dc:creator>simon4D86F</dc:creator>
      <dc:date>2019-06-12T17:28:13Z</dc:date>
    </item>
    <item>
      <title>Re: iLogic Help - Code for taking ipt iProperties to IDW iproperties</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-help-code-for-taking-ipt-iproperties-to-idw-iproperties/m-p/8848069#M74933</link>
      <description>&lt;P&gt;Hi, Here is an example in ilogic, I put the fragment to select the view because sometimes you have views of different parts and you may want to transfer only the properties of a part to the drawing file.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;oDoc&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;DrawingDocument&lt;/SPAN&gt; = &lt;SPAN&gt;ThisDoc&lt;/SPAN&gt;.&lt;SPAN&gt;Document&lt;/SPAN&gt;
&lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;oView&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;DrawingView&lt;/SPAN&gt;

&lt;SPAN&gt;oView&lt;/SPAN&gt; = &lt;SPAN&gt;ThisApplication&lt;/SPAN&gt;.&lt;SPAN&gt;CommandManager&lt;/SPAN&gt;.&lt;SPAN&gt;Pick&lt;/SPAN&gt;(&lt;SPAN&gt;SelectionFilterEnum&lt;/SPAN&gt;.&lt;SPAN&gt;kDrawingViewFilter&lt;/SPAN&gt;, &lt;SPAN&gt;"Select View"&lt;/SPAN&gt;)
&lt;SPAN&gt;If&lt;/SPAN&gt; &lt;SPAN&gt;oView&lt;/SPAN&gt; &lt;SPAN&gt;Is&lt;/SPAN&gt; &lt;SPAN&gt;Nothing&lt;/SPAN&gt; &lt;SPAN&gt;Then&lt;/SPAN&gt; &lt;SPAN&gt;Exit&lt;/SPAN&gt; &lt;SPAN&gt;Sub&lt;/SPAN&gt;

&lt;SPAN&gt;oModelDoc&lt;/SPAN&gt; = &lt;SPAN&gt;oView&lt;/SPAN&gt;.&lt;SPAN&gt;ReferencedDocumentDescriptor&lt;/SPAN&gt;.&lt;SPAN&gt;ReferencedDocument&lt;/SPAN&gt;

&lt;SPAN&gt;'Get the properties of the reference model of the view&lt;/SPAN&gt;
&lt;SPAN&gt;oPartNumProp&lt;/SPAN&gt; = &lt;SPAN&gt;oModelDoc&lt;/SPAN&gt;.&lt;SPAN&gt;PropertySets&lt;/SPAN&gt;.&lt;SPAN&gt;Item&lt;/SPAN&gt;(&lt;SPAN&gt;"Design Tracking Properties"&lt;/SPAN&gt;).&lt;SPAN&gt;Item&lt;/SPAN&gt;(&lt;SPAN&gt;"Part Number"&lt;/SPAN&gt;).&lt;SPAN&gt;Value&lt;/SPAN&gt;  
&lt;SPAN&gt;oReviNumProp&lt;/SPAN&gt; = &lt;SPAN&gt;oModelDoc&lt;/SPAN&gt;.&lt;SPAN&gt;PropertySets&lt;/SPAN&gt;.&lt;SPAN&gt;Item&lt;/SPAN&gt;(&lt;SPAN&gt;"Inventor Summary Information"&lt;/SPAN&gt;).&lt;SPAN&gt;Item&lt;/SPAN&gt;(&lt;SPAN&gt;"Revision Number"&lt;/SPAN&gt;).&lt;SPAN&gt;Value&lt;/SPAN&gt;  
&lt;SPAN&gt;oDescripProp&lt;/SPAN&gt; = &lt;SPAN&gt;oModelDoc&lt;/SPAN&gt;.&lt;SPAN&gt;PropertySets&lt;/SPAN&gt;.&lt;SPAN&gt;Item&lt;/SPAN&gt;(&lt;SPAN&gt;"Design Tracking Properties"&lt;/SPAN&gt;).&lt;SPAN&gt;Item&lt;/SPAN&gt;(&lt;SPAN&gt;"Description"&lt;/SPAN&gt;).&lt;SPAN&gt;Value&lt;/SPAN&gt;  
&lt;SPAN&gt;oStocNumProp&lt;/SPAN&gt; = &lt;SPAN&gt;oModelDoc&lt;/SPAN&gt;.&lt;SPAN&gt;PropertySets&lt;/SPAN&gt;.&lt;SPAN&gt;Item&lt;/SPAN&gt;(&lt;SPAN&gt;"Design Tracking Properties"&lt;/SPAN&gt;).&lt;SPAN&gt;Item&lt;/SPAN&gt;(&lt;SPAN&gt;"Stock Number"&lt;/SPAN&gt;).&lt;SPAN&gt;Value&lt;/SPAN&gt;  

&lt;SPAN&gt;'Transfer the properties to the drawing file&lt;/SPAN&gt;
&lt;SPAN&gt;oDoc&lt;/SPAN&gt;.&lt;SPAN&gt;PropertySets&lt;/SPAN&gt;.&lt;SPAN&gt;Item&lt;/SPAN&gt;(&lt;SPAN&gt;"Design Tracking Properties"&lt;/SPAN&gt;).&lt;SPAN&gt;Item&lt;/SPAN&gt;(&lt;SPAN&gt;"Part Number"&lt;/SPAN&gt;).&lt;SPAN&gt;Value&lt;/SPAN&gt; = &lt;SPAN&gt;oPartNumProp&lt;/SPAN&gt;
&lt;SPAN&gt;oDoc&lt;/SPAN&gt;.&lt;SPAN&gt;PropertySets&lt;/SPAN&gt;.&lt;SPAN&gt;Item&lt;/SPAN&gt;(&lt;SPAN&gt;"Inventor Summary Information"&lt;/SPAN&gt;).&lt;SPAN&gt;Item&lt;/SPAN&gt;(&lt;SPAN&gt;"Revision Number"&lt;/SPAN&gt;).&lt;SPAN&gt;Value&lt;/SPAN&gt; = &lt;SPAN&gt;oReviNumProp&lt;/SPAN&gt;
&lt;SPAN&gt;oDoc&lt;/SPAN&gt;.&lt;SPAN&gt;PropertySets&lt;/SPAN&gt;.&lt;SPAN&gt;Item&lt;/SPAN&gt;(&lt;SPAN&gt;"Design Tracking Properties"&lt;/SPAN&gt;).&lt;SPAN&gt;Item&lt;/SPAN&gt;(&lt;SPAN&gt;"Description"&lt;/SPAN&gt;).&lt;SPAN&gt;Value&lt;/SPAN&gt; = &lt;SPAN&gt;oDescripProp&lt;/SPAN&gt;
&lt;SPAN&gt;oDoc&lt;/SPAN&gt;.&lt;SPAN&gt;PropertySets&lt;/SPAN&gt;.&lt;SPAN&gt;Item&lt;/SPAN&gt;(&lt;SPAN&gt;"Design Tracking Properties"&lt;/SPAN&gt;).&lt;SPAN&gt;Item&lt;/SPAN&gt;(&lt;SPAN&gt;"Stock Number"&lt;/SPAN&gt;).&lt;SPAN&gt;Value&lt;/SPAN&gt; = &lt;SPAN&gt;oStocNumProp&lt;/SPAN&gt;
&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;Here you have more descriptions of how to access the properties, you have to write the names well, if you do not do it, you will return an error.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://modthemachine.typepad.com/my_weblog/2010/02/accessing-iproperties.html" target="_blank"&gt;https://modthemachine.typepad.com/my_weblog/2010/02/accessing-iproperties.html&lt;/A&gt;&lt;BR /&gt;I hope I was clear. regards&lt;/P&gt;</description>
      <pubDate>Wed, 12 Jun 2019 19:19:17 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-help-code-for-taking-ipt-iproperties-to-idw-iproperties/m-p/8848069#M74933</guid>
      <dc:creator>Sergio.D.Suárez</dc:creator>
      <dc:date>2019-06-12T19:19:17Z</dc:date>
    </item>
    <item>
      <title>Re: iLogic Help - Code for taking ipt iProperties to IDW iproperties</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-help-code-for-taking-ipt-iproperties-to-idw-iproperties/m-p/8849728#M74934</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/4253164"&gt;@Sergio.D.Suárez&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;Many thanks for the code, I tried it and it works fine, that is until I try to make a few changes so that the info within the part that I need, comes over to the IDW.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have......&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;oDoc&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;DrawingDocument&lt;/SPAN&gt; = &lt;SPAN&gt;ThisDoc&lt;/SPAN&gt;.&lt;SPAN&gt;Document&lt;/SPAN&gt;
&lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;oView&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;DrawingView&lt;/SPAN&gt;

&lt;SPAN&gt;oView&lt;/SPAN&gt; = &lt;SPAN&gt;ThisApplication&lt;/SPAN&gt;.&lt;SPAN&gt;CommandManager&lt;/SPAN&gt;.&lt;SPAN&gt;Pick&lt;/SPAN&gt;(&lt;SPAN&gt;SelectionFilterEnum&lt;/SPAN&gt;.&lt;SPAN&gt;kDrawingViewFilter&lt;/SPAN&gt;, &lt;SPAN&gt;"Select View"&lt;/SPAN&gt;)
&lt;SPAN&gt;If&lt;/SPAN&gt; &lt;SPAN&gt;oView&lt;/SPAN&gt; &lt;SPAN&gt;Is&lt;/SPAN&gt; &lt;SPAN&gt;Nothing&lt;/SPAN&gt; &lt;SPAN&gt;Then&lt;/SPAN&gt; &lt;SPAN&gt;Exit&lt;/SPAN&gt; &lt;SPAN&gt;Sub&lt;/SPAN&gt;

&lt;SPAN&gt;oModelDoc&lt;/SPAN&gt; = &lt;SPAN&gt;oView&lt;/SPAN&gt;.&lt;SPAN&gt;ReferencedDocumentDescriptor&lt;/SPAN&gt;.&lt;SPAN&gt;ReferencedDocument&lt;/SPAN&gt;

&lt;SPAN&gt;'Get the properties of the reference model of the view&lt;/SPAN&gt;
&lt;SPAN&gt;oPartNumProp&lt;/SPAN&gt; = &lt;SPAN&gt;oModelDoc&lt;/SPAN&gt;.&lt;SPAN&gt;PropertySets&lt;/SPAN&gt;.&lt;SPAN&gt;Item&lt;/SPAN&gt;(&lt;SPAN&gt;"Design Tracking Properties"&lt;/SPAN&gt;).&lt;SPAN&gt;Item&lt;/SPAN&gt;(&lt;SPAN&gt;"Part Number"&lt;/SPAN&gt;).&lt;SPAN&gt;Value&lt;/SPAN&gt;  
&lt;SPAN&gt;oReviNumProp&lt;/SPAN&gt; = &lt;SPAN&gt;oModelDoc&lt;/SPAN&gt;.&lt;SPAN&gt;PropertySets&lt;/SPAN&gt;.&lt;SPAN&gt;Item&lt;/SPAN&gt;(&lt;SPAN&gt;"Inventor Summary Information"&lt;/SPAN&gt;).&lt;SPAN&gt;Item&lt;/SPAN&gt;(&lt;SPAN&gt;"Revision Number"&lt;/SPAN&gt;).&lt;SPAN&gt;Value&lt;/SPAN&gt;  
&lt;SPAN&gt;oDescripProp&lt;/SPAN&gt; = &lt;SPAN&gt;oModelDoc&lt;/SPAN&gt;.&lt;SPAN&gt;PropertySets&lt;/SPAN&gt;.&lt;SPAN&gt;Item&lt;/SPAN&gt;(&lt;SPAN&gt;"Design Tracking Properties"&lt;/SPAN&gt;).&lt;SPAN&gt;Item&lt;/SPAN&gt;(&lt;SPAN&gt;"Description"&lt;/SPAN&gt;).&lt;SPAN&gt;Value&lt;/SPAN&gt;  
&lt;SPAN&gt;oDescripProp&lt;/SPAN&gt; = &lt;SPAN&gt;oModelDoc&lt;/SPAN&gt;.&lt;SPAN&gt;PropertySets&lt;/SPAN&gt;.&lt;SPAN&gt;Item&lt;/SPAN&gt;(&lt;SPAN&gt;"Design Tracking Properties"&lt;/SPAN&gt;).&lt;SPAN&gt;Item&lt;/SPAN&gt;(&lt;SPAN&gt;"Project"&lt;/SPAN&gt;).&lt;SPAN&gt;Value&lt;/SPAN&gt;  
&lt;SPAN&gt;oStocNumProp&lt;/SPAN&gt; = &lt;SPAN&gt;oModelDoc&lt;/SPAN&gt;.&lt;SPAN&gt;PropertySets&lt;/SPAN&gt;.&lt;SPAN&gt;Item&lt;/SPAN&gt;(&lt;SPAN&gt;"Inventor Document Summary Information"&lt;/SPAN&gt;).&lt;SPAN&gt;Item&lt;/SPAN&gt;(&lt;SPAN&gt;"Company"&lt;/SPAN&gt;).&lt;SPAN&gt;Value&lt;/SPAN&gt;  
&lt;SPAN&gt;oStocNumProp&lt;/SPAN&gt; = &lt;SPAN&gt;oModelDoc&lt;/SPAN&gt;.&lt;SPAN&gt;PropertySets&lt;/SPAN&gt;.&lt;SPAN&gt;Item&lt;/SPAN&gt;(&lt;SPAN&gt;"Inventor Document Summary Information"&lt;/SPAN&gt;).&lt;SPAN&gt;Item&lt;/SPAN&gt;(&lt;SPAN&gt;"Keywords"&lt;/SPAN&gt;).&lt;SPAN&gt;Value&lt;/SPAN&gt; 

&lt;SPAN&gt;'Transfer the properties to the drawing file&lt;/SPAN&gt;
&lt;SPAN&gt;oDoc&lt;/SPAN&gt;.&lt;SPAN&gt;PropertySets&lt;/SPAN&gt;.&lt;SPAN&gt;Item&lt;/SPAN&gt;(&lt;SPAN&gt;"Design Tracking Properties"&lt;/SPAN&gt;).&lt;SPAN&gt;Item&lt;/SPAN&gt;(&lt;SPAN&gt;"Part Number"&lt;/SPAN&gt;).&lt;SPAN&gt;Value&lt;/SPAN&gt; = &lt;SPAN&gt;oPartNumProp&lt;/SPAN&gt;
&lt;SPAN&gt;oDoc&lt;/SPAN&gt;.&lt;SPAN&gt;PropertySets&lt;/SPAN&gt;.&lt;SPAN&gt;Item&lt;/SPAN&gt;(&lt;SPAN&gt;"Inventor Summary Information"&lt;/SPAN&gt;).&lt;SPAN&gt;Item&lt;/SPAN&gt;(&lt;SPAN&gt;"Revision Number"&lt;/SPAN&gt;).&lt;SPAN&gt;Value&lt;/SPAN&gt; = &lt;SPAN&gt;oReviNumProp&lt;/SPAN&gt;
&lt;SPAN&gt;oDoc&lt;/SPAN&gt;.&lt;SPAN&gt;PropertySets&lt;/SPAN&gt;.&lt;SPAN&gt;Item&lt;/SPAN&gt;(&lt;SPAN&gt;"Design Tracking Properties"&lt;/SPAN&gt;).&lt;SPAN&gt;Item&lt;/SPAN&gt;(&lt;SPAN&gt;"Description"&lt;/SPAN&gt;).&lt;SPAN&gt;Value&lt;/SPAN&gt; = &lt;SPAN&gt;oDescripProp&lt;/SPAN&gt;
&lt;SPAN&gt;oDoc&lt;/SPAN&gt;.&lt;SPAN&gt;PropertySets&lt;/SPAN&gt;.&lt;SPAN&gt;Item&lt;/SPAN&gt;(&lt;SPAN&gt;"Design Tracking Properties"&lt;/SPAN&gt;).&lt;SPAN&gt;Item&lt;/SPAN&gt;(&lt;SPAN&gt;"Project"&lt;/SPAN&gt;).&lt;SPAN&gt;Value&lt;/SPAN&gt; = &lt;SPAN&gt;oProjProp&lt;/SPAN&gt;
&lt;SPAN&gt;oDoc&lt;/SPAN&gt;.&lt;SPAN&gt;PropertySets&lt;/SPAN&gt;.&lt;SPAN&gt;Item&lt;/SPAN&gt;(&lt;SPAN&gt;"Inventor Document Summary Information"&lt;/SPAN&gt;).&lt;SPAN&gt;Item&lt;/SPAN&gt;(&lt;SPAN&gt;"Company"&lt;/SPAN&gt;).&lt;SPAN&gt;Value&lt;/SPAN&gt; = &lt;SPAN&gt;oCompanyProp&lt;/SPAN&gt;
&lt;SPAN&gt;oDoc&lt;/SPAN&gt;.&lt;SPAN&gt;PropertySets&lt;/SPAN&gt;.&lt;SPAN&gt;Item&lt;/SPAN&gt;(&lt;SPAN&gt;"Inventor Document Summary Information"&lt;/SPAN&gt;).&lt;SPAN&gt;Item&lt;/SPAN&gt;(&lt;SPAN&gt;"Keywords"&lt;/SPAN&gt;).&lt;SPAN&gt;Value&lt;/SPAN&gt; = &lt;SPAN&gt;oKeywordsProp&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;and the Error message I get is....&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;"Error in rule: iProperties to Drawing, in document: XXX-XXX-XXXX-001.idw&lt;/P&gt;&lt;P&gt;Unspecified error (Exception from HRESULT: 0x80004005 (E_FAIL))"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can you tell me what I am doing wrong please&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Many thanks&lt;/P&gt;</description>
      <pubDate>Thu, 13 Jun 2019 13:41:37 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-help-code-for-taking-ipt-iproperties-to-idw-iproperties/m-p/8849728#M74934</guid>
      <dc:creator>simon4D86F</dc:creator>
      <dc:date>2019-06-13T13:41:37Z</dc:date>
    </item>
    <item>
      <title>Re: iLogic Help - Code for taking ipt iProperties to IDW iproperties</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-help-code-for-taking-ipt-iproperties-to-idw-iproperties/m-p/8849829#M74935</link>
      <description>&lt;P&gt;I was able to figure out that the line giving problems is:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt;oStocNumProp = oModelDoc.PropertySets.Item("Inventor Document Summary Information").Item("Keywords").Value&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But I don't know enough about code yet to tell you why.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 13 Jun 2019 14:15:41 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-help-code-for-taking-ipt-iproperties-to-idw-iproperties/m-p/8849829#M74935</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-06-13T14:15:41Z</dc:date>
    </item>
    <item>
      <title>Re: iLogic Help - Code for taking ipt iProperties to IDW iproperties</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-help-code-for-taking-ipt-iproperties-to-idw-iproperties/m-p/8849873#M74936</link>
      <description>&lt;P&gt;try this line of code&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt;oStocNumProp&lt;/SPAN&gt; = &lt;SPAN&gt;oModelDoc&lt;/SPAN&gt;.&lt;SPAN&gt;PropertySets&lt;/SPAN&gt;.&lt;SPAN&gt;Item&lt;/SPAN&gt;(&lt;SPAN&gt;"Inventor Summary Information"&lt;/SPAN&gt;).&lt;SPAN&gt;Item&lt;/SPAN&gt;(&lt;SPAN&gt;"Keywords"&lt;/SPAN&gt;).&lt;SPAN&gt;Value&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;Best Regards!&lt;/P&gt;</description>
      <pubDate>Thu, 13 Jun 2019 14:27:48 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-help-code-for-taking-ipt-iproperties-to-idw-iproperties/m-p/8849873#M74936</guid>
      <dc:creator>Sergio.D.Suárez</dc:creator>
      <dc:date>2019-06-13T14:27:48Z</dc:date>
    </item>
    <item>
      <title>Re: iLogic Help - Code for taking ipt iProperties to IDW iproperties</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-help-code-for-taking-ipt-iproperties-to-idw-iproperties/m-p/8849891#M74937</link>
      <description>&lt;P&gt;try this line of code&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;oDoc&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;DrawingDocument&lt;/SPAN&gt; = &lt;SPAN&gt;ThisDoc&lt;/SPAN&gt;.&lt;SPAN&gt;Document&lt;/SPAN&gt;
&lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;oView&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;DrawingView&lt;/SPAN&gt;

&lt;SPAN&gt;oView&lt;/SPAN&gt; = &lt;SPAN&gt;ThisApplication&lt;/SPAN&gt;.&lt;SPAN&gt;CommandManager&lt;/SPAN&gt;.&lt;SPAN&gt;Pick&lt;/SPAN&gt;(&lt;SPAN&gt;SelectionFilterEnum&lt;/SPAN&gt;.&lt;SPAN&gt;kDrawingViewFilter&lt;/SPAN&gt;, &lt;SPAN&gt;"Select View"&lt;/SPAN&gt;)
&lt;SPAN&gt;If&lt;/SPAN&gt; &lt;SPAN&gt;oView&lt;/SPAN&gt; &lt;SPAN&gt;Is&lt;/SPAN&gt; &lt;SPAN&gt;Nothing&lt;/SPAN&gt; &lt;SPAN&gt;Then&lt;/SPAN&gt; &lt;SPAN&gt;Exit&lt;/SPAN&gt; &lt;SPAN&gt;Sub&lt;/SPAN&gt;

&lt;SPAN&gt;oModelDoc&lt;/SPAN&gt; = &lt;SPAN&gt;oView&lt;/SPAN&gt;.&lt;SPAN&gt;ReferencedDocumentDescriptor&lt;/SPAN&gt;.&lt;SPAN&gt;ReferencedDocument&lt;/SPAN&gt;

&lt;SPAN&gt;'Get the properties of the reference model of the view&lt;/SPAN&gt;
&lt;SPAN&gt;oPartNumProp&lt;/SPAN&gt; = &lt;SPAN&gt;oModelDoc&lt;/SPAN&gt;.&lt;SPAN&gt;PropertySets&lt;/SPAN&gt;.&lt;SPAN&gt;Item&lt;/SPAN&gt;(&lt;SPAN&gt;"Design Tracking Properties"&lt;/SPAN&gt;).&lt;SPAN&gt;Item&lt;/SPAN&gt;(&lt;SPAN&gt;"Part Number"&lt;/SPAN&gt;).&lt;SPAN&gt;Value&lt;/SPAN&gt;  
&lt;SPAN&gt;oReviNumProp&lt;/SPAN&gt; = &lt;SPAN&gt;oModelDoc&lt;/SPAN&gt;.&lt;SPAN&gt;PropertySets&lt;/SPAN&gt;.&lt;SPAN&gt;Item&lt;/SPAN&gt;(&lt;SPAN&gt;"Inventor Summary Information"&lt;/SPAN&gt;).&lt;SPAN&gt;Item&lt;/SPAN&gt;(&lt;SPAN&gt;"Revision Number"&lt;/SPAN&gt;).&lt;SPAN&gt;Value&lt;/SPAN&gt;  
&lt;SPAN&gt;oDescripProp&lt;/SPAN&gt; = &lt;SPAN&gt;oModelDoc&lt;/SPAN&gt;.&lt;SPAN&gt;PropertySets&lt;/SPAN&gt;.&lt;SPAN&gt;Item&lt;/SPAN&gt;(&lt;SPAN&gt;"Design Tracking Properties"&lt;/SPAN&gt;).&lt;SPAN&gt;Item&lt;/SPAN&gt;(&lt;SPAN&gt;"Description"&lt;/SPAN&gt;).&lt;SPAN&gt;Value&lt;/SPAN&gt;  
&lt;SPAN&gt;oDescripProp&lt;/SPAN&gt; = &lt;SPAN&gt;oModelDoc&lt;/SPAN&gt;.&lt;SPAN&gt;PropertySets&lt;/SPAN&gt;.&lt;SPAN&gt;Item&lt;/SPAN&gt;(&lt;SPAN&gt;"Design Tracking Properties"&lt;/SPAN&gt;).&lt;SPAN&gt;Item&lt;/SPAN&gt;(&lt;SPAN&gt;"Project"&lt;/SPAN&gt;).&lt;SPAN&gt;Value&lt;/SPAN&gt;  
&lt;SPAN&gt;oStocNumProp&lt;/SPAN&gt; = &lt;SPAN&gt;oModelDoc&lt;/SPAN&gt;.&lt;SPAN&gt;PropertySets&lt;/SPAN&gt;.&lt;SPAN&gt;Item&lt;/SPAN&gt;(&lt;SPAN&gt;"Inventor Document Summary Information"&lt;/SPAN&gt;).&lt;SPAN&gt;Item&lt;/SPAN&gt;(&lt;SPAN&gt;"Company"&lt;/SPAN&gt;).&lt;SPAN&gt;Value&lt;/SPAN&gt;  
&lt;SPAN&gt;oStocNumProp&lt;/SPAN&gt; = &lt;SPAN&gt;oModelDoc&lt;/SPAN&gt;.&lt;SPAN&gt;PropertySets&lt;/SPAN&gt;.&lt;SPAN&gt;Item&lt;/SPAN&gt;(&lt;SPAN&gt;"Inventor Summary Information"&lt;/SPAN&gt;).&lt;SPAN&gt;Item&lt;/SPAN&gt;(&lt;SPAN&gt;"Keywords"&lt;/SPAN&gt;).&lt;SPAN&gt;Value&lt;/SPAN&gt; .&lt;SPAN&gt;Value&lt;/SPAN&gt; 

&lt;SPAN&gt;'Transfer the properties to the drawing file&lt;/SPAN&gt;
&lt;SPAN&gt;oDoc&lt;/SPAN&gt;.&lt;SPAN&gt;PropertySets&lt;/SPAN&gt;.&lt;SPAN&gt;Item&lt;/SPAN&gt;(&lt;SPAN&gt;"Design Tracking Properties"&lt;/SPAN&gt;).&lt;SPAN&gt;Item&lt;/SPAN&gt;(&lt;SPAN&gt;"Part Number"&lt;/SPAN&gt;).&lt;SPAN&gt;Value&lt;/SPAN&gt; = &lt;SPAN&gt;oPartNumProp&lt;/SPAN&gt;
&lt;SPAN&gt;oDoc&lt;/SPAN&gt;.&lt;SPAN&gt;PropertySets&lt;/SPAN&gt;.&lt;SPAN&gt;Item&lt;/SPAN&gt;(&lt;SPAN&gt;"Inventor Summary Information"&lt;/SPAN&gt;).&lt;SPAN&gt;Item&lt;/SPAN&gt;(&lt;SPAN&gt;"Revision Number"&lt;/SPAN&gt;).&lt;SPAN&gt;Value&lt;/SPAN&gt; = &lt;SPAN&gt;oReviNumProp&lt;/SPAN&gt;
&lt;SPAN&gt;oDoc&lt;/SPAN&gt;.&lt;SPAN&gt;PropertySets&lt;/SPAN&gt;.&lt;SPAN&gt;Item&lt;/SPAN&gt;(&lt;SPAN&gt;"Design Tracking Properties"&lt;/SPAN&gt;).&lt;SPAN&gt;Item&lt;/SPAN&gt;(&lt;SPAN&gt;"Description"&lt;/SPAN&gt;).&lt;SPAN&gt;Value&lt;/SPAN&gt; = &lt;SPAN&gt;oDescripProp&lt;/SPAN&gt;
&lt;SPAN&gt;oDoc&lt;/SPAN&gt;.&lt;SPAN&gt;PropertySets&lt;/SPAN&gt;.&lt;SPAN&gt;Item&lt;/SPAN&gt;(&lt;SPAN&gt;"Design Tracking Properties"&lt;/SPAN&gt;).&lt;SPAN&gt;Item&lt;/SPAN&gt;(&lt;SPAN&gt;"Project"&lt;/SPAN&gt;).&lt;SPAN&gt;Value&lt;/SPAN&gt; = &lt;SPAN&gt;oProjProp&lt;/SPAN&gt;
&lt;SPAN&gt;oDoc&lt;/SPAN&gt;.&lt;SPAN&gt;PropertySets&lt;/SPAN&gt;.&lt;SPAN&gt;Item&lt;/SPAN&gt;(&lt;SPAN&gt;"Inventor Document Summary Information"&lt;/SPAN&gt;).&lt;SPAN&gt;Item&lt;/SPAN&gt;(&lt;SPAN&gt;"Company"&lt;/SPAN&gt;).&lt;SPAN&gt;Value&lt;/SPAN&gt; = &lt;SPAN&gt;oCompanyProp&lt;/SPAN&gt;
&lt;SPAN&gt;oDoc&lt;/SPAN&gt;.&lt;SPAN&gt;PropertySets&lt;/SPAN&gt;.&lt;SPAN&gt;Item&lt;/SPAN&gt;(&lt;SPAN&gt;"Inventor Summary Information"&lt;/SPAN&gt;).&lt;SPAN&gt;Item&lt;/SPAN&gt;(&lt;SPAN&gt;"Keywords"&lt;/SPAN&gt;).&lt;SPAN&gt;Value&lt;/SPAN&gt; = &lt;SPAN&gt;oKeywordsProp&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;Best Regards!&lt;/P&gt;</description>
      <pubDate>Thu, 13 Jun 2019 14:32:31 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-help-code-for-taking-ipt-iproperties-to-idw-iproperties/m-p/8849891#M74937</guid>
      <dc:creator>Sergio.D.Suárez</dc:creator>
      <dc:date>2019-06-13T14:32:31Z</dc:date>
    </item>
    <item>
      <title>Re: iLogic Help - Code for taking ipt iProperties to IDW iproperties</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-help-code-for-taking-ipt-iproperties-to-idw-iproperties/m-p/8850386#M74938</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for the reply and help.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have tried the code and it is working in a manner.&amp;nbsp; It copies the Revision over and the Project name, however, the project name ends up in the Description column.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I also removed a .Value from this line after I still get the error message, Did I do right by removing it?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt;oStocNumProp&lt;/SPAN&gt; = &lt;SPAN&gt;oModelDoc&lt;/SPAN&gt;.&lt;SPAN&gt;PropertySets&lt;/SPAN&gt;.&lt;SPAN&gt;Item&lt;/SPAN&gt;(&lt;SPAN&gt;"Inventor Summary Information"&lt;/SPAN&gt;).&lt;SPAN&gt;Item&lt;/SPAN&gt;(&lt;SPAN&gt;"Keywords"&lt;/SPAN&gt;).&lt;SPAN&gt;Value&lt;/SPAN&gt; .&lt;SPAN&gt;Value&lt;/SPAN&gt; &lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I did try the code with and without the extra .Value, and still get the same error message....&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;"Error in rule: iProperties To Drawing, in document: XXX-XXX-XXX-XXX-004.idw&lt;/P&gt;&lt;P&gt;The parameter is incorrect. (Exception from HRESULT: 0x80070057 (E_INVALIDARG))"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I know you mentioned that you hadn't figured out the error, but I will gladly admit, this is above my capabilities.....&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 13 Jun 2019 17:33:19 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-help-code-for-taking-ipt-iproperties-to-idw-iproperties/m-p/8850386#M74938</guid>
      <dc:creator>simon4D86F</dc:creator>
      <dc:date>2019-06-13T17:33:19Z</dc:date>
    </item>
    <item>
      <title>Re: iLogic Help - Code for taking ipt iProperties to IDW iproperties</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-help-code-for-taking-ipt-iproperties-to-idw-iproperties/m-p/8850474#M74939</link>
      <description>&lt;P&gt;Jaja&lt;img id="smileyfrustrated" class="emoticon emoticon-smileyfrustrated" src="https://forums.autodesk.com/i/smilies/16x16_smiley-frustrated.png" alt="Smiley Frustrated" title="Smiley Frustrated" /&gt;. I'm sorry. Delete the duplicate string ".value" . Must be unique string. Regards&lt;/P&gt;</description>
      <pubDate>Thu, 13 Jun 2019 18:14:58 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-help-code-for-taking-ipt-iproperties-to-idw-iproperties/m-p/8850474#M74939</guid>
      <dc:creator>Sergio.D.Suárez</dc:creator>
      <dc:date>2019-06-13T18:14:58Z</dc:date>
    </item>
    <item>
      <title>Re: iLogic Help - Code for taking ipt iProperties to IDW iproperties</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-help-code-for-taking-ipt-iproperties-to-idw-iproperties/m-p/8851401#M74940</link>
      <description>&lt;P&gt;Hi Sergio,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have removed the extra .value.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I still get the same results, Projects goes to Description and nothing else happens plus I still get the error message.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have tried rewriting it in the manner that you have suggested and have also tried rewriting it using the info from the site you recommended, however, I just end up getting error messages or the code throws a fit and will not even run.&lt;/P&gt;</description>
      <pubDate>Fri, 14 Jun 2019 06:52:25 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-help-code-for-taking-ipt-iproperties-to-idw-iproperties/m-p/8851401#M74940</guid>
      <dc:creator>simon4D86F</dc:creator>
      <dc:date>2019-06-14T06:52:25Z</dc:date>
    </item>
    <item>
      <title>Re: iLogic Help - Code for taking ipt iProperties to IDW iproperties</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-help-code-for-taking-ipt-iproperties-to-idw-iproperties/m-p/8851460#M74941</link>
      <description>&lt;P&gt;Hi.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have used this in the past. Don't know if it will work.&lt;/P&gt;&lt;PRE&gt;If (ThisDrawing.ModelDocument Is Nothing) Then Return

modelName = IO.Path.GetFileName(ThisDrawing.ModelDocument.FullFileName)

'read the values from the Custom iProperties in the part file

'and apply them to the Custom iProperties with the same name in the drawing

iProperties.Value("Custom", "Header 1") = iProperties.Value(modelName, "Custom", "Header 1")

iProperties.Value("Custom", "Header 2") = iProperties.Value(modelName, "Custom", "Header 2")

iProperties.Value("Custom", "Header 3") = iProperties.Value(modelName, "Custom", "Header 3")

iProperties.Value("Custom", "Remarks") = iProperties.Value(modelName, "Custom", "Remarks")

iProperties.Value("Project", "Part Number")=iProperties.Value(modelName, "Project", "Part Number")

iProperties.Value("Summary", "Company")=iProperties.Value(modelName, "Summary", "Company")

iProperties.Value("Project", "Project")=iProperties.Value(modelName, "Project", "Project")

iProperties.Value("Summary", "Title")=iProperties.Value(modelName, "Summary", "Title")

'iProperties.Value(modelName, "Project", "Revision Number") = iProperties.Value("Project", "Revision Number")

iProperties.Value("Custom", "Header 3") = iProperties.Value("Summary", "Title")

'iProperties.Value("Custom", "Mass") = iProperties.Value(modelName, "Custom", "Mass")&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And then I have used this to push iProperties from the drawing back to the 3D model.&lt;/P&gt;&lt;PRE&gt;If (ThisDrawing.ModelDocument Is Nothing) Then Return

modelName = IO.Path.GetFileName(ThisDrawing.ModelDocument.FullFileName)

'read the values from the Custom iProperties in the part file

'and apply them to the Custom iProperties with the same name in the drawing

iProperties.Value("Custom", "Header 1") = iProperties.Value(modelName, "Custom", "Header 1")

iProperties.Value("Custom", "Header 2") = iProperties.Value(modelName, "Custom", "Header 2")

iProperties.Value("Custom", "Header 3") = iProperties.Value(modelName, "Custom", "Header 3")

iProperties.Value("Custom", "Remarks") = iProperties.Value(modelName, "Custom", "Remarks")

iProperties.Value("Project", "Part Number")=iProperties.Value(modelName, "Project", "Part Number")

iProperties.Value("Summary", "Company")=iProperties.Value(modelName, "Summary", "Company")

iProperties.Value("Project", "Project")=iProperties.Value(modelName, "Project", "Project")

iProperties.Value("Summary", "Title")=iProperties.Value(modelName, "Summary", "Title")

'iProperties.Value(modelName, "Project", "Revision Number") = iProperties.Value("Project", "Revision Number")

iProperties.Value("Custom", "Header 3") = iProperties.Value("Summary", "Title")

'iProperties.Value("Custom", "Mass") = iProperties.Value(modelName, "Custom", "Mass")&lt;/PRE&gt;&lt;P&gt;Then I don't have to go back to the 3D to update the properties.&lt;/P&gt;</description>
      <pubDate>Fri, 14 Jun 2019 07:25:31 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-help-code-for-taking-ipt-iproperties-to-idw-iproperties/m-p/8851460#M74941</guid>
      <dc:creator>Jesper_S</dc:creator>
      <dc:date>2019-06-14T07:25:31Z</dc:date>
    </item>
    <item>
      <title>Re: iLogic Help - Code for taking ipt iProperties to IDW iproperties</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-help-code-for-taking-ipt-iproperties-to-idw-iproperties/m-p/8852400#M74942</link>
      <description>&lt;P&gt;Hi Jesper_s,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Many thanks, I will give this a try and get back to you&lt;/P&gt;</description>
      <pubDate>Fri, 14 Jun 2019 16:04:04 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-help-code-for-taking-ipt-iproperties-to-idw-iproperties/m-p/8852400#M74942</guid>
      <dc:creator>simon4D86F</dc:creator>
      <dc:date>2019-06-14T16:04:04Z</dc:date>
    </item>
    <item>
      <title>Re: iLogic Help - Code for taking ipt iProperties to IDW iproperties</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-help-code-for-taking-ipt-iproperties-to-idw-iproperties/m-p/8852559#M74943</link>
      <description>&lt;P&gt;Hi Jesper_s,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Many many thanks, the code surprised me a little, I could actually follow it, understand it and of course make the required changes to it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Fantastic result.&amp;nbsp;&lt;img id="smileyvery-happy" class="emoticon emoticon-smileyvery-happy" src="https://forums.autodesk.com/i/smilies/16x16_smiley-very-happy.png" alt="Smiley Very Happy" title="Smiley Very Happy" /&gt;&lt;img id="smileyvery-happy" class="emoticon emoticon-smileyvery-happy" src="https://forums.autodesk.com/i/smilies/16x16_smiley-very-happy.png" alt="Smiley Very Happy" title="Smiley Very Happy" /&gt;&lt;img id="smileyvery-happy" class="emoticon emoticon-smileyvery-happy" src="https://forums.autodesk.com/i/smilies/16x16_smiley-very-happy.png" alt="Smiley Very Happy" title="Smiley Very Happy" /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My changes where as follows...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt;If&lt;/SPAN&gt; (&lt;SPAN&gt;ThisDrawing&lt;/SPAN&gt;.&lt;SPAN&gt;ModelDocument&lt;/SPAN&gt; &lt;SPAN&gt;Is&lt;/SPAN&gt; &lt;SPAN&gt;Nothing&lt;/SPAN&gt;) &lt;SPAN&gt;Then&lt;/SPAN&gt; &lt;SPAN&gt;Return&lt;/SPAN&gt;

&lt;SPAN&gt;modelName&lt;/SPAN&gt; = &lt;SPAN&gt;IO&lt;/SPAN&gt;.&lt;SPAN&gt;Path&lt;/SPAN&gt;.&lt;SPAN&gt;GetFileName&lt;/SPAN&gt;(&lt;SPAN&gt;ThisDrawing&lt;/SPAN&gt;.&lt;SPAN&gt;ModelDocument&lt;/SPAN&gt;.&lt;SPAN&gt;FullFileName&lt;/SPAN&gt;)

&lt;SPAN&gt;'read the values from the Custom iProperties in the part file&lt;/SPAN&gt;

&lt;SPAN&gt;'and apply them to the Custom iProperties with the same name in the drawing&lt;/SPAN&gt;

&lt;SPAN&gt;iProperties&lt;/SPAN&gt;.&lt;SPAN&gt;Value&lt;/SPAN&gt;(&lt;SPAN&gt;"Summary"&lt;/SPAN&gt;, &lt;SPAN&gt;"Company"&lt;/SPAN&gt;) = &lt;SPAN&gt;iProperties&lt;/SPAN&gt;.&lt;SPAN&gt;Value&lt;/SPAN&gt;(&lt;SPAN&gt;modelName&lt;/SPAN&gt;, &lt;SPAN&gt;"Summary"&lt;/SPAN&gt;, &lt;SPAN&gt;"Company"&lt;/SPAN&gt;)
&lt;SPAN&gt;iProperties&lt;/SPAN&gt;.&lt;SPAN&gt;Value&lt;/SPAN&gt;(&lt;SPAN&gt;"Summary"&lt;/SPAN&gt;, &lt;SPAN&gt;"Keywords"&lt;/SPAN&gt;) = &lt;SPAN&gt;iProperties&lt;/SPAN&gt;.&lt;SPAN&gt;Value&lt;/SPAN&gt;(&lt;SPAN&gt;modelName&lt;/SPAN&gt;, &lt;SPAN&gt;"Summary"&lt;/SPAN&gt;, &lt;SPAN&gt;"Keywords"&lt;/SPAN&gt;)
&lt;SPAN&gt;iProperties&lt;/SPAN&gt;.&lt;SPAN&gt;Value&lt;/SPAN&gt;(&lt;SPAN&gt;"Summary"&lt;/SPAN&gt;, &lt;SPAN&gt;"Title"&lt;/SPAN&gt;)=&lt;SPAN&gt;iProperties&lt;/SPAN&gt;.&lt;SPAN&gt;Value&lt;/SPAN&gt;(&lt;SPAN&gt;modelName&lt;/SPAN&gt;, &lt;SPAN&gt;"Summary"&lt;/SPAN&gt;,&lt;SPAN&gt;"Title"&lt;/SPAN&gt;)
&lt;SPAN&gt;iProperties&lt;/SPAN&gt;.&lt;SPAN&gt;Value&lt;/SPAN&gt;(&lt;SPAN&gt;"Project"&lt;/SPAN&gt;, &lt;SPAN&gt;"Description"&lt;/SPAN&gt;) = &lt;SPAN&gt;iProperties&lt;/SPAN&gt;.&lt;SPAN&gt;Value&lt;/SPAN&gt;(&lt;SPAN&gt;modelName&lt;/SPAN&gt;, &lt;SPAN&gt;"Project"&lt;/SPAN&gt;, &lt;SPAN&gt;"Description"&lt;/SPAN&gt;)
&lt;SPAN&gt;iProperties&lt;/SPAN&gt;.&lt;SPAN&gt;Value&lt;/SPAN&gt;(&lt;SPAN&gt;"Project"&lt;/SPAN&gt;, &lt;SPAN&gt;"Project"&lt;/SPAN&gt;)=&lt;SPAN&gt;iProperties&lt;/SPAN&gt;.&lt;SPAN&gt;Value&lt;/SPAN&gt;(&lt;SPAN&gt;modelName&lt;/SPAN&gt;, &lt;SPAN&gt;"Project"&lt;/SPAN&gt;, &lt;SPAN&gt;"Project"&lt;/SPAN&gt;)
&lt;SPAN&gt;iProperties&lt;/SPAN&gt;.&lt;SPAN&gt;Value&lt;/SPAN&gt;(&lt;SPAN&gt;"Summary"&lt;/SPAN&gt;, &lt;SPAN&gt;"Category"&lt;/SPAN&gt;)=&lt;SPAN&gt;iProperties&lt;/SPAN&gt;.&lt;SPAN&gt;Value&lt;/SPAN&gt;(&lt;SPAN&gt;modelName&lt;/SPAN&gt;, &lt;SPAN&gt;"Summary"&lt;/SPAN&gt;, &lt;SPAN&gt;"Category"&lt;/SPAN&gt;)&lt;/PRE&gt;</description>
      <pubDate>Fri, 14 Jun 2019 17:46:36 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-help-code-for-taking-ipt-iproperties-to-idw-iproperties/m-p/8852559#M74943</guid>
      <dc:creator>simon4D86F</dc:creator>
      <dc:date>2019-06-14T17:46:36Z</dc:date>
    </item>
    <item>
      <title>Re: iLogic Help - Code for taking ipt iProperties to IDW iproperties</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-help-code-for-taking-ipt-iproperties-to-idw-iproperties/m-p/8852651#M74944</link>
      <description>&lt;P&gt;Glad to help.&lt;/P&gt;&lt;P&gt;But I see that I sent the wrong iLogic for the second to send iProperties from the drawing to the 3D.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;' Set a reference to the drawing document.
' This assumes a drawing document is active.
Dim oDrawDoc As DrawingDocument
oDrawDoc = ThisApplication.ActiveDocument

' Set a reference to the active sheet.
Dim oSheet As Sheet
oSheet = oDrawDoc.ActiveSheet

'Get the name Of the first model in the drawing
modelName = IO.Path.GetFileName(ThisDrawing.ModelDocument.FullFileName)

iProperties.Value(modelName, "Custom", "Header 1") = iProperties.Value("Custom", "Header 1")

iProperties.Value(modelName, "Custom", "Header 2") = iProperties.Value("Custom", "Header 2")

iProperties.Value(modelName, "Custom", "Header 3") = iProperties.Value("Custom", "Header 3")

'iProperties.Value(modelName, "Custom", "Remarks") = iProperties.Value("Custom", "Remarks")

iProperties.Value(modelName, "Project", "Part Number")=iProperties.Value("Project", "Part Number")

iProperties.Value(modelName, "Summary", "Company")=iProperties.Value("Summary", "Company")

iProperties.Value(modelName, "Project", "Project")=iProperties.Value("Project", "Project")

iProperties.Value(modelName, "Summary", "Title")=iProperties.Value("Summary", "Title")

iLogicVb.UpdateWhenDone = True&lt;/PRE&gt;</description>
      <pubDate>Fri, 14 Jun 2019 18:42:09 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-help-code-for-taking-ipt-iproperties-to-idw-iproperties/m-p/8852651#M74944</guid>
      <dc:creator>Jesper_S</dc:creator>
      <dc:date>2019-06-14T18:42:09Z</dc:date>
    </item>
  </channel>
</rss>

