Announcements

The Autodesk Community Forums has a new look. Read more about what's changed on the Community Announcements board.

Creating iLogic for empty fields in iproperties

Anonymous

Creating iLogic for empty fields in iproperties

Anonymous
Not applicable

Hello All,

 

I would like to create an iLogic rule that would remind me that certain fields in iproperties are currently are empty, particularly the "project" field.  This rule should work for .ipt, .iam and .idw.  Just a heads up that I am clueless or know very little about creating iLogic so if you can walk me through this it would be appreciated.  Many thanks in advance.

 

Patrick

0 Likes
Reply
Accepted solutions (2)
1,045 Views
3 Replies
Replies (3)

Sergio.D.Suárez
Mentor
Mentor
Accepted solution

 

Dim doc = ThisDoc.Document

Dim oProject As String = doc.PropertySets.Item("Design Tracking Properties").Item("Project").Value 
Dim oDescription As String = doc.PropertySets.Item("Design Tracking Properties").Item("Description").Value 
Dim oRevision As String = doc.PropertySets.Item("Inventor Summary Information").Item("Revision Number").Value 

If oProject = "" Then MessageBox.Show("Project is empty", "Ilogic")
If oDescription = "" Then MessageBox.Show("Description is empty", "Ilogic")
If oRevision = "" Then MessageBox.Show("Revision is empty", "Ilogic")

You can add events to the ilogic rule to run automatically before saving the document and warn you that it has empty fields 

 

See the following link for more information

 

https://modthemachine.typepad.com/my_weblog/2010/02/accessing-iproperties.html


Please accept as solution and give likes if applicable.

I am attaching my Upwork profile for specific queries.

Sergio Daniel Suarez
Mechanical Designer

| Upwork Profile | LinkedIn

Anonymous
Not applicable

Thank you so much, your iLogic rule works beautifly.

0 Likes

Sergio.D.Suárez
Mentor
Mentor
Accepted solution

I hope that I have served you the solution, If so it was please mark it as accepted, greetings


Please accept as solution and give likes if applicable.

I am attaching my Upwork profile for specific queries.

Sergio Daniel Suarez
Mechanical Designer

| Upwork Profile | LinkedIn