Sketch Text Update

Sketch Text Update

Anonymous
Not applicable
778 Views
3 Replies
Message 1 of 4

Sketch Text Update

Anonymous
Not applicable

I have a simple nameplate I wish to add text only to from the parameters. My part model is a simple rectangle extrude with a stetch on top incorporating text only which is linked to the parameters. I do not wish to add any feature to the text. However if the parameter number is changed then the sketch text does not update accordlingly.

 

I have tried every ilogic update and nothing works. The only 2 ways for the text to update is 1:  to left click on the text and try to move the text. It won't move obviously as it is constrained but it updates. 2 :The only way that will work through an ilogic rule is to change it's thickness followed by a "RuleParameterUpdate" then set it thickness back to what it should be.

 

To confuse matters if the part is put onto a drawing sheet and I make the sketch visible the drawing will show the text as updated before any update attemps are done on the actual part.

 

I have attached the part for consideration where you have to run the Ilogic rule "SETUP" to update the text.

 

Cheers

0 Likes
Accepted solutions (1)
779 Views
3 Replies
Replies (3)
Message 2 of 4

Anonymous
Not applicable
Accepted solution

 

ThisDoc.Document.Rebuild()
Message 3 of 4

MjDeck
Autodesk
Autodesk

You can trigger a Rebuild with the attached rule.  I am trying to find out why a rebuild is necessary.  If the part was more complicated, a rebuild could take a long time.


Mike Deck
Software Developer
Autodesk, Inc.

0 Likes
Message 4 of 4

Anonymous
Not applicable

Hi I'm still having serious problems with sketched updating but this time while using a "while" statement. Basically in my part I have a sketch only. I want my rule to ajdust the sketch while it is running, read the sketch and stop adjusting once a particular dimension is reached. However I have tried every combination of the below but the rule seems to not be able to read the sketch at all once it is adjusting. Not sure I have enough updates in here.

 

While (BEARING_UNIT_TOP_PLATE_LENGTH - BEARING_UNIT_FOOT_PAD_LENGTH) / 2 < 20

MOTOR_STOOL_TOP_WIDTH = MOTOR_STOOL_TOP_WIDTH + 5

ThisDoc.Document.Rebuild()

InventorVb.DocumentUpdate()

ThisApplication.ActiveView.Update()

iLogicVb.UpdateWhenDone = True

RuleParametersOutput()

test = (BEARING_UNIT_TOP_PLATE_LENGTH - BEARING_UNIT_FOOT_PAD_LENGTH) / 2

EqualWithinTolerance (test, 20, 1)

End While

0 Likes