Dimension to Textbox in Drawing Sketch iLogic

Dimension to Textbox in Drawing Sketch iLogic

willAM42F
Contributor Contributor
374 Views
4 Replies
Message 1 of 5

Dimension to Textbox in Drawing Sketch iLogic

willAM42F
Contributor
Contributor

Is there a way to use iLogic to dimension a textbox in a drawing sketch?

 

The object that I'm trying to dimension is the Inventor.TextBox object, but I'm having trouble with it.

 

Thanks in advance for any help you're able to provide.

0 Likes
Accepted solutions (1)
375 Views
4 Replies
Replies (4)
Message 2 of 5

FINET_Laurent
Advisor
Advisor

Hello @willAM42F 

 

You can set up a textbox pretty much anyway you want. It depends of what you are trying to achieve. Is it the font height you want to change ? The color ? The position ? The width of the textbox object?

Could you please be more precise so we can help ?


Kind regards,

FINET L.

If this post solved your question, please kindly mark it as "Solution"

If this post helped out in any way to solve your question, please drop a "Like"

@LinkedIn     @JohnCockerill

Message 3 of 5

willAM42F
Contributor
Contributor

Hi there, @FINET_Laurent,

 

Thanks for the reply!

 

I'm trying to dimension the position of the textbox with respect to another sketch feature, like a line or a point in order to fully constrain the sketch. I've found ways to modify different characteristics of the textbox like font, size, & color. But I haven't been able to apply a dimension (or a constraint for that matter) to the attachment point of the textbox in order to fix it in place relative to other geometry in the sketch.

 

Respectfully,

Will

0 Likes
Message 4 of 5

WCrihfield
Mentor
Mentor
Accepted solution

Hi @willAM42F.  There are two main ways to 'attach' a dimension to an Inventor.TextBox.  The first, and simplest is by using its TextBox.OriginSketchPoint.  But as it says in its documentation, it will only exist if you have not displayed the boundaries of the TextBox.  The other way is by showing the boundary, then getting the geometry of that boundary, and using those as what to attach your dimensions to.

TextBox.ShowBoundaries 

TextBox.BoundaryGeometry 

The documentation for that last one does not mention it, but I would assume that you would not get anything from the TextBox.BoundaryGeometry if you have not yet set the TextBox.ShowBoundaries property to True yet.  Beyond that, I assume you already know how to get/create GeometryIntent objects from those geometry objects for use with your dimension creation codes.

Wesley Crihfield

EESignature

(Not an Autodesk Employee)

0 Likes
Message 5 of 5

willAM42F
Contributor
Contributor

Hi, @WCrihfield,

 

Thanks very much for the help!

 

I searched through the documentation for TextBox and didn't see those options for it. I really appreciate you explaining them to me.

 

Respectfully,

Will

0 Likes