Community
Inventor Forum
Welcome to Autodesk’s Inventor Forums. Share your knowledge, ask questions, and explore popular Inventor topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Tricky template with advanced API

7 REPLIES 7
Reply
Message 1 of 8
S7RM7RPR
542 Views, 7 Replies

Tricky template with advanced API

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.

7 REPLIES 7
Message 2 of 8
S7RM7RPR
in reply to: S7RM7RPR

I'm going to go out on a limb and assume that no one has any ideas....

Message 3 of 8
wimann
in reply to: S7RM7RPR

Have you tried posting this in the Inventor Customization forum? The General forum tends to have the less API-savvy users (like myself).

-Will Mann

Inventor Professional 2020
Vault Professional 2020
AutoCAD Mechanical 2020
Message 4 of 8
S7RM7RPR
in reply to: wimann

Thank you I shall try that
Message 5 of 8

Hi ajknexlang,

 

You'll need to format the text something like this. If I have time later I'll provide a working example.

 

 

<Stack FractionalTextScale='0.700000'>1/2</Stack>&quot;<Br/> 

 

Link the other thread:

http://forums.autodesk.com/t5/inventor-customization/tricky-template-using-advanced-api/m-p/5389073

 

 I hope this helps.
Best of luck to you in all of your Inventor pursuits,
Curtis
http://inventortrenches.blogspot.com

Message 6 of 8

Unless I'm using that vague idea incorrectly - which is entirely possible - it's not working.

If I wasn't clear, the problem is in the field text. I can't seem to change how it is formatted.

 

To be clear,

 

Excel holds the data. I currently have excel formatting the data as fractions. iLogic is pulling the excel data and throwing it into the prompt fields as per my first post. I can't format the prompt field text.

Message 7 of 8


@ajknexlang wrote:

Unless I'm using that vague idea incorrectly - which is entirely possible - it's not working.


Hi ajknexlang,

 

My apologies for not further explaining. But as you found out my previous post was just a vague idea to say "yes it can be done".

 

If you look at my last post on the thread at this link, you might be able to work through how the formatting is handled:

http://forums.autodesk.com/t5/inventor-general-discussion/help-with-view-label-ilogic-rule/td-p/5001...

 

But I'll try to work up an example later.

 

I hope this helps.
Best of luck to you in all of your Inventor pursuits,
Curtis
http://inventortrenches.blogspot.com

Message 8 of 8

I'm afraid I'm still not quite sure what you're getting at.. using your idea I have to create an intermediatary rule to take the excel value and stack it in the iProperties which will then populate the drawing... right?

 

An example would be very much appreciated.

 

Thank you very much for your help on this by the way. This is entirely new territory for me. Trial by fire as it were.

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report