<?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: making a step from a iPart/iAssembly on a drawing level in Inventor Programming Forum</title>
    <link>https://forums.autodesk.com/t5/inventor-programming-forum/making-a-step-from-a-ipart-iassembly-on-a-drawing-level/m-p/11380562#M33752</link>
    <description>&lt;P&gt;Hi &lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/7196205"&gt;@FeelGoodGirl&lt;/a&gt;.&amp;nbsp; I do not currently use iParts or iAssemblies, but I do have some ideas about this scenario.&amp;nbsp; I have a question first though.&amp;nbsp; Is there more than one model document being represented within your drawing document?&amp;nbsp; Is there more than one view of that model (or each model) within the drawing?&amp;nbsp; If there are other views of the model, are the other views representing other variations of that model...such as other iPart/iAssembly members of the same source iPart/iAssembly Factory?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I see that you are getting the 'model' document through the 'active' document's 'AllReferencedDocuments' first item.&amp;nbsp; In a situation like this, where there are multiple variations (members) of the same base model within the 'model' document,&amp;nbsp; I believe it may be best to get the 'model' document from a specific DrawingView.&amp;nbsp; If you need the exported model to match the exact variation being shown within a specific view, then the DrawingView object has a property called 'ActiveMemberName' which I believe is supposed to return the name of the iPart/iAssembly member variation that this view is currently showing/representing.&amp;nbsp; This will help us later to ensure we have the proper associated model for the export process.&amp;nbsp; Once we extract the basic 'model' Document object from the view, we will then need to work with it a bit to ensure we are working with that specific variation (member) that matches what the view was showing.&amp;nbsp; The Part &amp;amp; Assembly specific types of component definition objects have properties that will help us determine if the model is a 'factory' or 'member', and ways to switch to the one we want to export, if it doesn't match the view.&lt;/P&gt;</description>
    <pubDate>Thu, 25 Aug 2022 12:27:24 GMT</pubDate>
    <dc:creator>WCrihfield</dc:creator>
    <dc:date>2022-08-25T12:27:24Z</dc:date>
    <item>
      <title>making a step from a iPart/iAssembly on a drawing level</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/making-a-step-from-a-ipart-iassembly-on-a-drawing-level/m-p/11380347#M33751</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;To make the work easier, I wrote a piece of code to complete the entire process with 1 push of a button. This almost completely works. This is done at drawing level. It is then saves the file, a step and PDF are created and the file is checked in. Making a step is not going well.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If this is a model with 1 file it is no problem. Then the code works fine. However, we use iParts and iAssemblies within the company. Then my code doesn't work good anymore. It seems that then the last open model is used.&amp;nbsp;To better explain what goes wrong, I also made this image.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ymvdbosch_0-1661422900490.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1107912i54119F38F5346E3F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="ymvdbosch_0-1661422900490.png" alt="ymvdbosch_0-1661422900490.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;This is the code that i use now.&amp;nbsp;I've only shown the step making here. The rest of the code doesn't apply to my problem.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt;' The code to make a step from a drawing&lt;/SPAN&gt;

&lt;SPAN&gt;Sub&lt;/SPAN&gt; &lt;SPAN&gt;Main&lt;/SPAN&gt;

	&lt;SPAN&gt;'The save path for option 3&lt;/SPAN&gt;
	&lt;SPAN&gt;SavePath&lt;/SPAN&gt; = &lt;SPAN&gt;"C:\TEMP"&lt;/SPAN&gt;

	&lt;SPAN&gt;'Name of the file&lt;/SPAN&gt;
	&lt;SPAN&gt;Name&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;"Stock Number"&lt;/SPAN&gt;)
	&lt;SPAN&gt;Rev&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;"Revision Number"&lt;/SPAN&gt;)

	&lt;SPAN&gt;FileName&lt;/SPAN&gt; = &lt;SPAN&gt;Name&lt;/SPAN&gt; + &lt;SPAN&gt;"-"&lt;/SPAN&gt; + &lt;SPAN&gt;Rev&lt;/SPAN&gt;

	&lt;SPAN&gt;'SaveOption	&lt;/SPAN&gt;
	&lt;SPAN&gt;SaveLocation&lt;/SPAN&gt; = &lt;SPAN&gt;SavePath&lt;/SPAN&gt;

	&lt;SPAN&gt;'Check the last sign for \&lt;/SPAN&gt;
	&lt;SPAN&gt;CheckLastSign&lt;/SPAN&gt; = &lt;SPAN&gt;Right&lt;/SPAN&gt;(&lt;SPAN&gt;SaveLocation&lt;/SPAN&gt;, 1)
	&lt;SPAN&gt;If&lt;/SPAN&gt; &lt;SPAN&gt;CheckLastSign&lt;/SPAN&gt; &amp;lt;&amp;gt; &lt;SPAN&gt;"\"&lt;/SPAN&gt; &lt;SPAN&gt;Then&lt;/SPAN&gt;
		&lt;SPAN&gt;SaveLocation&lt;/SPAN&gt; = &lt;SPAN&gt;SaveLocation&lt;/SPAN&gt; + &lt;SPAN&gt;"\"&lt;/SPAN&gt;
	&lt;SPAN&gt;End&lt;/SPAN&gt; &lt;SPAN&gt;If&lt;/SPAN&gt;

	&lt;SPAN&gt;'Combine location and name &lt;/SPAN&gt;
	&lt;SPAN&gt;LocationFileName&lt;/SPAN&gt; = &lt;SPAN&gt;SaveLocation&lt;/SPAN&gt; + &lt;SPAN&gt;FileName&lt;/SPAN&gt;

	&lt;SPAN&gt;'Get the model and make STEP&lt;/SPAN&gt;
	&lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;oModel&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;Document&lt;/SPAN&gt; = &lt;SPAN&gt;ThisApplication&lt;/SPAN&gt;.&lt;SPAN&gt;ActiveDocument&lt;/SPAN&gt;.&lt;SPAN&gt;AllReferencedDocuments&lt;/SPAN&gt;.&lt;SPAN&gt;Item&lt;/SPAN&gt;(1)
	&lt;SPAN&gt;If&lt;/SPAN&gt; &lt;SPAN&gt;oModel&lt;/SPAN&gt;.&lt;SPAN&gt;DocumentType&lt;/SPAN&gt; = &lt;SPAN&gt;DocumentTypeEnum&lt;/SPAN&gt;.&lt;SPAN&gt;kPartDocumentObject&lt;/SPAN&gt; &lt;SPAN&gt;Or&lt;/SPAN&gt; _
		&lt;SPAN&gt;oModel&lt;/SPAN&gt;.&lt;SPAN&gt;DocumentType&lt;/SPAN&gt; = &lt;SPAN&gt;DocumentTypeEnum&lt;/SPAN&gt;.&lt;SPAN&gt;kAssemblyDocumentObject&lt;/SPAN&gt; &lt;SPAN&gt;Then&lt;/SPAN&gt;
		&lt;SPAN&gt;'Make STEP&lt;/SPAN&gt;
		&lt;SPAN&gt;ExportToSTEP&lt;/SPAN&gt;(&lt;SPAN&gt;oModel&lt;/SPAN&gt;, &lt;SPAN&gt;SaveLocation&lt;/SPAN&gt;, &lt;SPAN&gt;LocationFileName&lt;/SPAN&gt;)
	&lt;SPAN&gt;End&lt;/SPAN&gt; &lt;SPAN&gt;If&lt;/SPAN&gt;
&lt;SPAN&gt;End&lt;/SPAN&gt; &lt;SPAN&gt;Sub&lt;/SPAN&gt;

&lt;SPAN&gt;Sub&lt;/SPAN&gt; &lt;SPAN&gt;ExportToSTEP&lt;/SPAN&gt;(&lt;SPAN&gt;oModelDoc&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;Document&lt;/SPAN&gt;, &lt;SPAN&gt;SaveLocation&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;String&lt;/SPAN&gt;, &lt;SPAN&gt;LocationFileName&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;String&lt;/SPAN&gt;)
	&lt;SPAN&gt;'Get the STEP translator add-in&lt;/SPAN&gt;
	&lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;oSTEP&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;TranslatorAddIn&lt;/SPAN&gt;
	&lt;SPAN&gt;For&lt;/SPAN&gt; &lt;SPAN&gt;Each&lt;/SPAN&gt; &lt;SPAN&gt;oAddIn&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;ApplicationAddIn&lt;/SPAN&gt; &lt;SPAN&gt;In&lt;/SPAN&gt; &lt;SPAN&gt;ThisApplication&lt;/SPAN&gt;.&lt;SPAN&gt;ApplicationAddIns&lt;/SPAN&gt;
		&lt;SPAN&gt;If&lt;/SPAN&gt; &lt;SPAN&gt;oAddIn&lt;/SPAN&gt;.&lt;SPAN&gt;DisplayName&lt;/SPAN&gt; = &lt;SPAN&gt;"Translator: STEP"&lt;/SPAN&gt; &lt;SPAN&gt;Then&lt;/SPAN&gt;
			&lt;SPAN&gt;oSTEP&lt;/SPAN&gt; = &lt;SPAN&gt;oAddIn&lt;/SPAN&gt;
		&lt;SPAN&gt;End&lt;/SPAN&gt; &lt;SPAN&gt;If&lt;/SPAN&gt;
	&lt;SPAN&gt;Next&lt;/SPAN&gt;
	&lt;SPAN&gt;If&lt;/SPAN&gt; &lt;SPAN&gt;IsNothing&lt;/SPAN&gt;(&lt;SPAN&gt;oSTEP&lt;/SPAN&gt;) &lt;SPAN&gt;Then&lt;/SPAN&gt;
		&lt;SPAN&gt;MsgBox&lt;/SPAN&gt;(&lt;SPAN&gt;"STEP Translator Add-in not found.  Exiting."&lt;/SPAN&gt;, &lt;SPAN&gt;vbCritical&lt;/SPAN&gt;, &lt;SPAN&gt;"iLogic"&lt;/SPAN&gt;)
		&lt;SPAN&gt;Exit&lt;/SPAN&gt; &lt;SPAN&gt;Sub&lt;/SPAN&gt;
	&lt;SPAN&gt;End&lt;/SPAN&gt; &lt;SPAN&gt;If&lt;/SPAN&gt;

	&lt;SPAN&gt;'Create needed variables for translator&lt;/SPAN&gt;
	&lt;SPAN&gt;oTO&lt;/SPAN&gt; = &lt;SPAN&gt;ThisApplication&lt;/SPAN&gt;.&lt;SPAN&gt;TransientObjects&lt;/SPAN&gt;
	&lt;SPAN&gt;oContext&lt;/SPAN&gt; = &lt;SPAN&gt;oTO&lt;/SPAN&gt;.&lt;SPAN&gt;CreateTranslationContext&lt;/SPAN&gt;
	&lt;SPAN&gt;oContext&lt;/SPAN&gt;.&lt;SPAN&gt;Type&lt;/SPAN&gt; = &lt;SPAN&gt;IOMechanismEnum&lt;/SPAN&gt;.&lt;SPAN&gt;kFileBrowseIOMechanism&lt;/SPAN&gt;
	&lt;SPAN&gt;oOptions&lt;/SPAN&gt; = &lt;SPAN&gt;oTO&lt;/SPAN&gt;.&lt;SPAN&gt;CreateNameValueMap&lt;/SPAN&gt;
	&lt;SPAN&gt;oDataMedium&lt;/SPAN&gt; = &lt;SPAN&gt;oTO&lt;/SPAN&gt;.&lt;SPAN&gt;CreateDataMedium&lt;/SPAN&gt;

	&lt;SPAN&gt;oDataMedium&lt;/SPAN&gt;.&lt;SPAN&gt;FileName&lt;/SPAN&gt; = &lt;SPAN&gt;LocationFileName&lt;/SPAN&gt; + &lt;SPAN&gt;".stp"&lt;/SPAN&gt;

	&lt;SPAN&gt;If&lt;/SPAN&gt; &lt;SPAN&gt;oSTEP&lt;/SPAN&gt;.&lt;SPAN&gt;HasSaveCopyAsOptions&lt;/SPAN&gt;(&lt;SPAN&gt;oModelDoc&lt;/SPAN&gt;, &lt;SPAN&gt;oContext&lt;/SPAN&gt;, &lt;SPAN&gt;oOptions&lt;/SPAN&gt;) &lt;SPAN&gt;Then&lt;/SPAN&gt;
		&lt;SPAN&gt;' Set application protocol.&lt;/SPAN&gt;
		&lt;SPAN&gt;' 2 = AP 203 - Configuration Controlled Design&lt;/SPAN&gt;
		&lt;SPAN&gt;' 3 = AP 214 - Automotive Design&lt;/SPAN&gt;
		&lt;SPAN&gt;oOptions&lt;/SPAN&gt;.&lt;SPAN&gt;Value&lt;/SPAN&gt;(&lt;SPAN&gt;"ApplicationProtocolType"&lt;/SPAN&gt;) = 3
		&lt;SPAN&gt;oOptions&lt;/SPAN&gt;.&lt;SPAN&gt;Value&lt;/SPAN&gt;(&lt;SPAN&gt;"IncludeSketches"&lt;/SPAN&gt;) = &lt;SPAN&gt;True&lt;/SPAN&gt;
		&lt;SPAN&gt;oOptions&lt;/SPAN&gt;.&lt;SPAN&gt;Value&lt;/SPAN&gt;(&lt;SPAN&gt;"export_fit_tolerance"&lt;/SPAN&gt;) = .000393701 &lt;SPAN&gt;'minimum&lt;/SPAN&gt;
		&lt;SPAN&gt;oOptions&lt;/SPAN&gt;.&lt;SPAN&gt;Value&lt;/SPAN&gt;(&lt;SPAN&gt;"Author"&lt;/SPAN&gt;) = &lt;SPAN&gt;ThisApplication&lt;/SPAN&gt;.&lt;SPAN&gt;GeneralOptions&lt;/SPAN&gt;.&lt;SPAN&gt;UserName&lt;/SPAN&gt;
		&lt;SPAN&gt;oOptions&lt;/SPAN&gt;.&lt;SPAN&gt;Value&lt;/SPAN&gt;(&lt;SPAN&gt;"Authorization"&lt;/SPAN&gt;) = &lt;SPAN&gt;""&lt;/SPAN&gt;
		&lt;SPAN&gt;oOptions&lt;/SPAN&gt;.&lt;SPAN&gt;Value&lt;/SPAN&gt;(&lt;SPAN&gt;"Description"&lt;/SPAN&gt;) = &lt;SPAN&gt;oModelDoc&lt;/SPAN&gt;.&lt;SPAN&gt;PropertySets&lt;/SPAN&gt;(3).&lt;SPAN&gt;Item&lt;/SPAN&gt;(&lt;SPAN&gt;"Description"&lt;/SPAN&gt;).&lt;SPAN&gt;Value&lt;/SPAN&gt;
		&lt;SPAN&gt;oOptions&lt;/SPAN&gt;.&lt;SPAN&gt;Value&lt;/SPAN&gt;(&lt;SPAN&gt;"Organization"&lt;/SPAN&gt;) = &lt;SPAN&gt;oModelDoc&lt;/SPAN&gt;.&lt;SPAN&gt;PropertySets&lt;/SPAN&gt;(2).&lt;SPAN&gt;Item&lt;/SPAN&gt;(&lt;SPAN&gt;"Company"&lt;/SPAN&gt;).&lt;SPAN&gt;Value&lt;/SPAN&gt;
		&lt;SPAN&gt;Try&lt;/SPAN&gt;
			&lt;SPAN&gt;oSTEP&lt;/SPAN&gt;.&lt;SPAN&gt;SaveCopyAs&lt;/SPAN&gt;(&lt;SPAN&gt;oModelDoc&lt;/SPAN&gt;, &lt;SPAN&gt;oContext&lt;/SPAN&gt;, &lt;SPAN&gt;oOptions&lt;/SPAN&gt;, &lt;SPAN&gt;oDataMedium&lt;/SPAN&gt;)
		&lt;SPAN&gt;Catch&lt;/SPAN&gt;
			&lt;SPAN&gt;MsgBox&lt;/SPAN&gt;(&lt;SPAN&gt;"Export drawing model to STEP file failed."&lt;/SPAN&gt;, &lt;SPAN&gt;vbExclamation&lt;/SPAN&gt;, &lt;SPAN&gt;"Export to step error"&lt;/SPAN&gt;)
		&lt;SPAN&gt;End&lt;/SPAN&gt; &lt;SPAN&gt;Try&lt;/SPAN&gt;
	&lt;SPAN&gt;End&lt;/SPAN&gt; &lt;SPAN&gt;If&lt;/SPAN&gt;
&lt;SPAN&gt;End&lt;/SPAN&gt; &lt;SPAN&gt;Sub&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hopefully it is clear what is going wrong and what I am trying to achieve. Does anyone know how I can fix this?&lt;/P&gt;</description>
      <pubDate>Thu, 25 Aug 2022 10:24:08 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/making-a-step-from-a-ipart-iassembly-on-a-drawing-level/m-p/11380347#M33751</guid>
      <dc:creator>FeelGoodGirl</dc:creator>
      <dc:date>2022-08-25T10:24:08Z</dc:date>
    </item>
    <item>
      <title>Re: making a step from a iPart/iAssembly on a drawing level</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/making-a-step-from-a-ipart-iassembly-on-a-drawing-level/m-p/11380562#M33752</link>
      <description>&lt;P&gt;Hi &lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/7196205"&gt;@FeelGoodGirl&lt;/a&gt;.&amp;nbsp; I do not currently use iParts or iAssemblies, but I do have some ideas about this scenario.&amp;nbsp; I have a question first though.&amp;nbsp; Is there more than one model document being represented within your drawing document?&amp;nbsp; Is there more than one view of that model (or each model) within the drawing?&amp;nbsp; If there are other views of the model, are the other views representing other variations of that model...such as other iPart/iAssembly members of the same source iPart/iAssembly Factory?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I see that you are getting the 'model' document through the 'active' document's 'AllReferencedDocuments' first item.&amp;nbsp; In a situation like this, where there are multiple variations (members) of the same base model within the 'model' document,&amp;nbsp; I believe it may be best to get the 'model' document from a specific DrawingView.&amp;nbsp; If you need the exported model to match the exact variation being shown within a specific view, then the DrawingView object has a property called 'ActiveMemberName' which I believe is supposed to return the name of the iPart/iAssembly member variation that this view is currently showing/representing.&amp;nbsp; This will help us later to ensure we have the proper associated model for the export process.&amp;nbsp; Once we extract the basic 'model' Document object from the view, we will then need to work with it a bit to ensure we are working with that specific variation (member) that matches what the view was showing.&amp;nbsp; The Part &amp;amp; Assembly specific types of component definition objects have properties that will help us determine if the model is a 'factory' or 'member', and ways to switch to the one we want to export, if it doesn't match the view.&lt;/P&gt;</description>
      <pubDate>Thu, 25 Aug 2022 12:27:24 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/making-a-step-from-a-ipart-iassembly-on-a-drawing-level/m-p/11380562#M33752</guid>
      <dc:creator>WCrihfield</dc:creator>
      <dc:date>2022-08-25T12:27:24Z</dc:date>
    </item>
    <item>
      <title>Re: making a step from a iPart/iAssembly on a drawing level</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/making-a-step-from-a-ipart-iassembly-on-a-drawing-level/m-p/11383151#M33753</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for your message.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'll try to answer your question first. Only one part is placed on a drawing. Maybe in multiple views, but it's the same part.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In my code I'm now looking at the first model posted on the drawing. To be quite honest, I'm doing this because I don't know a better way to do it. I still have a lot to learn in the world of iLogic.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You're talking about 'ActiveMemberName'. I've tried to do something with this, but I can't. Do you happen to have an example of this being used? I tried to search online but without success.&amp;nbsp;Hopefully you can help me out a bit.&lt;/P&gt;</description>
      <pubDate>Fri, 26 Aug 2022 13:16:35 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/making-a-step-from-a-ipart-iassembly-on-a-drawing-level/m-p/11383151#M33753</guid>
      <dc:creator>FeelGoodGirl</dc:creator>
      <dc:date>2022-08-26T13:16:35Z</dc:date>
    </item>
    <item>
      <title>Re: making a step from a iPart/iAssembly on a drawing level</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/making-a-step-from-a-ipart-iassembly-on-a-drawing-level/m-p/11394628#M33754</link>
      <description>&lt;P&gt;I haven't managed to solve this problem yet. Does anyone have an idea how I can solve this?&lt;/P&gt;</description>
      <pubDate>Thu, 01 Sep 2022 07:32:15 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/making-a-step-from-a-ipart-iassembly-on-a-drawing-level/m-p/11394628#M33754</guid>
      <dc:creator>FeelGoodGirl</dc:creator>
      <dc:date>2022-09-01T07:32:15Z</dc:date>
    </item>
    <item>
      <title>Re: making a step from a iPart/iAssembly on a drawing level</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/making-a-step-from-a-ipart-iassembly-on-a-drawing-level/m-p/11395451#M33755</link>
      <description>&lt;P&gt;It works fine for me.&amp;nbsp; Regardless of what member is active in the original iPart, it exports the correct member from the drawing view.&amp;nbsp; I don't know if this is always the case, but AllReferencedDocuments(1) is the selected member in the view and AllReferencedDocuments(2) is the original iPart.&amp;nbsp; My test drawing only had one view.&amp;nbsp; I suggest adding the following to verify that the document that you pass to the ExportToSTEP is the correct member.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt;Logger&lt;/SPAN&gt;.&lt;SPAN&gt;Info&lt;/SPAN&gt;(&lt;SPAN&gt;oModel&lt;/SPAN&gt;.&lt;SPAN&gt;FullDocumentName&lt;/SPAN&gt;)&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 01 Sep 2022 14:38:52 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/making-a-step-from-a-ipart-iassembly-on-a-drawing-level/m-p/11395451#M33755</guid>
      <dc:creator>jjstr8</dc:creator>
      <dc:date>2022-09-01T14:38:52Z</dc:date>
    </item>
  </channel>
</rss>

