iLogic to update text box in a sketch with a custom iproperty

iLogic to update text box in a sketch with a custom iproperty

nilaypatel
Explorer Explorer
408 Views
2 Replies
Message 1 of 3

iLogic to update text box in a sketch with a custom iproperty

nilaypatel
Explorer
Explorer

I am working on iparts which needs to show part number as extruded text. After looking at different posts I found that to have varying part number extruded on different iterations of the iparts, I need to have a custom iproperty which I can author in an ipart. Then use this custom iproperty in the text box inside a sketch to extrude it.

 

I am new to ilogic and looking for help to get the code to get into the sketch(renamed as TAG_TEXT) and input part number or custom iproperty named TAG(which indeed is the part number). I have already tried ilogic to update a user parameter and using this user parameter in the sketch. Issue with this is it makes the ipart selected with correct extruded text but all the other becomes incorrect by showing the same part number as the one selected.

Few example of the tags I need to use are

F-0C01, F-0C02...

GLV-01A01, GLV-02B01...

 

Please keep in mind that the ilogic I need is to be used on iparts which can update all the different iterations of the iparts and this iparts will be further used in iassemblies.

 

 @johnsonshiue 

0 Likes
409 Views
2 Replies
Replies (2)
Message 2 of 3

A.Acheson
Mentor
Mentor

Hi @nilaypatel 

Ilogic inside an ipart is not supported except to initially automate manual tasks. A derived part (a member)  cannot have an ilogic rule running within. Can you share with us an image of the operation you need to perfom and where you are currently performing it? 

If this solved a problem, please click (accept) as solution.‌‌‌‌
Or if this helped you, please, click (like)‌‌
Regards
Alan
0 Likes
Message 3 of 3

nilaypatel
Explorer
Explorer

Hi @A.Acheson 

Please see the attached image for an ipart of a glass. Although glass will not have the tag extruded on it, I need to show it visually to know the tag and size without checking the iproperties. I have the tag/part number manually typed in the textbox in sketch and the size is seen by adding the model parameter. Tag needs to change for all the members. I want to automate this to change with each member to show member specific part number. The size of glass is updated as it shows the model parameter, but their is no way to add tag/part number in the sketch.

Hope this can be done using ilogic. Thank you in advance !

0 Likes