Title block update from iLogic

Title block update from iLogic

Nigel.Sims
Advocate Advocate
959 Views
2 Replies
Message 1 of 3

Title block update from iLogic

Nigel.Sims
Advocate
Advocate

Hi all,

 

I have setup a simple rule to extract parts of the a drawing filename and populate iProperty fields with these values which then drives the title block. I can get the iproperties to populate as i want but the title block wont update until I open the iProperties window and then close it. Is there a way to get the title block to update with these new values without having to open and close the iproperties window?

 

Here is the code.

 

SyntaxEditor Code Snippet

'Populate iProperties from filename
iProperties.Value("Summary", "Title") = (Right(ThisDoc.FileName(False),13))
iProperties.Value("Project", "Project") = (Left(ThisDoc.FileName(False), 4))
iProperties.Value("Custom", "DRAWING NO") = (Left(ThisDoc.FileName(False), 12))
iProperties.Value("Custom", "SYSTEM") = (Mid(ThisDoc.FileName(False),6,10))

 Thank in advance

 

Nigel

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

tkennedy26
Enthusiast
Enthusiast
Accepted solution

If you add the following to the last line of your code, it should update all iproperties

iLogicVb.UpdateWhenDone = True

Message 3 of 3

Nigel.Sims
Advocate
Advocate

Brilliant! Thanks for your help.

 

Nige

0 Likes