<?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 Push iProperty Values To Another File in Inventor Programming Forum</title>
    <link>https://forums.autodesk.com/t5/inventor-programming-forum/push-iproperty-values-to-another-file/m-p/7234741#M99461</link>
    <description>&lt;P&gt;I have an iLogic rule in an assembly file which shrinkwraps the model when the document is closed.&lt;/P&gt;&lt;P&gt;But I would also like to push some of the assemblies' iproperties to the newly created shrinkwrapped part file.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have tried the following code but I get the error:&lt;/P&gt;&lt;P&gt;iProperties:The document named "C:\Inventor Projects\WALKWAYS\WW - WALKWAY ASSEMBLY (SHRINKWRAPPED).ipt" was not found.&lt;/P&gt;&lt;P&gt;even though the file is there in the correct location.&lt;/P&gt;&lt;P&gt;Can anyone see where I'm going wrong?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;Dim docFName As String
Dim oDoc As Inventor.Document = docFName
docFName = ThisDoc.PathAndFileName(False)&amp;amp; " (SHRINKWRAPPED).ipt"
iProperties.Value(docFName, "Project", "Description") = iProperties.Value("Project", "Description")
iProperties.Value(docFName, "Custom", "DRAWING No.") = iProperties.Value("Custom", "DRAWING No.")&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The full iLogic code for the shrinkwrap that I'm trying to use above snippet in is as follows:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;Sub Main()

	'CHECK ACTIVE DOCUMENT IS THE SAME DOCUMENT THAT CONTAINS THIS iLOGIC RULE.
	'THIS CHECK IS TO PREVENT THE RULE FROM ATTEMPTING TO RUN WHEN CLOSING THE DRAWING SHEET.
	Dim activeDoc As Document = ThisApplication.ActiveDocument
	If Not activeDoc Is ThisDoc.Document Then
	Exit Sub
	Else
	
		Question = MessageBox.Show("Do you wish to shrinkwrap the Walkway Assembly now for use in the General Arrangement?", "Walkway Assembly",MessageBoxButtons.YesNo)
		If Question = vbYes Then
		
		Dim oAsmCompDef As AssemblyComponentDefinition
		oAsmCompDef = ThisApplication.ActiveDocument.ComponentDefinition
		oAsmCompDef.RepresentationsManager.DesignViewRepresentations.Item("Default").Activate
		
		Try
			Dim g_App As Inventor.InventorServer = ThisApplication
			Dim AssDoc as Inventor.AssemblyDocument= ThisDoc.Document
			
			'CREATE A NEW PART DOCUMENT THAT WILL BE THE SHRINKWRAP SUBSTITUTE
			Dim oPartDoc As PartDocument
			oPartDoc = g_App.Documents.Add(DocumentTypeEnum.kPartDocumentObject, , True)
			
			Dim oPartDef As PartComponentDefinition
			oPartDef = oPartDoc.ComponentDefinition
			
			Dim oDerivedAssemblyDef As DerivedAssemblyDefinition
			oDerivedAssemblyDef = oPartDef.ReferenceComponents.DerivedAssemblyComponents.CreateDefinition(AssDoc.FullDocumentName)
			'SET VARIOUS SHRINKWRAP RELATED OPTIONS
			oDerivedAssemblyDef.DeriveStyle = DerivedComponentStyleEnum.kDeriveAsMultipleBodies
			oDerivedAssemblyDef.IncludeAllTopLevelWorkFeatures = DerivedComponentOptionEnum.kDerivedExcludeAll
			oDerivedAssemblyDef.IncludeAllTopLevelSketches = DerivedComponentOptionEnum.kDerivedExcludeAll
			oDerivedAssemblyDef.IncludeAllTopLeveliMateDefinitions = DerivedComponentOptionEnum.kDerivedExcludeAll
			oDerivedAssemblyDef.IncludeAllTopLevelParameters = DerivedComponentOptionEnum.kDerivedExcludeAll
			Call oDerivedAssemblyDef.SetHolePatchingOptions(DerivedHolePatchEnum.kDerivedPatchNone)
			Call oDerivedAssemblyDef.SetRemoveByVisibilityOptions(DerivedGeometryRemovalEnum.kDerivedRemoveNone)
			Dim oDerivedAss As DerivedAssemblyComponent
			oDerivedAss = oPartDoc.ComponentDefinition.ReferenceComponents.DerivedAssemblyComponents.Add(oDerivedAssemblyDef)
			Call oDerivedAss.BreakLinkToFile()
									
			'SAVE THE PART
			Dim partname As String=ThisDoc.PathAndFileName(False)&amp;amp; " (SHRINKWRAPPED).ipt"
			ThisApplication.ActiveView.Fit
			ThisApplication.CommandManager.ControlDefinitions.Item("AppIsometricViewCmd").Execute
			Call oPartDoc.SaveAs(partname ,  False)
			
		Catch ex As Exception
			ErrorMessage = "Error creating ipt file."
		End Try
		
		'Try
			Dim docFName As String
			Dim oDoc As Inventor.Document = docFName
			docFName = ThisDoc.PathAndFileName(False)&amp;amp; " (SHRINKWRAPPED).ipt"
			iProperties.Value(docFName, "Project", "Description") = iProperties.Value("Project", "Description")
			iProperties.Value(docFName, "Custom", "DRAWING No.") = iProperties.Value("Custom", "DRAWING No.")
		'Catch
		'End Try
		
		oAsmCompDef.RepresentationsManager.DesignViewRepresentations.Item("Default").Activate
						
		Else
		'CLOSE MESSAGE BOX AND DO NOTHING
		End If
		
	End If

End Sub&lt;/PRE&gt;</description>
    <pubDate>Tue, 18 Jul 2017 08:16:09 GMT</pubDate>
    <dc:creator>kwalker1</dc:creator>
    <dc:date>2017-07-18T08:16:09Z</dc:date>
    <item>
      <title>Push iProperty Values To Another File</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/push-iproperty-values-to-another-file/m-p/7234741#M99461</link>
      <description>&lt;P&gt;I have an iLogic rule in an assembly file which shrinkwraps the model when the document is closed.&lt;/P&gt;&lt;P&gt;But I would also like to push some of the assemblies' iproperties to the newly created shrinkwrapped part file.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have tried the following code but I get the error:&lt;/P&gt;&lt;P&gt;iProperties:The document named "C:\Inventor Projects\WALKWAYS\WW - WALKWAY ASSEMBLY (SHRINKWRAPPED).ipt" was not found.&lt;/P&gt;&lt;P&gt;even though the file is there in the correct location.&lt;/P&gt;&lt;P&gt;Can anyone see where I'm going wrong?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;Dim docFName As String
Dim oDoc As Inventor.Document = docFName
docFName = ThisDoc.PathAndFileName(False)&amp;amp; " (SHRINKWRAPPED).ipt"
iProperties.Value(docFName, "Project", "Description") = iProperties.Value("Project", "Description")
iProperties.Value(docFName, "Custom", "DRAWING No.") = iProperties.Value("Custom", "DRAWING No.")&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The full iLogic code for the shrinkwrap that I'm trying to use above snippet in is as follows:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;Sub Main()

	'CHECK ACTIVE DOCUMENT IS THE SAME DOCUMENT THAT CONTAINS THIS iLOGIC RULE.
	'THIS CHECK IS TO PREVENT THE RULE FROM ATTEMPTING TO RUN WHEN CLOSING THE DRAWING SHEET.
	Dim activeDoc As Document = ThisApplication.ActiveDocument
	If Not activeDoc Is ThisDoc.Document Then
	Exit Sub
	Else
	
		Question = MessageBox.Show("Do you wish to shrinkwrap the Walkway Assembly now for use in the General Arrangement?", "Walkway Assembly",MessageBoxButtons.YesNo)
		If Question = vbYes Then
		
		Dim oAsmCompDef As AssemblyComponentDefinition
		oAsmCompDef = ThisApplication.ActiveDocument.ComponentDefinition
		oAsmCompDef.RepresentationsManager.DesignViewRepresentations.Item("Default").Activate
		
		Try
			Dim g_App As Inventor.InventorServer = ThisApplication
			Dim AssDoc as Inventor.AssemblyDocument= ThisDoc.Document
			
			'CREATE A NEW PART DOCUMENT THAT WILL BE THE SHRINKWRAP SUBSTITUTE
			Dim oPartDoc As PartDocument
			oPartDoc = g_App.Documents.Add(DocumentTypeEnum.kPartDocumentObject, , True)
			
			Dim oPartDef As PartComponentDefinition
			oPartDef = oPartDoc.ComponentDefinition
			
			Dim oDerivedAssemblyDef As DerivedAssemblyDefinition
			oDerivedAssemblyDef = oPartDef.ReferenceComponents.DerivedAssemblyComponents.CreateDefinition(AssDoc.FullDocumentName)
			'SET VARIOUS SHRINKWRAP RELATED OPTIONS
			oDerivedAssemblyDef.DeriveStyle = DerivedComponentStyleEnum.kDeriveAsMultipleBodies
			oDerivedAssemblyDef.IncludeAllTopLevelWorkFeatures = DerivedComponentOptionEnum.kDerivedExcludeAll
			oDerivedAssemblyDef.IncludeAllTopLevelSketches = DerivedComponentOptionEnum.kDerivedExcludeAll
			oDerivedAssemblyDef.IncludeAllTopLeveliMateDefinitions = DerivedComponentOptionEnum.kDerivedExcludeAll
			oDerivedAssemblyDef.IncludeAllTopLevelParameters = DerivedComponentOptionEnum.kDerivedExcludeAll
			Call oDerivedAssemblyDef.SetHolePatchingOptions(DerivedHolePatchEnum.kDerivedPatchNone)
			Call oDerivedAssemblyDef.SetRemoveByVisibilityOptions(DerivedGeometryRemovalEnum.kDerivedRemoveNone)
			Dim oDerivedAss As DerivedAssemblyComponent
			oDerivedAss = oPartDoc.ComponentDefinition.ReferenceComponents.DerivedAssemblyComponents.Add(oDerivedAssemblyDef)
			Call oDerivedAss.BreakLinkToFile()
									
			'SAVE THE PART
			Dim partname As String=ThisDoc.PathAndFileName(False)&amp;amp; " (SHRINKWRAPPED).ipt"
			ThisApplication.ActiveView.Fit
			ThisApplication.CommandManager.ControlDefinitions.Item("AppIsometricViewCmd").Execute
			Call oPartDoc.SaveAs(partname ,  False)
			
		Catch ex As Exception
			ErrorMessage = "Error creating ipt file."
		End Try
		
		'Try
			Dim docFName As String
			Dim oDoc As Inventor.Document = docFName
			docFName = ThisDoc.PathAndFileName(False)&amp;amp; " (SHRINKWRAPPED).ipt"
			iProperties.Value(docFName, "Project", "Description") = iProperties.Value("Project", "Description")
			iProperties.Value(docFName, "Custom", "DRAWING No.") = iProperties.Value("Custom", "DRAWING No.")
		'Catch
		'End Try
		
		oAsmCompDef.RepresentationsManager.DesignViewRepresentations.Item("Default").Activate
						
		Else
		'CLOSE MESSAGE BOX AND DO NOTHING
		End If
		
	End If

End Sub&lt;/PRE&gt;</description>
      <pubDate>Tue, 18 Jul 2017 08:16:09 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/push-iproperty-values-to-another-file/m-p/7234741#M99461</guid>
      <dc:creator>kwalker1</dc:creator>
      <dc:date>2017-07-18T08:16:09Z</dc:date>
    </item>
    <item>
      <title>Re: Push iProperty Values To Another File</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/push-iproperty-values-to-another-file/m-p/7234868#M99462</link>
      <description>&lt;P&gt;Here you go:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;Sub Main()
    Dim aDoc As Document = ThisApplication.ActiveDocument
    If aDoc.DocumentType &amp;lt;&amp;gt; DocumentTypeEnum.kAssemblyDocumentObject Then Exit Sub &lt;FONT color="#0000FF"&gt;&lt;STRONG&gt;'Assembly documents only&lt;/STRONG&gt;&lt;/FONT&gt;
    
    Question = MessageBox.Show("Do you wish to shrinkwrap the Walkway Assembly now for use in the General Arrangement?", "Walkway Assembly",MessageBoxButtons.YesNo)
    If Question &amp;lt;&amp;gt; vbYes Then
        Exit Sub &lt;FONT color="#0000FF"&gt;&lt;STRONG&gt;'Exit&lt;/STRONG&gt;&lt;/FONT&gt;
    End If
    
    Dim oAsmCompDef As AssemblyComponentDefinition = aDoc.ComponentDefinition
    oAsmCompDef.RepresentationsManager.DesignViewRepresentations.Item("Default").Activate
    Dim sPartName As String = vbNullString
    Dim sDescription As String = iProperties.Value("Project", "Description")
    Dim sDrawing As String = iProperties.Value("Custom", "DRAWING No.")
    Try
        &lt;FONT color="#0000FF"&gt;&lt;STRONG&gt;'CREATE A NEW PART DOCUMENT THAT WILL BE THE SHRINKWRAP SUBSTITUTE&lt;/STRONG&gt;&lt;/FONT&gt;
        Dim oPartDoc As PartDocument = ThisApplication.Documents.Add(DocumentTypeEnum.kPartDocumentObject, , True)
        Dim oPartDef As PartComponentDefinition = oPartDoc.ComponentDefinition
        Dim oDerivedAssemblyDef As DerivedAssemblyDefinition = oPartDef.ReferenceComponents.DerivedAssemblyComponents.CreateDefinition(aDoc.FullDocumentName)
        &lt;FONT color="#0000FF"&gt;&lt;STRONG&gt;'SET VARIOUS SHRINKWRAP RELATED OPTIONS&lt;/STRONG&gt;&lt;/FONT&gt;
        oDerivedAssemblyDef.DeriveStyle = DerivedComponentStyleEnum.kDeriveAsMultipleBodies
        oDerivedAssemblyDef.IncludeAllTopLevelWorkFeatures = DerivedComponentOptionEnum.kDerivedExcludeAll
        oDerivedAssemblyDef.IncludeAllTopLevelSketches = DerivedComponentOptionEnum.kDerivedExcludeAll
        oDerivedAssemblyDef.IncludeAllTopLeveliMateDefinitions = DerivedComponentOptionEnum.kDerivedExcludeAll
        oDerivedAssemblyDef.IncludeAllTopLevelParameters = DerivedComponentOptionEnum.kDerivedExcludeAll
        Call oDerivedAssemblyDef.SetHolePatchingOptions(DerivedHolePatchEnum.kDerivedPatchNone)
        Call oDerivedAssemblyDef.SetRemoveByVisibilityOptions(DerivedGeometryRemovalEnum.kDerivedRemoveNone)
        Dim oDerivedAss As DerivedAssemblyComponent = oPartDoc.ComponentDefinition.ReferenceComponents.DerivedAssemblyComponents.Add(oDerivedAssemblyDef)
        Call oDerivedAss.BreakLinkToFile()
        
        &lt;FONT color="#0000FF"&gt;&lt;STRONG&gt;'SAVE THE PART&lt;/STRONG&gt;&lt;/FONT&gt;
        sPartName = ThisDoc.PathAndFileName(False) &amp;amp; " (SHRINKWRAPPED).ipt"
        ThisApplication.ActiveView.Fit()
        ThisApplication.CommandManager.ControlDefinitions.Item("AppIsometricViewCmd").Execute()
        Call oPartDoc.SaveAs(sPartName, False)
    Catch ex As Exception
        MsgBox("Error creating ipt file:" &amp;amp; vblf &amp;amp; ex.message)
    End Try
    
    &lt;FONT color="#0000FF"&gt;&lt;STRONG&gt;'Try&lt;/STRONG&gt;&lt;/FONT&gt;
        If sPartName = vbNullString Then Exit Sub
        &lt;STRONG&gt;&lt;FONT color="#FF0000"&gt;Dim oDoc As Inventor.Document = ThisApplication.Documents.Open(sPartName, True)&lt;/FONT&gt;&lt;/STRONG&gt;
        iProperties.Value(sPartName, "Project", "Description") = sDescription
        iProperties.Value(sPartName, "Custom", "DRAWING No.") = sDrawing
        &lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;oDoc.Save()
        oDoc.Close()&lt;/STRONG&gt;&lt;/FONT&gt;
    &lt;FONT color="#0000FF"&gt;&lt;STRONG&gt;'Catch
    'End Try&lt;/STRONG&gt;&lt;/FONT&gt;
    
    oAsmCompDef.RepresentationsManager.DesignViewRepresentations.Item("Default").Activate
End Sub&lt;/PRE&gt;</description>
      <pubDate>Tue, 18 Jul 2017 09:31:10 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/push-iproperty-values-to-another-file/m-p/7234868#M99462</guid>
      <dc:creator>Owner2229</dc:creator>
      <dc:date>2017-07-18T09:31:10Z</dc:date>
    </item>
    <item>
      <title>Re: Push iProperty Values To Another File</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/push-iproperty-values-to-another-file/m-p/7237136#M99463</link>
      <description>&lt;P&gt;Thanks Mike for the reply.&lt;/P&gt;&lt;P&gt;But unfortunately I am still getting the same error with the code you suggest.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The model shrinkwraps correctly and opens but then the error in rule dialogue box appears stating:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Error in rule: Shrinkwrap, in document: WW - WALKWAY ASSEMBLY.iam&lt;BR /&gt;iProperties:The document named "C:\Inventor Projects\WALKWAYS\WW - WALKWAY ASSEMBLY (SHRINKWRAPPED).ipt" was not found.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I check the shrinkwrap's iproperties, the Description property remains blank and no custom Drawing No. property is created.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It seems like the iproperties part of the code is trying to look for an instance of the part file inside the assembly rather than in the project folder.&lt;/P&gt;&lt;P&gt;Do you think this is what's happening?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Cheers.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Kurt.&lt;/P&gt;</description>
      <pubDate>Wed, 19 Jul 2017 00:19:02 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/push-iproperty-values-to-another-file/m-p/7237136#M99463</guid>
      <dc:creator>kwalker1</dc:creator>
      <dc:date>2017-07-19T00:19:02Z</dc:date>
    </item>
    <item>
      <title>Re: Push iProperty Values To Another File</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/push-iproperty-values-to-another-file/m-p/7237577#M99464</link>
      <description>&lt;P&gt;Alright, a little correction. We can't use the full name to update the part's iProperty, but we can use a little more "direct" approach:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;Sub Main()
    Dim aDoc As Document = ThisApplication.ActiveDocument
    If aDoc.DocumentType &amp;lt;&amp;gt; DocumentTypeEnum.kAssemblyDocumentObject Then Exit Sub &lt;FONT color="#0000FF"&gt;&lt;STRONG&gt;'Assembly documents only&lt;/STRONG&gt;&lt;/FONT&gt;
    
    Question = MessageBox.Show("Do you wish to shrinkwrap the Walkway Assembly now for use in the General Arrangement?", "Walkway Assembly",MessageBoxButtons.YesNo)
    If Question &amp;lt;&amp;gt; vbYes Then
        Exit Sub &lt;FONT color="#0000FF"&gt;&lt;STRONG&gt;'Exit&lt;/STRONG&gt;&lt;/FONT&gt;
    End If
    
    Dim oAsmCompDef As AssemblyComponentDefinition = aDoc.ComponentDefinition
    oAsmCompDef.RepresentationsManager.DesignViewRepresentations.Item("Default").Activate
    Dim sPartName As String = vbNullString
    Dim sDescription As String = iProperties.Value("Project", "Description")
    Dim sDrawing As String = iProperties.Value("Custom", "DRAWING No.")
    Try
        &lt;FONT color="#0000FF"&gt;&lt;STRONG&gt;'CREATE A NEW PART DOCUMENT THAT WILL BE THE SHRINKWRAP SUBSTITUTE&lt;/STRONG&gt;&lt;/FONT&gt;
        Dim oPartDoc As PartDocument = ThisApplication.Documents.Add(DocumentTypeEnum.kPartDocumentObject, , True)
        Dim oPartDef As PartComponentDefinition = oPartDoc.ComponentDefinition
        Dim oDerivedAssemblyDef As DerivedAssemblyDefinition = oPartDef.ReferenceComponents.DerivedAssemblyComponents.CreateDefinition(aDoc.FullDocumentName)
        &lt;FONT color="#0000FF"&gt;&lt;STRONG&gt;'SET VARIOUS SHRINKWRAP RELATED OPTIONS&lt;/STRONG&gt;&lt;/FONT&gt;
        oDerivedAssemblyDef.DeriveStyle = DerivedComponentStyleEnum.kDeriveAsMultipleBodies
        oDerivedAssemblyDef.IncludeAllTopLevelWorkFeatures = DerivedComponentOptionEnum.kDerivedExcludeAll
        oDerivedAssemblyDef.IncludeAllTopLevelSketches = DerivedComponentOptionEnum.kDerivedExcludeAll
        oDerivedAssemblyDef.IncludeAllTopLeveliMateDefinitions = DerivedComponentOptionEnum.kDerivedExcludeAll
        oDerivedAssemblyDef.IncludeAllTopLevelParameters = DerivedComponentOptionEnum.kDerivedExcludeAll
        Call oDerivedAssemblyDef.SetHolePatchingOptions(DerivedHolePatchEnum.kDerivedPatchNone)
        Call oDerivedAssemblyDef.SetRemoveByVisibilityOptions(DerivedGeometryRemovalEnum.kDerivedRemoveNone)
        Dim oDerivedAss As DerivedAssemblyComponent = oPartDoc.ComponentDefinition.ReferenceComponents.DerivedAssemblyComponents.Add(oDerivedAssemblyDef)
        Call oDerivedAss.BreakLinkToFile()
        
        &lt;FONT color="#0000FF"&gt;&lt;STRONG&gt;'SAVE THE PART&lt;/STRONG&gt;&lt;/FONT&gt;
        sPartName = ThisDoc.PathAndFileName(False) &amp;amp; " (SHRINKWRAPPED).ipt"
        ThisApplication.ActiveView.Fit()
        ThisApplication.CommandManager.ControlDefinitions.Item("AppIsometricViewCmd").Execute()
        Call oPartDoc.SaveAs(sPartName, False)
    Catch ex As Exception
        MsgBox("Error creating ipt file:" &amp;amp; vblf &amp;amp; ex.message)
    End Try
    
    &lt;FONT color="#0000FF"&gt;&lt;STRONG&gt;'Try&lt;/STRONG&gt;&lt;/FONT&gt;
        If sPartName = vbNullString Then Exit Sub
        &lt;STRONG&gt;&lt;FONT color="#FF0000"&gt;Dim oDoc As Inventor.Document = ThisApplication.Documents.Open(sPartName, True)&lt;/FONT&gt;&lt;/STRONG&gt;
        &lt;SPAN&gt;Dim&lt;/SPAN&gt;&amp;nbsp;oPropsets&amp;nbsp;&lt;SPAN&gt;As&lt;/SPAN&gt;&amp;nbsp;PropertySets = oDoc.PropertySets&lt;BR /&gt;        &lt;SPAN&gt;Dim&lt;/SPAN&gt;&amp;nbsp;oProject&amp;nbsp;&lt;SPAN&gt;As&lt;/SPAN&gt;&amp;nbsp;PropertySet = oPropsets.Item(&lt;SPAN&gt;"{32853F0F-3444-11D1-9E93-0060B03C1CA6}"&lt;/SPAN&gt;)&lt;BR /&gt;&lt;SPAN&gt;        Dim&lt;/SPAN&gt;&amp;nbsp;oCustom&amp;nbsp;&lt;SPAN&gt;As&lt;/SPAN&gt;&amp;nbsp;PropertySet = oPropsets.Item(&lt;SPAN&gt;"{D5CDD505-2E9C-101B-9397-08002B2CF9AE}"&lt;/SPAN&gt;)&lt;BR /&gt;        oProject("Description").Expression = sDescription&lt;BR /&gt;        Dim oDrawing As Inventor.Property&lt;BR /&gt;        Try&lt;BR /&gt;            oDrawing = oCustom("DRAWING No.")&lt;BR /&gt;        Catch&lt;BR /&gt;            oDrawing = oCustom.Add("", "DRAWING No.")&lt;BR /&gt;        End Try
        oDrawing.Expression = sDrawing
        &lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;oDoc.Save()
        oDoc.Close()&lt;/STRONG&gt;&lt;/FONT&gt;
    &lt;FONT color="#0000FF"&gt;&lt;STRONG&gt;'Catch
    'End Try&lt;/STRONG&gt;&lt;/FONT&gt;
    
    oAsmCompDef.RepresentationsManager.DesignViewRepresentations.Item("Default").Activate
End Sub&amp;nbsp;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 19 Jul 2017 06:56:53 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/push-iproperty-values-to-another-file/m-p/7237577#M99464</guid>
      <dc:creator>Owner2229</dc:creator>
      <dc:date>2017-07-19T06:56:53Z</dc:date>
    </item>
    <item>
      <title>Re: Push iProperty Values To Another File</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/push-iproperty-values-to-another-file/m-p/7240608#M99465</link>
      <description>&lt;P&gt;Hi Mike,&lt;/P&gt;&lt;P&gt;The code is working perfectly now.&lt;/P&gt;&lt;P&gt;Together with the code you suggested and referring back to the API Help, you have helped expand my (and hopefully others) iLogics knowledge a little further.&lt;/P&gt;&lt;P&gt;My sincere thanks for your assistance.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Cheers.&lt;/P&gt;&lt;P&gt;Kurt.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 20 Jul 2017 01:07:56 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/push-iproperty-values-to-another-file/m-p/7240608#M99465</guid>
      <dc:creator>kwalker1</dc:creator>
      <dc:date>2017-07-20T01:07:56Z</dc:date>
    </item>
    <item>
      <title>Re: Push iProperty Values To Another File</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/push-iproperty-values-to-another-file/m-p/9124745#M99466</link>
      <description>&lt;P&gt;Thanks, you solved the problem I was having too &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 04 Nov 2019 03:23:01 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/push-iproperty-values-to-another-file/m-p/9124745#M99466</guid>
      <dc:creator>ic198</dc:creator>
      <dc:date>2019-11-04T03:23:01Z</dc:date>
    </item>
  </channel>
</rss>

