Add text to .dwg using iLogic

Add text to .dwg using iLogic

meck
Collaborator Collaborator
726 Views
4 Replies
Message 1 of 5

Add text to .dwg using iLogic

meck
Collaborator
Collaborator

Is there a way to add text to a .dwg using iLogic? I want a note to be displayed when a certain condiction is met.

Thanks in advance!

Mike Eck
Master Drafter/ CAD Programmer
Using Inventor 2018
0 Likes
727 Views
4 Replies
Replies (4)
Message 2 of 5

MjDeck
Autodesk
Autodesk

It would probably be easier to have the text already created but invisible (on an invisible layer), and then display it when the condition is met.  (If the condition is not met, a rule would hide it again.)  Would that be OK?  What kind of condition are you looking at?

 


Mike Deck
Software Developer
Autodesk, Inc.

0 Likes
Message 3 of 5

meck
Collaborator
Collaborator

Thanks for the response, and sorry for the confusion!

There will always be a note displayed, but depending on a condition, or a calculation, the note will change to suit. The text of the note would have infinite possibilities.

Mike Eck
Master Drafter/ CAD Programmer
Using Inventor 2018
0 Likes
Message 4 of 5

MjDeck
Autodesk
Autodesk

You can do it with a custom iProperty.  Create the property (with a name such as DrawingNote) in the drawing or part or assembly, and then create the text note in the drawing.  Use the property as the source for the text note.  Then you can drive the property text with a rule like this:

 

If (...) Then

 iProperties.Value("Custom", "DrawingNote") = "Condition One"

Else

 iProperties.Value("Custom", "DrawingNote") = "Other Condition"

End If

 

You would put the rule in the drawing or part or assembly: wherever you created the property.  The document where you have the data that is the source of your conditional test is the place to put the rule.

 


Mike Deck
Software Developer
Autodesk, Inc.

0 Likes
Message 5 of 5

meck
Collaborator
Collaborator

Excellent idea!

Kudos to you my friend!

Thanks.

Mike Eck
Master Drafter/ CAD Programmer
Using Inventor 2018
0 Likes