iLogic and Sketched Symbols

iLogic and Sketched Symbols

Anonymous
Not applicable
498 Views
1 Reply
Message 1 of 2

iLogic and Sketched Symbols

Anonymous
Not applicable

I would like to use an external iLogic rule to update the field text of one of my Sketched Symbols in our shop drawings.  The sketched symbol in each of our drawings is named "Material" and has three Property Fields: Part Number, Description and Quantity.  For sheet metal parts that are plasma cut, we use a spreadsheet to determine the amount of material that will be consumed by the operation but requires opening the spreadsheet and making the changes.  

 

I have found it convenient to create an external iLogic rule called "sheet_area" that when run manually, prompts for the outside dimensions of the part and then using the same calculations as have been used in the spreadsheet - displays the square footage of consumed material.  This rule works great except that I have to close the message box that displays the "Quantity" and enter the value in manually into the sketched symbol.  If I get distracted or forget the number then there is room for error in the quantity of material entered into the sketched symbol.

 

Is there a way to update the "Quantity" value in my sketched symbol "Material" as part of the iLogic rule?

0 Likes
499 Views
1 Reply
Reply (1)
Message 2 of 2

MjDeck
Autodesk
Autodesk

Do you have a custom iProperty named Quantity?  Do you use that iProperty for one of the field texts in the sketched symbol? 

I so, in the iLogic rule you should be able to assign a value to the iProperty.  Then this value will be shown in the sketched symbol.  Use a statement like this:
iProperties.Value("Custom", "Quantity") = quantity

You might have to add the line:

iLogicVb.UpdateWhenDone = True

to the rule to get the sketched symbol to update with a new quantity value.


Mike Deck
Software Developer
Autodesk, Inc.

0 Likes