<?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 Constraining JPG Logo in a title block in Inventor Programming Forum</title>
    <link>https://forums.autodesk.com/t5/inventor-programming-forum/constraining-jpg-logo-in-a-title-block/m-p/5011842#M124772</link>
    <description>&lt;P&gt;So for years our borders have had an imported AutoCAD outline that is hatch filed for the company logo.&lt;BR /&gt;I am redoing our borders with inserted (not linked) jpg's in them.&lt;BR /&gt;The only issue that I have is that there really is no way to contrain the image in the title block definition.&lt;BR /&gt;I can size it and move it around but not contrain it.&lt;BR /&gt;So what I did was to make a rectangular box the size and position that I want the logo to be in.&lt;BR /&gt;I then size the jpg image to as close to this visually as I can and center it on the rectangle.&lt;BR /&gt;It is the last part I put in so it seems to stay put.&lt;BR /&gt;However I would much rather contrain this to where I want it.&lt;BR /&gt;Any one have any suggestion for this?&lt;/P&gt;</description>
    <pubDate>Mon, 05 May 2014 11:57:53 GMT</pubDate>
    <dc:creator>tahdesign1</dc:creator>
    <dc:date>2014-05-05T11:57:53Z</dc:date>
    <item>
      <title>Constraining JPG Logo in a title block</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/constraining-jpg-logo-in-a-title-block/m-p/5011842#M124772</link>
      <description>&lt;P&gt;So for years our borders have had an imported AutoCAD outline that is hatch filed for the company logo.&lt;BR /&gt;I am redoing our borders with inserted (not linked) jpg's in them.&lt;BR /&gt;The only issue that I have is that there really is no way to contrain the image in the title block definition.&lt;BR /&gt;I can size it and move it around but not contrain it.&lt;BR /&gt;So what I did was to make a rectangular box the size and position that I want the logo to be in.&lt;BR /&gt;I then size the jpg image to as close to this visually as I can and center it on the rectangle.&lt;BR /&gt;It is the last part I put in so it seems to stay put.&lt;BR /&gt;However I would much rather contrain this to where I want it.&lt;BR /&gt;Any one have any suggestion for this?&lt;/P&gt;</description>
      <pubDate>Mon, 05 May 2014 11:57:53 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/constraining-jpg-logo-in-a-title-block/m-p/5011842#M124772</guid>
      <dc:creator>tahdesign1</dc:creator>
      <dc:date>2014-05-05T11:57:53Z</dc:date>
    </item>
    <item>
      <title>Re: Constraining JPG Logo in a title block</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/constraining-jpg-logo-in-a-title-block/m-p/5016230#M124773</link>
      <description>&lt;P&gt;It's a missing link in the dwg/idw and in sketched symbols. Roughly locating the image is as good as you can get, for now.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I created an &lt;A href="https://forums.autodesk.com/t5/Inventor-IdeaStation/Add-constraints-for-an-image-in-a-Sketched-Symbol/idi-p/5000818" target="_blank"&gt;IdeaStation&lt;/A&gt; entry for this exact issue. Give it a vote if you want it fixed.&lt;/P&gt;</description>
      <pubDate>Wed, 07 May 2014 04:45:48 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/constraining-jpg-logo-in-a-title-block/m-p/5016230#M124773</guid>
      <dc:creator>brendan.henderson</dc:creator>
      <dc:date>2014-05-07T04:45:48Z</dc:date>
    </item>
    <item>
      <title>Re: Constraining JPG Logo in a title block</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/constraining-jpg-logo-in-a-title-block/m-p/5016742#M124774</link>
      <description>&lt;P&gt;I assume by vote you mean give Kudos, which I did.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Nice use of snagit to illustrate the issue also.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I actually got an email yesterday that a support case had been issued for this and someone on the development team would be contacting me.&lt;/P&gt;&lt;P&gt;I am assuming at&amp;nbsp;to say "nope you can do that at this point".&lt;/P&gt;</description>
      <pubDate>Wed, 07 May 2014 11:36:01 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/constraining-jpg-logo-in-a-title-block/m-p/5016742#M124774</guid>
      <dc:creator>tahdesign1</dc:creator>
      <dc:date>2014-05-07T11:36:01Z</dc:date>
    </item>
    <item>
      <title>Re: Constraining JPG Logo in a title block</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/constraining-jpg-logo-in-a-title-block/m-p/5025480#M124775</link>
      <description>&lt;P&gt;There is no API to constrain inserted image &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt; but it is not difficult to simplify logo insertion with iLogic .&lt;/P&gt;
&lt;P&gt;The following external iLogic rule embeds specified logo (bmp-file) into the title block definition.&amp;nbsp; You may specify both position and image size.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Coordinates should be defined&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;in the base length units (cm) and&lt;/LI&gt;
&lt;LI&gt;in the sketch coordinate system.&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;Look at this video to see how the rule works:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://chronicle.autodesk.com/Main/Details/73f9f5e2-014b-4928-931f-79f6a7c258d8" target="_blank"&gt;https://chronicle.autodesk.com/Main/Details/73f9f5e2-014b-4928-931f-79f6a7c258d8&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;'This rule embeds Logo image into title block definition
'Image position and size are specified.
Sub Main
    'check if the active document is drawing document
    If Not TypeOf(ThisDoc.Document) Is DrawingDocument Then        
        MessageBox.Show("Run this rule when Drawings document is active", _
            "Logo", MessageBoxButtons.OK, MessageBoxIcon.Asterisk, _
            MessageBoxDefaultButton.Button1)
        Exit Sub
    End If
    
    '1) define full path to the Logo image
    Dim LogoFilename As String = "c:\Temp\RulerCorp.bmp"
    
    '2) specify Logo image size -  0.62in x 0.62in
    '   Use cantimeters! - Inventor internal units 
    Dim LogoHeight As Double = 0.62*2.54  'in cm
    Dim LogoWidth  As Double = LogoHeight 
    
    '3) specify insertion point coordinates  X = 7.75in, Y = 7.45in
    '   Use cantimeters! - Inventor internal units 
    '   Sketch coordinate system is used.
    Dim InsPointX As Double = 7.75*2.54  'in cm
    Dim InsPointY As Double = 7.45*2.54  'in cm
    
    '4) the final step - insert Logo
    InsertImage(LogoFilename,InsPointX,InsPointY, LogoWidth, LogoHeight)
    
    Beep 'could be removed 
End Sub


Sub InsertImage( _
        LogoFilename As String, _
        InsPointX    As Double, _
        InsPointY    As Double, _
        LogoWidth    As Double, _ 
        LogoHeight   As Double)
    
    Dim oDoc As DrawingDocument = ThisDoc.Document
    
    'set target point in the title block sketch coordinates (in cm)
    Dim oPoint As Point2d = ThisApplication.TransientGeometry _
        .CreatePoint2d(InsPointX, InsPointY)
    
    Dim oTitleBlockDef As TitleBlockDefinition _
            = oDoc.ActiveSheet.TitleBlock.Definition
    
    Dim oSketch As DrawingSketch
    Call oTitleBlockDef.Edit(oSketch)
    Dim oSketchImage As SketchImage 
    'add embedded image
    oSketchImage = oSketch.SketchImages.Add(LogoFilename, oPoint, False)
    'set image size in cm
    oSketchImage.Height = LogoHeight
    oSketchImage.Width  = LogoWidth        
    oTitleBlockDef.ExitEdit
    
End Sub  'InsertImage&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;Cheers,&lt;/P&gt;</description>
      <pubDate>Mon, 12 May 2014 08:41:11 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/constraining-jpg-logo-in-a-title-block/m-p/5025480#M124775</guid>
      <dc:creator>Vladimir.Ananyev</dc:creator>
      <dc:date>2014-05-12T08:41:11Z</dc:date>
    </item>
    <item>
      <title>Re: Constraining JPG Logo in a title block</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/constraining-jpg-logo-in-a-title-block/m-p/5025700#M124776</link>
      <description>&lt;P&gt;OK even though that may work in my opinion that is a patch not a solution.&lt;/P&gt;&lt;P&gt;I want my IDW templates to be standalone not dependant on iLogic to insert a logo from an external location.&lt;/P&gt;&lt;P&gt;I want to insert an image (jpg) without linking it and then size and position it as I see fit.&lt;/P&gt;&lt;P&gt;It appears you can do this in a part sketch but not in a title block&amp;nbsp;sketch.&lt;/P&gt;</description>
      <pubDate>Mon, 12 May 2014 12:18:29 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/constraining-jpg-logo-in-a-title-block/m-p/5025700#M124776</guid>
      <dc:creator>tahdesign1</dc:creator>
      <dc:date>2014-05-12T12:18:29Z</dc:date>
    </item>
    <item>
      <title>Re: Constraining JPG Logo in a title block</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/constraining-jpg-logo-in-a-title-block/m-p/5025826#M124777</link>
      <description>&lt;P&gt;Of course, this is a patch. But I’m not sure that understand your workflow properly.&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;&amp;gt;&amp;gt; I want my IDW templates to be standalone not dependent on iLogic to insert a logo from an external location.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;If your IDW template is standalone and is not dependent on the image from the external location then does it mean that this logo is already inserted into the title block definition? How often do you need to change logos (they should be rather stable)? How many templates do you need to support?&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;&amp;gt;&amp;gt; I want to insert an image (jpg) without linking it and then size and position it as I see fit.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="line-height: 1.2;"&gt;Provided iLogic rule produces embedded (not linked to file) image. Link to external file is also possible (just change Faulse to True).&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;Do you really want to change size and position manually?&lt;/P&gt;
&lt;P&gt;Available format: bmp&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;Best regards,&lt;/P&gt;</description>
      <pubDate>Mon, 12 May 2014 13:06:00 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/constraining-jpg-logo-in-a-title-block/m-p/5025826#M124777</guid>
      <dc:creator>Vladimir.Ananyev</dc:creator>
      <dc:date>2014-05-12T13:06:00Z</dc:date>
    </item>
    <item>
      <title>Re: Constraining JPG Logo in a title block</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/constraining-jpg-logo-in-a-title-block/m-p/5026892#M124779</link>
      <description>&lt;P&gt;Basically what we asking for is to have the same ability to deal with images in a title block sketch as you have in a part sketch.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In a part sketch you can use the bounding box to size and locate the image (see attached).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We should have the same ability in a title block sketch.&lt;/P&gt;</description>
      <pubDate>Mon, 12 May 2014 19:56:59 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/constraining-jpg-logo-in-a-title-block/m-p/5026892#M124779</guid>
      <dc:creator>tahdesign1</dc:creator>
      <dc:date>2014-05-12T19:56:59Z</dc:date>
    </item>
    <item>
      <title>Re: Constraining JPG Logo in a title block</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/constraining-jpg-logo-in-a-title-block/m-p/5029426#M124780</link>
      <description>&lt;P&gt;This wish is already published by Brendan Henderson in the Inventor IdeaStation.&amp;nbsp; This functionality should be first implemented in the product. &amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best regards,&lt;/P&gt;</description>
      <pubDate>Tue, 13 May 2014 20:39:08 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/constraining-jpg-logo-in-a-title-block/m-p/5029426#M124780</guid>
      <dc:creator>Vladimir.Ananyev</dc:creator>
      <dc:date>2014-05-13T20:39:08Z</dc:date>
    </item>
    <item>
      <title>Re: Constraining JPG Logo in a title block</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/constraining-jpg-logo-in-a-title-block/m-p/6000753#M124781</link>
      <description>&lt;P&gt;This post goes back to nearly 2 years now and I cannot&amp;nbsp;constrain my logo precisely in title block with bloody 2016!!!&lt;/P&gt;&lt;P&gt;Instead of changing the look of Inventor do something valuable. We pay subscription and expect something decent like make the engine turbo rather than changing the car's colour. It's just getting slower and slower...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 22 Jan 2016 04:11:44 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/constraining-jpg-logo-in-a-title-block/m-p/6000753#M124781</guid>
      <dc:creator>Thermeco-Cad</dc:creator>
      <dc:date>2016-01-22T04:11:44Z</dc:date>
    </item>
    <item>
      <title>Re: Constraining JPG Logo in a title block</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/constraining-jpg-logo-in-a-title-block/m-p/6838935#M124782</link>
      <description>&lt;P&gt;And another year, has this been resolved?&amp;nbsp; Work on redoing my companies title blocks as we change Inventor versions, wondering if i can expect to see this fixed.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If important things are going to be ignored every year, then why do a yearly release?&amp;nbsp; Go back to the old release pattern.&lt;/P&gt;</description>
      <pubDate>Sun, 29 Jan 2017 18:28:19 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/constraining-jpg-logo-in-a-title-block/m-p/6838935#M124782</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-01-29T18:28:19Z</dc:date>
    </item>
    <item>
      <title>Re: Constraining JPG Logo in a title block</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/constraining-jpg-logo-in-a-title-block/m-p/7284083#M124783</link>
      <description>&lt;P&gt;Just came in looking for a solution to this same&amp;nbsp;issue.&lt;/P&gt;&lt;P&gt;I'm trying to constrain an image of a company logo in an adaptive drg template.&lt;/P&gt;&lt;P&gt;Is there still no constraint option?&lt;/P&gt;</description>
      <pubDate>Tue, 08 Aug 2017 13:33:06 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/constraining-jpg-logo-in-a-title-block/m-p/7284083#M124783</guid>
      <dc:creator>nick.barbour</dc:creator>
      <dc:date>2017-08-08T13:33:06Z</dc:date>
    </item>
    <item>
      <title>Re: Constraining JPG Logo in a title block</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/constraining-jpg-logo-in-a-title-block/m-p/9981531#M124784</link>
      <description>&lt;P&gt;2020 version now. Still waiting for this easy yet vital fix.&lt;/P&gt;</description>
      <pubDate>Wed, 06 Jan 2021 10:42:09 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/constraining-jpg-logo-in-a-title-block/m-p/9981531#M124784</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-01-06T10:42:09Z</dc:date>
    </item>
    <item>
      <title>Re: Constraining JPG Logo in a title block</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/constraining-jpg-logo-in-a-title-block/m-p/9982972#M124785</link>
      <description>&lt;P&gt;Please continue voting for the above mentioned Idea Station item:&lt;/P&gt;&lt;P&gt;&lt;A href="https://forums.autodesk.com/t5/inventor-ideas/add-constraints-for-an-image-in-a-sketched-symbol/idi-p/5000818" target="_blank" rel="noopener"&gt;https://forums.autodesk.com/t5/inventor-ideas/add-constraints-for-an-image-in-a-sketched-symbol/idi-p/5000818&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 06 Jan 2021 20:25:22 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/constraining-jpg-logo-in-a-title-block/m-p/9982972#M124785</guid>
      <dc:creator>BrandonBG</dc:creator>
      <dc:date>2021-01-06T20:25:22Z</dc:date>
    </item>
  </channel>
</rss>

