• Industries
  • Products
  • Buy
  • Services & Support
  • Communities
  • Discussion Groups

    Autodesk Inventor

    Reply
    Mentor
    bsee1
    Posts: 172
    Registered: ‎11-14-2011
    Accepted Solution

    How to apply a style to a picture using WordPictureWriter in ETO?

    347 Views, 13 Replies
    11-14-2011 10:26 AM

    I'm trying to insert a picture into a word document I'm generating from Inventor ETO 2012. By default, the picture seems to be set to word wrap as inline, which makes Word give it a low priority and hide it behind all text.  All I want to do is change the wrap style to Square.

     

    Using Microsoft's site, I found what i believe to be the proper style setting.

    http://msdn.microsoft.com/en-us/library/ff835490.aspx

     

    Autodesk's guide for using WordPictureWriter:

    http://wikihelp.autodesk.com/Inventor_ETO/enu/2012/Help/0000-Inventor0/0223-Library_223/0526-Office_...

     

    Can anyone tell me why this doesn't work?  No matter what I change style to, absolutely nothing changes.  It is always set as inline.

     

    --code--

    Child StationPicture As :WordPictureWriter, Quantity = NumberofStations
    Bookmark = "InsertPicture" + stringValue(child.index)
    Placement = :Replace
     style = "wdWrapMergeSquare"
    PictureFile = nth(child.index,PictureFiles)
    End Child

    --code--

    *****************************
    Win7 x64 - 16gb ram
    i7 3610qm
    FirePro M4000

    Inventor 2013
    ETO 6.1
    Please use plain text.
    *Expert Elite*
    Posts: 21,728
    Registered: ‎04-20-2006

    Re: How to apply a style to a picture using WordPictureWriter in ETO?

    11-14-2011 10:29 AM in reply to: bsee1

    Can you attach the file here?
    I do this all the time for classroom lab instructions.

    Please mark this response as "Accept as Solution" if it answers your question.
    -----------------------------------------------------------------------------------------
    Autodesk Inventor 2013 Certified Professional
    Autodesk AutoCAD 2013 Certified Professional
    Certified SolidWorks Professional
    Inventor Professional 2013 SP 1.1 Edu 64-bit
    GeForce GTX 560M i7-2670QM @ 2.2GHz 8GB RAM
    http://home.pct.edu/~jmather/content/DSG322/inventor_surface_tutorials.htm
    http://www.autodesk.com/edcommunity
    Still waiting for -Draft option on any Rib feature.
    Please use plain text.
    Mentor
    bsee1
    Posts: 172
    Registered: ‎11-14-2011

    Re: How to apply a style to a picture using WordPictureWriter in ETO?

    11-14-2011 10:46 AM in reply to: JDMather

    Not sure if you meant the template file or the output file, but here's both. I'm inserting everything into the template using bookmarks. To be clear, the pictures are being inserted into the document, but behind the layer of text.

     

    See page 8 of the template for where pictures are inserted.

     

    See page 11 of the output file to see where the picture is inserted. Note that if you change the word wrap to square it suddenly becomes visible.

     

     

     

    Edited by request
    Discussion_Admin

    *****************************
    Win7 x64 - 16gb ram
    i7 3610qm
    FirePro M4000

    Inventor 2013
    ETO 6.1
    Please use plain text.
    *Expert Elite*
    Posts: 21,728
    Registered: ‎04-20-2006

    Re: How to apply a style to a picture using WordPictureWriter in ETO?

    11-14-2011 11:07 AM in reply to: bsee1

    bsee1 wrote:

    I'm inserting everything into the template using bookmarks. To be clear, the pictures are being inserted into the document, but behind the layer of text.

     

    See page 8 of the template for where pictures are inserted.

     


    Kind of important information left out of the original post?
    Not sure how to proceed without the image files?

    Maybe someone else can figure this one out.

    Please mark this response as "Accept as Solution" if it answers your question.
    -----------------------------------------------------------------------------------------
    Autodesk Inventor 2013 Certified Professional
    Autodesk AutoCAD 2013 Certified Professional
    Certified SolidWorks Professional
    Inventor Professional 2013 SP 1.1 Edu 64-bit
    GeForce GTX 560M i7-2670QM @ 2.2GHz 8GB RAM
    http://home.pct.edu/~jmather/content/DSG322/inventor_surface_tutorials.htm
    http://www.autodesk.com/edcommunity
    Still waiting for -Draft option on any Rib feature.
    Please use plain text.
    Mentor
    bsee1
    Posts: 172
    Registered: ‎11-14-2011

    Re: How to apply a style to a picture using WordPictureWriter in ETO?

    11-14-2011 11:14 AM in reply to: JDMather

    I'm not sure what you mean. I can't give you the entire project, it's 600mb.  All I'm asking for is how to apply a style to the pictures.

     

    I can get the pictures into the document, that isn't a problem.  The problem is the placement of the pictures.  They insert into the document in inline wordwrap style, and I need them in square wordwrap style.  It shouldn't be dependant on what pictures I use at all.  In the output file you can see exactly how the picture gets inserted(page 11).

    *****************************
    Win7 x64 - 16gb ram
    i7 3610qm
    FirePro M4000

    Inventor 2013
    ETO 6.1
    Please use plain text.
    *Expert Elite*
    Posts: 21,728
    Registered: ‎04-20-2006

    Re: How to apply a style to a picture using WordPictureWriter in ETO?

    11-14-2011 11:38 AM in reply to: bsee1

    bsee1 wrote:

    I'm not sure what you mean. I can't give you the entire project, it's 600mb.  


    I'm not interested in the entire project - only one word in doc file and one image file.

    Please mark this response as "Accept as Solution" if it answers your question.
    -----------------------------------------------------------------------------------------
    Autodesk Inventor 2013 Certified Professional
    Autodesk AutoCAD 2013 Certified Professional
    Certified SolidWorks Professional
    Inventor Professional 2013 SP 1.1 Edu 64-bit
    GeForce GTX 560M i7-2670QM @ 2.2GHz 8GB RAM
    http://home.pct.edu/~jmather/content/DSG322/inventor_surface_tutorials.htm
    http://www.autodesk.com/edcommunity
    Still waiting for -Draft option on any Rib feature.
    Please use plain text.
    Mentor
    bsee1
    Posts: 172
    Registered: ‎11-14-2011

    Re: How to apply a style to a picture using WordPictureWriter in ETO?

    11-14-2011 11:49 AM in reply to: JDMather

    Technically they're both in the previous output file I posted, but I'll shorten everything up.  I've attached a shortened version of the output file, the template file, and the image being inserted.

     

    In the output file, the grey bar is where Inventor attempted to insert the picture.  Notice that it isn't actually visible.  If you double click on that grey bar and set it to use the square word wrap, the picture becomes visible.  

     

    I want to set it to set it to use square word wrap when the document is created in Inventor.  

     

     

    Edited by request
    Discussion_Admin

    *****************************
    Win7 x64 - 16gb ram
    i7 3610qm
    FirePro M4000

    Inventor 2013
    ETO 6.1
    Please use plain text.
    *Expert Elite*
    Posts: 21,728
    Registered: ‎04-20-2006

    Re: How to apply a style to a picture using WordPictureWriter in ETO?

    11-14-2011 12:02 PM in reply to: bsee1

    I am able to set it to Square in the Doc you attached.
    Are you able to double click on the image and set (after the fact)?

     

    Also - I always set my Inventor background to white (Presentation) 1-color for placing images in documents.

    Please mark this response as "Accept as Solution" if it answers your question.
    -----------------------------------------------------------------------------------------
    Autodesk Inventor 2013 Certified Professional
    Autodesk AutoCAD 2013 Certified Professional
    Certified SolidWorks Professional
    Inventor Professional 2013 SP 1.1 Edu 64-bit
    GeForce GTX 560M i7-2670QM @ 2.2GHz 8GB RAM
    http://home.pct.edu/~jmather/content/DSG322/inventor_surface_tutorials.htm
    http://www.autodesk.com/edcommunity
    Still waiting for -Draft option on any Rib feature.
    Please use plain text.
    Mentor
    bsee1
    Posts: 172
    Registered: ‎11-14-2011

    Re: How to apply a style to a picture using WordPictureWriter in ETO?

    11-14-2011 12:15 PM in reply to: JDMather

    Yes I can also set it to square after the fact by double clicking on it.  I'll look into using a white background, thanks.

     

    But my main question is why the style property in the Inventor code beneath doesn't work.  The style property is something Inventor uses, and "wdWrapMergeSquare" comes straight from Microsoft's image styles.  That is the only line in the code that does not work.

     

    --code--

    Child StationPicture As :WordPictureWriter, Quantity = NumberofStations
    Bookmark = "InsertPicture" + stringValue(child.index)
    Placement = :Replace
     style = "wdWrapMergeSquare"
    PictureFile = nth(child.index,PictureFiles)
    End Child

    --code--

     

    *****************************
    Win7 x64 - 16gb ram
    i7 3610qm
    FirePro M4000

    Inventor 2013
    ETO 6.1
    Please use plain text.
    Mentor
    bsee1
    Posts: 172
    Registered: ‎11-14-2011

    Re: How to apply a style to a picture using WordPictureWriter in ETO?

    11-17-2011 01:46 PM in reply to: bsee1

    So, still need help here.  I'll make my question a bit simpler.  Has anyone ever used the style property of WordPictureWriter and been able to make it work?  If so, what style did you use?

    *****************************
    Win7 x64 - 16gb ram
    i7 3610qm
    FirePro M4000

    Inventor 2013
    ETO 6.1
    Please use plain text.