<?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 Prompted Entry in Title Box with another Text Parameter in Inventor Forum</title>
    <link>https://forums.autodesk.com/t5/inventor-forum/prompted-entry-in-title-box-with-another-text-parameter/m-p/7274469#M268821</link>
    <description>&lt;P&gt;I am trying to creating a single text box in a title block for a Inventor 2017 drawing that includes both a text parameter and a prompted entry together.&amp;nbsp; The goal would be to have the drawing show my part number, and then the sheet number, in this format: ABCD-xx&lt;/P&gt;&lt;P&gt;The prompted entry would be used to enter that "xx" sheet number after the part number.&amp;nbsp; Ideally, I would just use the sheet number text parameter to insert the page number.&amp;nbsp; However, our company starts its sheet numbering at 0, not 1, unlike the default sheet numbering.&amp;nbsp; Any insight would be appreciated.&lt;/P&gt;</description>
    <pubDate>Thu, 03 Aug 2017 15:05:23 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2017-08-03T15:05:23Z</dc:date>
    <item>
      <title>Prompted Entry in Title Box with another Text Parameter</title>
      <link>https://forums.autodesk.com/t5/inventor-forum/prompted-entry-in-title-box-with-another-text-parameter/m-p/7274469#M268821</link>
      <description>&lt;P&gt;I am trying to creating a single text box in a title block for a Inventor 2017 drawing that includes both a text parameter and a prompted entry together.&amp;nbsp; The goal would be to have the drawing show my part number, and then the sheet number, in this format: ABCD-xx&lt;/P&gt;&lt;P&gt;The prompted entry would be used to enter that "xx" sheet number after the part number.&amp;nbsp; Ideally, I would just use the sheet number text parameter to insert the page number.&amp;nbsp; However, our company starts its sheet numbering at 0, not 1, unlike the default sheet numbering.&amp;nbsp; Any insight would be appreciated.&lt;/P&gt;</description>
      <pubDate>Thu, 03 Aug 2017 15:05:23 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-forum/prompted-entry-in-title-box-with-another-text-parameter/m-p/7274469#M268821</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-08-03T15:05:23Z</dc:date>
    </item>
    <item>
      <title>Re: Prompted Entry in Title Box with another Text Parameter</title>
      <link>https://forums.autodesk.com/t5/inventor-forum/prompted-entry-in-title-box-with-another-text-parameter/m-p/7274688#M268822</link>
      <description>&lt;P&gt;Are your part number always the same number of digits?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Typically a prompted entry occurs before placement of base view..&lt;/P&gt;
&lt;P&gt;How do you expect this field to know the part number?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Why do you need to do this?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm sure its possible to have some ilogic code to append the sheet number prompted value after but are you ok with having ilogic code run (drawing view change trigger I guess)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 03 Aug 2017 16:12:04 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-forum/prompted-entry-in-title-box-with-another-text-parameter/m-p/7274688#M268822</guid>
      <dc:creator>mcgyvr</dc:creator>
      <dc:date>2017-08-03T16:12:04Z</dc:date>
    </item>
    <item>
      <title>Re: Prompted Entry in Title Box with another Text Parameter</title>
      <link>https://forums.autodesk.com/t5/inventor-forum/prompted-entry-in-title-box-with-another-text-parameter/m-p/7274695#M268823</link>
      <description>&lt;P&gt;Unfortunately not, otherwise I would just place another text box next to it with the prompted entry in it.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 03 Aug 2017 16:11:58 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-forum/prompted-entry-in-title-box-with-another-text-parameter/m-p/7274695#M268823</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-08-03T16:11:58Z</dc:date>
    </item>
    <item>
      <title>Re: Prompted Entry in Title Box with another Text Parameter</title>
      <link>https://forums.autodesk.com/t5/inventor-forum/prompted-entry-in-title-box-with-another-text-parameter/m-p/7274710#M268824</link>
      <description>&lt;P&gt;Sorry I edited my postto add more info before you posted..&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;out of curiosity why do you have such a requirement..&lt;/P&gt;
&lt;P&gt;Whats wrong with a part number field (auto populated on base view placement) and another section that shows sheet X of Y..&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Or heck... Even "smarter" is to change your companies procedure to match the functionality of the software you are using..&lt;/P&gt;
&lt;P&gt;You choose to start with zero.. The software does not function that way.. Instead of having to maintain a "hack" why not adapt to what the software you are using does out of the box..&lt;/P&gt;
&lt;P&gt;Sorry.. I will always question companies that seem to be so afraid of change and work harder to accommodate that difference instead of just changing their procedure to work with what they have.. &amp;nbsp;Makes no sense to me..&lt;/P&gt;</description>
      <pubDate>Thu, 03 Aug 2017 16:15:08 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-forum/prompted-entry-in-title-box-with-another-text-parameter/m-p/7274710#M268824</guid>
      <dc:creator>mcgyvr</dc:creator>
      <dc:date>2017-08-03T16:15:08Z</dc:date>
    </item>
    <item>
      <title>Re: Prompted Entry in Title Box with another Text Parameter</title>
      <link>https://forums.autodesk.com/t5/inventor-forum/prompted-entry-in-title-box-with-another-text-parameter/m-p/7274735#M268825</link>
      <description>&lt;P&gt;I agree, it would easier to simply change the procedure to start with page 1.&amp;nbsp; I just wanted to know if there was an easy way to keep the old numbering scheme before I approached my manager and suggested changing it.&amp;nbsp; Thanks for the thought on the topic, I at least have some more alternate options now to suggest.&lt;/P&gt;</description>
      <pubDate>Thu, 03 Aug 2017 16:21:57 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-forum/prompted-entry-in-title-box-with-another-text-parameter/m-p/7274735#M268825</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-08-03T16:21:57Z</dc:date>
    </item>
    <item>
      <title>Re: Prompted Entry in Title Box with another Text Parameter</title>
      <link>https://forums.autodesk.com/t5/inventor-forum/prompted-entry-in-title-box-with-another-text-parameter/m-p/7274775#M268826</link>
      <description>&lt;P&gt;But here..&lt;/P&gt;
&lt;P&gt;(This is messy and may have a mistake or few and I'm sure can be cleaned up some.)&lt;/P&gt;
&lt;P&gt;This assumes your prompted entry is named "SheetValue"&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Trigger this to run after you have placed a base view..&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;On Error Resume Next
Dim oDoc As DrawingDocument
oDoc = ThisApplication.ActiveDocument
Dim oSheet As Sheet
Dim oPromptEntry

Dim oCurrentSheet
oCurrentSheet = oDoc.ActiveSheet.Name

i = 1
For Each oSheet In oDoc.Sheets
  'i = i+1
  ThisApplication.ActiveDocument.Sheets.Item(i).Activate
       oTitleBlock=oSheet.TitleBlock
    oTextBoxes=oTitleBlock.Definition.Sketch.TextBoxes
    For Each oTextBox In oTitleBlock.Definition.Sketch.TextBoxes
    Select oTextBox.Text
        Case "SheetValue"
            oPromptEntry  =  oTitleBlock.GetResultText(oTextBox)

oModel = ThisDrawing.ModelDocument
'Check if a base view has been placed..
If oModel Is Nothing Then
'Display a warning that there is no base view in this drawing
MessageBox.Show("No base view in this drawing", "Warning", MessageBoxButtons.OK, MessageBoxIcon.Warning)
Else
'get the model documents revision
oMDocPN = iProperties.Value(oModel,"Project", "Part Number")

End If
			oTitleBlock.SetPromptResultText(oTextBox, oMDocPN &amp;amp; "-" &amp;amp; oPromptEntry)


    End Select
    Next
Next&lt;/PRE&gt;</description>
      <pubDate>Thu, 03 Aug 2017 16:37:26 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-forum/prompted-entry-in-title-box-with-another-text-parameter/m-p/7274775#M268826</guid>
      <dc:creator>mcgyvr</dc:creator>
      <dc:date>2017-08-03T16:37:26Z</dc:date>
    </item>
    <item>
      <title>Re: Prompted Entry in Title Box with another Text Parameter</title>
      <link>https://forums.autodesk.com/t5/inventor-forum/prompted-entry-in-title-box-with-another-text-parameter/m-p/7274789#M268827</link>
      <description>&lt;P&gt;err.. there is an error.. Its pulling the part number from the drawing properties and not the base view model..&lt;/P&gt;
&lt;P&gt;If I get a chance I will correct that.. (Someone standing behind me now needing me on the production floor)..&lt;/P&gt;</description>
      <pubDate>Thu, 03 Aug 2017 16:42:25 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-forum/prompted-entry-in-title-box-with-another-text-parameter/m-p/7274789#M268827</guid>
      <dc:creator>mcgyvr</dc:creator>
      <dc:date>2017-08-03T16:42:25Z</dc:date>
    </item>
    <item>
      <title>Re: Prompted Entry in Title Box with another Text Parameter</title>
      <link>https://forums.autodesk.com/t5/inventor-forum/prompted-entry-in-title-box-with-another-text-parameter/m-p/7275042#M268828</link>
      <description>&lt;P&gt;@Anonymous: Welcome to the forum.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I think&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/74757"&gt;@mcgyvr&lt;/a&gt;&amp;nbsp;is right, you should try and adapt if possible rather than customizing and hoping to work on new releases.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Just my 2cents here, but right off the bat I will admit not to have tested the provided solution (ilogic)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I would use the existing functionality of reported&amp;nbsp;sheet number and subtract 1 (not sure if that's even possible, just talking out loud)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The reason for doing it this way rather than counting number of sheets is because some work with sheets which are "Excluded From Counting" and I am not sure if iLogic is smart enough to pick on those.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here's what I mean.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;DIV class="iframe-container"&gt;&lt;IFRAME src="https://screencast.autodesk.com/Embed/Timeline/91900abd-d4d4-4276-a914-ceaec5435fa8" width="640" height="620" frameborder="0" scrolling="no" allowfullscreen="allowfullscreen" webkitallowfullscreen="webkitallowfullscreen" style="display: inline;"&gt;&lt;/IFRAME&gt;&lt;/DIV&gt;
&lt;DIV class="iframe-container"&gt;The "sheet in sheets" will report all sheets regardless of their "exclude" status.&lt;/DIV&gt;
&lt;DIV class="iframe-container"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV class="iframe-container"&gt;&amp;nbsp;&lt;/DIV&gt;</description>
      <pubDate>Thu, 03 Aug 2017 18:12:37 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-forum/prompted-entry-in-title-box-with-another-text-parameter/m-p/7275042#M268828</guid>
      <dc:creator>salariua</dc:creator>
      <dc:date>2017-08-03T18:12:37Z</dc:date>
    </item>
    <item>
      <title>Re: Prompted Entry in Title Box with another Text Parameter</title>
      <link>https://forums.autodesk.com/t5/inventor-forum/prompted-entry-in-title-box-with-another-text-parameter/m-p/7275107#M268829</link>
      <description>&lt;P&gt;Thanks for your input.&amp;nbsp; I may go with excluding the first sheet from the count as you did in the video, which will give the other sheets the correct numbering scheme, and use a different title block for just the first page so that my part number can read ABCD-00.&amp;nbsp; I appreciate the help.&lt;/P&gt;</description>
      <pubDate>Thu, 03 Aug 2017 18:31:52 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-forum/prompted-entry-in-title-box-with-another-text-parameter/m-p/7275107#M268829</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-08-03T18:31:52Z</dc:date>
    </item>
  </channel>
</rss>

