About the authors

« How to avoid ambiguity when customizing the marking menu? | Main | Mass summation in Part lists for components with same Part Number but different lengths »

07/21/2011

Comments

Feed You can follow this conversation by subscribing to the comment feed for this post.

Excellent post Bob, very thorough and detailed.

Mark Randa has also written some great tutorials for using iLogic to update embossed text to match the Part No:
http://opendesignproject.org/Inventor/iLogic/Text_Manipulation/index.phP


With a little help from Mike Deck, the iLogic guru from the Autodesk discussion groups:
http://forums.autodesk.com/t5/Autodesk-Inventor/iProperty-Text-in-ipt-emboss-stock-number/m-p/2670938/highlight/true#M372654

I was aware of Mark's article and he certainly deserves credit for being the first one to blog about it. But with 2012 coming along I thought the subject deserved a simple approach via iLogic forms.
Thanks for the comment.
Bob

Very, very nicely done!

This worked great! I do have a question: I am unfamiliar with the tag and what it can control. I need to be able to control the Stretch of the text to make it fit always fit into a text box. Is there any documentation of other things it can control? I have searched everywhere. Thanks!

Oops, it stripped out the tag that I pasted in the above post. The tag I was referencing was the "Style Override" tag.

Hi Matthew,

The formatting of drawing text is documented in the Community resources > Programming help.
In the 2012 version of the API help, go to the Overview Articles.
In the Overview Articles, look for "List of XML text formatting tags for FormattedText". There you will find an explanation of the Style Override tag amongst others.
I am sure you will find a way to fit your text in the text box by programmatically adapting the font size.
Bob


Wow, thanks for the quick response. I actually did find what I was looking for:

osketch.TextBoxes.Item(1).widthscale

Thanks for all of your help, though, that got me pointed in the right direction. I really appreciate this blog.

I just wanted to point out that this can be done in Inventor 2013, without the workarounds mentioned above.

http://wikihelp.autodesk.com/Inventor_LT/enu/2013/Help/0000-What_s_N0/0001-What_s_N1/0015-Sketch15/0033-Add_user33

Yes, 2013 made it somewhat simpler. You can now include the user parameter in the text used for the emboss and you can simply change the parameter value to get a different emboss text. The parameter can be changed either manually or via iLogic if you want to create a family of parts.So you still need to "program" if you want to create a family of different embosses.
As long as Inventor cannot use the parameter of type text in an iPart, we will have to help Inventor a little bit via iLogic to pre-define the different emboss shapes.
Bob

The comments to this entry are closed.

RSS Feed

  • Subscribe

August 2017

Sun Mon Tue Wed Thu Fri Sat
    1 2 3 4 5
6 7 8 9 10 11 12
13 14 15 16 17 18 19
20 21 22 23 24 25 26
27 28 29 30 31    

Self-Service Kiosk

Did not find what you were looking for?
Give the Inventor Self-Service Kiosk a try and hit the Start button
Note: the kiosk momentarily only works with Internet Explorer
kiosk