Firstly, I'm posting this because I'm having problems with a work project so I apologize if I'm vague but there are some things I can't post.
I'm attempting to make a standard title block for an extremely variable product, there are specific parts of our product that don't change however. What I am doing is including those "standard" parts in the title block so that they can't be edited and can be used wherever the titleblock is needed.
Now, for these standard sections there are a few dimensions that change. The way I have it set up right now is I am using this technique,
http://inventortrenches.blogspot.com/2014/06/ilogic-titleblock-project-data-from.html
to get all the different variables I need. The problem I'm having now though is that I can't figure out how or if I can use stacked fractions. I have fractions set up in excel, they are going to inventor and getting put in their appropriate fields, but they are appearing as 3/4 instead of stacked.
I'm hoping there is some API or VBA code I can use to accomplish this that I have not yet discovered. If there is nothing can you please suggest another option?
Note, the details in the title block need to be completely seperate from whatever 3D model is used because of the variability. All the information is being imported from an external source via iLogic or Excel.
I'm using Inventor 2015 if that makes a difference.
Solved! Go to Solution.
Solved by ekinsb. Go to Solution.
Link back to the original thread:
Inventor does support stacked fractions. To do any fancy text formatting in the API you use the FormattedText property of whatever object it is that contains the text. If you open Inventor's Programming Help, click the "Search" tab and enter "XML Tags for FormattedText" you'll find a topic titled the same thing. This explains how Inventor uses an XML formatted string to allow you to define all of various formatting options. Towards the bottom of the document it describes how to create a string that has stacked fractions.
Unfortunately it appears that prompted text fields do not support any special formatting so this is not currently possible. I suggest you post this on the Inventor IdeaStation forum.
Can't find what you're looking for? Ask the community or share your knowledge.