Double Digit Rev Numbers

Double Digit Rev Numbers

Anonymous
Not applicable
728 Views
3 Replies
Message 1 of 4

Double Digit Rev Numbers

Anonymous
Not applicable

As the title states, anyone know a way to set it to double digits?  Presently, after I add a new revision row, I have to go into the iProperties and add a 0 before the single digit revisions.  Some customers like single digits, others like double.

 

The only post I found with a workaround was for Revit.

 

Tried searching the IdeaStation as well, but no luck.  I would like to be able to specify before I place the rev table how many digits would show.  Obviously, for alpha characters, this option would not be available.

 

Would it be worthwhile to suggest?

0 Likes
729 Views
3 Replies
Replies (3)
Message 2 of 4

Curtis_Waguespack
Consultant
Consultant

Hi ASI_Aaron,

 

I'd give that IdeaStation idea a vote.

 

In the mean time, here is an iLogic snippet that will add the leading zero. You could create a rule with a "before save" event trigger that would catch this for you.

 

I hope this helps.
Best of luck to you in all of your Inventor pursuits,
Curtis
http://inventortrenches.blogspot.com

 

 

oRev = iProperties.Value("Project", "Revision Number")

If IsNumeric(oRev) = False Then
	Return 'exit rule
Else
	If CDblAny(oRev) < 10 Then
		iProperties.Value("Project", "Revision Number") = 0 & oRev 
	End If
End If

 

oRev = iProperties.Value("Project", "Revision Number")

If IsNumeric(oRev) = False Then
	Return 'exit rule
Else
	If CDblAny(oRev) < 10 Then	
	iProperties.Value("Project", "Revision Number") = 0 & CDblAny(oRev)
	End If
End If
	
0 Likes
Message 3 of 4

Anonymous
Not applicable

Thanks for the code Curtis.  I'll give it a go.

 

In the meantime, when I get a free minute, I'll post it over on IdeaStation and get back with a link.

 

EDIT:  Here the IdeaStation link if anyone would like to vote: Double Digit Revision Number

Message 4 of 4

Anonymous
Not applicable

Thanks again Curtis, just grabbed the new code and will play around with it.  

0 Likes