<?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: title block problem in Inventor Programming Forum</title>
    <link>https://forums.autodesk.com/t5/inventor-programming-forum/title-block-problem/m-p/8424803#M81590</link>
    <description>&lt;P&gt;What is the value that changes between sheets?&amp;nbsp; Are you showing different views, different part/assembly files?&amp;nbsp; It might be easier to store info in the part/assembly/presentation file and the title block pulls that info from the first placed view, but it's all dependent on what info is put into the title block.&lt;/P&gt;</description>
    <pubDate>Mon, 26 Nov 2018 15:12:03 GMT</pubDate>
    <dc:creator>philip1009</dc:creator>
    <dc:date>2018-11-26T15:12:03Z</dc:date>
    <item>
      <title>title block problem</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/title-block-problem/m-p/8424723#M81589</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;looking for some help on how to approach this one.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have a title block and in it I have a prompted entry ( and I hate it) the rest is done by an ilogic form and I would love to add this to it BUT.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;it changes on every sheet.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;witch from my form side of things is easy, but should I convert it to just text and add it that way or keep it prompted entry.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Kind Regards&lt;/P&gt;</description>
      <pubDate>Mon, 26 Nov 2018 14:50:31 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/title-block-problem/m-p/8424723#M81589</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-11-26T14:50:31Z</dc:date>
    </item>
    <item>
      <title>Re: title block problem</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/title-block-problem/m-p/8424803#M81590</link>
      <description>&lt;P&gt;What is the value that changes between sheets?&amp;nbsp; Are you showing different views, different part/assembly files?&amp;nbsp; It might be easier to store info in the part/assembly/presentation file and the title block pulls that info from the first placed view, but it's all dependent on what info is put into the title block.&lt;/P&gt;</description>
      <pubDate>Mon, 26 Nov 2018 15:12:03 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/title-block-problem/m-p/8424803#M81590</guid>
      <dc:creator>philip1009</dc:creator>
      <dc:date>2018-11-26T15:12:03Z</dc:date>
    </item>
    <item>
      <title>Re: title block problem</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/title-block-problem/m-p/8426986#M81591</link>
      <description>&lt;P&gt;it is a unique number per sheet (sometimes this is not in order). our client splits our drawings out into each sheet so they can put it into there document management system and file them.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;this does not relate to what type of views I have displayed. I have looked into pulling from model and this is not suitable&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;example of display&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Sheet:1 - 123456M-1001&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Sheet:2 - 123456M-1002&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Sheet:3 - 123456M-1003&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Sheet:4- 123456M-1007&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Sheet:5 - 123456M-1029&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;I want to be able to put 20 text boxes on my form and the user fills in each text box and then I want to push each one to each sheet and change the value&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;I have tried looking into accessing a textbox in the title box in ilogic but cant get this to work ( find and replace function). I think if I can get this to work it would be the best way to deal with this.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Kind Regards&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 27 Nov 2018 11:41:13 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/title-block-problem/m-p/8426986#M81591</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-11-27T11:41:13Z</dc:date>
    </item>
    <item>
      <title>Re: title block problem</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/title-block-problem/m-p/8427079#M81592</link>
      <description>&lt;P&gt;You might want to try and use the TABS in the ilogic form to have one per sheet, where you can fill out specific values for each sheet.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have done it in the past on old idw's and it can be a bit too much to fill out, but it will work.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For example:&lt;/P&gt;
&lt;P&gt;Create custom iproperties specific for each sheet where each value is specific to that sheet.&lt;/P&gt;
&lt;P&gt;SHT1_123456M1001&lt;/P&gt;
&lt;P&gt;SHT2_&lt;SPAN&gt;123456M1002&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;SHT3_&lt;SPAN&gt;123456M1003&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I will dig through my files and see if I can post an example of what I have done.&lt;/P&gt;</description>
      <pubDate>Tue, 27 Nov 2018 12:28:23 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/title-block-problem/m-p/8427079#M81592</guid>
      <dc:creator>doug.johnston</dc:creator>
      <dc:date>2018-11-27T12:28:23Z</dc:date>
    </item>
    <item>
      <title>Re: title block problem</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/title-block-problem/m-p/8427479#M81593</link>
      <description>&lt;P&gt;Using Prompted Entries might be your best option.&amp;nbsp; Whenever a new drawing or a new sheet in a drawing is made, it will prompt for entry and you can change that entry by looking under the title block of each sheet.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://knowledge.autodesk.com/support/inventor-products/learn-explore/caas/screencast/Main/Details/9355479c-3d43-4e02-90fe-f6b509b5d17a.html" target="_blank"&gt;https://knowledge.autodesk.com/support/inventor-products/learn-explore/caas/screencast/Main/Details/9355479c-3d43-4e02-90fe-f6b509b5d17a.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 27 Nov 2018 15:05:00 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/title-block-problem/m-p/8427479#M81593</guid>
      <dc:creator>philip1009</dc:creator>
      <dc:date>2018-11-27T15:05:00Z</dc:date>
    </item>
    <item>
      <title>Re: title block problem</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/title-block-problem/m-p/8427554#M81594</link>
      <description>&lt;P&gt;that's what I have at the moment and that is my concern.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I would prefer to control it from my Ilogic form if possible.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I wonder if I could turn off the promoted entry box from showing on new sheet. if I can then I know I can get that via code&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Kind Regards&lt;/P&gt;</description>
      <pubDate>Tue, 27 Nov 2018 15:34:39 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/title-block-problem/m-p/8427554#M81594</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-11-27T15:34:39Z</dc:date>
    </item>
    <item>
      <title>Re: title block problem</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/title-block-problem/m-p/8427791#M81595</link>
      <description>&lt;P&gt;Unfortunately I don't think you "turn off" the prompted entries.&amp;nbsp; The only way I found is to delete the text/entry fields in the titleblock.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Unless someone else has any ideas ….&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 27 Nov 2018 16:48:35 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/title-block-problem/m-p/8427791#M81595</guid>
      <dc:creator>doug.johnston</dc:creator>
      <dc:date>2018-11-27T16:48:35Z</dc:date>
    </item>
    <item>
      <title>Re: title block problem</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/title-block-problem/m-p/8428221#M81596</link>
      <description>&lt;P&gt;No, there's no options box for how Prompted Entries works, you can just click cancel or hit escape and then enter the info later.&amp;nbsp; The easiest way to do this would be to directly read and edit title block values, unfortunately that's not possible through iLogic, and as far as I can tell, there's no manipulating Prompted Entries with iLogic either.&amp;nbsp; Is there always a set number or maximum number of sheets?&amp;nbsp; There's some tricks that can be done if the number of sheets is limited to 10 or something like that.&amp;nbsp; Other than that, I'm still sticking with Prompted Entries being the best option for now until a better solution comes along.&lt;/P&gt;</description>
      <pubDate>Tue, 27 Nov 2018 19:14:24 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/title-block-problem/m-p/8428221#M81596</guid>
      <dc:creator>philip1009</dc:creator>
      <dc:date>2018-11-27T19:14:24Z</dc:date>
    </item>
    <item>
      <title>Re: title block problem</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/title-block-problem/m-p/8434254#M81597</link>
      <description>&lt;P&gt;A Titleblock is a sketch definition.&amp;nbsp; The textbox entities are in that definition.&amp;nbsp; A PromptedEntry, is a textbox entity with the set field added into it.&amp;nbsp; We all know this part.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Since the Titleblock definition is one per document (unless you copy it), editing the Titleblock sketch to remove a prompted entry and turn it into a dumb text with value (you can certainly do this) will put that value on every instance of the Titleblock.&amp;nbsp; Another option could be to use a 'custom property drawing' field in the textbox then tie that into a document's iProperty/Custom section.&amp;nbsp; You would then not get the prompt at insert, but can manipulate the value (one for all instances such as total sheet count, btw already a field of its own) in the iProperty/Custom section.&amp;nbsp; If you want to create MULTIPLE TITLEBLOCKS using the sketch definition then copy it.&amp;nbsp; You could insert a different Titleblock per sheet, even if the only difference is a new reference to a different custom property (messy but effective).&amp;nbsp; However editing titleblocks requires you to activate the sketch editor (very much a screen visible thing), then exit edit (flashy but effective), all this can be done by code.&amp;nbsp; You can find textbox entities by their contents, or even add hidden attribute data to look for via code so you can change them at whim.&lt;/P&gt;</description>
      <pubDate>Thu, 29 Nov 2018 19:21:24 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/title-block-problem/m-p/8434254#M81597</guid>
      <dc:creator>JamieVJohnson2</dc:creator>
      <dc:date>2018-11-29T19:21:24Z</dc:date>
    </item>
    <item>
      <title>Re: title block problem</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/title-block-problem/m-p/8434497#M81598</link>
      <description>&lt;P&gt;Would you mind sharing an example to edit the text in a Title Block?&amp;nbsp; Either I can't find the methods or they're not documented in the API Guide.&amp;nbsp; Other than that, my idea is to have different Title Block for each sheet and then the user can change the info in a form using Parameters, but you'd need separate parameters and title blocks for every sheet for this method to work.&lt;/P&gt;</description>
      <pubDate>Thu, 29 Nov 2018 20:40:44 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/title-block-problem/m-p/8434497#M81598</guid>
      <dc:creator>philip1009</dc:creator>
      <dc:date>2018-11-29T20:40:44Z</dc:date>
    </item>
    <item>
      <title>Re: title block problem</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/title-block-problem/m-p/8450544#M81599</link>
      <description>&lt;P&gt;And one week later, (sorry)&lt;/P&gt;
&lt;P&gt;First get the document in question:&lt;/P&gt;
&lt;P&gt;Dim drawDoc as DrawingDocument = (active document or whatever)&lt;/P&gt;
&lt;P&gt;Then get the Titleblock definitions (modify loop and contents for your logic needs):&lt;/P&gt;
&lt;P&gt;dim tbd as TitleBlockDefinition = nothing&lt;/P&gt;
&lt;P&gt;For Each sht as Sheet in drawDoc.Sheets&lt;/P&gt;
&lt;P&gt;if sht.TitleBlock IsNot Nothing then&lt;/P&gt;
&lt;P&gt;tbd = sht.TitleBlock.Definition&lt;/P&gt;
&lt;P&gt;'do work on tbd&lt;/P&gt;
&lt;P&gt;End if&lt;/P&gt;
&lt;P&gt;Next&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Next edit the Titleblock definition as if it were a sketch (because it is):&lt;/P&gt;
&lt;P&gt;dim tbSketch as DrawingSketch = nothing&lt;/P&gt;
&lt;P&gt;tbd.Edit(tbSketch) 'this populated the sketch variable while opening it for edit in the context of the titleblock's definition.&lt;/P&gt;
&lt;P&gt;'looping through all textboxes in sketch&lt;/P&gt;
&lt;P&gt;for each txt as TextBox in tbSketch.TextBoxes&lt;/P&gt;
&lt;P&gt;if txt.FormattedText.Contains("my property of concern") then 'example: "&amp;gt;PART NUMBER&amp;lt;/Property&amp;gt;" cuts through all the formatting codes and looks for the field attached to the Part Number property&lt;/P&gt;
&lt;P&gt;'do work here&lt;/P&gt;
&lt;P&gt;end if&lt;/P&gt;
&lt;P&gt;Next&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I suggest you write a helper routine to print out (debug.Print() or msgbox()) the formatted text of the textbox before and after your changes done by hand, you can then use those values in code.&amp;nbsp; Pay attention to the IDs, Inventor makes them up to keep them unique for prompted entries, you may have to as well.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can set formattedtext to values like this (resetting a dynamic value to a prompted entry example):&lt;/P&gt;
&lt;P&gt;txt.FormattedText = "&amp;lt;Prompt ReadOnlyUniqueID='110'&amp;gt;&amp;amp;lt;PART NUMBER&amp;amp;gt;&amp;lt;/Prompt&amp;gt;"&lt;/P&gt;
&lt;P&gt;You can set formattedtext to something dynamic like this:&lt;/P&gt;
&lt;P&gt;txt.FormattedText = "&amp;lt;StyleOverride FontSize='0.4572'&amp;gt;&amp;lt;Property Document='model' FormatID='{32853F0F-3444-11D1-9E93-0060B03C1CA6}' PropertyID='5'&amp;gt;PART NUMBER&amp;lt;/Property&amp;gt;&amp;lt;/StyleOverride&amp;gt;"&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Finally don't forget&lt;/P&gt;
&lt;P&gt;tbd.ExitEdit&lt;/P&gt;
&lt;P&gt;And a handy way to force titleblocks to update is to get their result text:&lt;/P&gt;
&lt;P&gt;For Each sht as Sheet in drawDoc.Sheets&lt;/P&gt;
&lt;P&gt;for each txt as TextBox in tbd.Sketch.TextBoxes&lt;/P&gt;
&lt;P&gt;sht.TitleBlock.GetResultText(txt)&lt;/P&gt;
&lt;P&gt;Next&lt;/P&gt;
&lt;P&gt;Next&lt;/P&gt;</description>
      <pubDate>Thu, 06 Dec 2018 17:03:57 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/title-block-problem/m-p/8450544#M81599</guid>
      <dc:creator>JamieVJohnson2</dc:creator>
      <dc:date>2018-12-06T17:03:57Z</dc:date>
    </item>
  </channel>
</rss>

