choosing rev table in ilogic

choosing rev table in ilogic

bengee5454
Collaborator Collaborator
325 Views
2 Replies
Message 1 of 3

choosing rev table in ilogic

bengee5454
Collaborator
Collaborator

hi. I produce drawings for 2 companies, therefore I have 2 title blocks. Up until recently the title blocks were very similar (just changing company logo), so I used a bit of ilogic and created a form to switch between the 2.

If Title_Block = "Company A" Then
	ActiveSheet.TitleBlock = "CompanyA"

ElseIf Title_Block = "Company B" Then
	ActiveSheet.TitleBlock = "CompanyB"


End If

However, Company B decided to revamp its title block. Among other changes, the revision history block was extended. So now i have 2 revision table styles. 

Is there a way to extend my rule to include rev history blocks?

0 Likes
326 Views
2 Replies
Replies (2)
Message 2 of 3

Sergio.D.Suárez
Mentor
Mentor

Hello, if you can increase the entry in title block, adding all the revisions, I suppose you could use something like the following

If Title_Block = "Company A" Then
	ActiveSheet.TitleBlock = "CompanyA"

ElseIf Title_Block = "CompanyB Rev1" Then
	ActiveSheet.TitleBlock = "CompanyB_Rev1"
	
ElseIf Title_Block = "CompanyB Rev2" Then
	ActiveSheet.TitleBlock = "CompanyB_Rev2"

End If

 regards


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

Message 3 of 3

bengee5454
Collaborator
Collaborator

thanks, but isn't this just expanding the choice of title block? I want to assign a rev history style to the title block.

 

what i really want is something like this (i have no idea of the code! - I have completely made it up!)

If Title_Block = "Company A" Then
	ActiveSheet.TitleBlock = "CompanyA"
ActiveSheet.RevisionHistory = "RevCompanyA" ElseIf Title_Block = "Company B" Then ActiveSheet.TitleBlock = "CompanyB" ActiveSheet.RevisionHistory = "RevCompanyB"
 
End If

is something like this possible?

0 Likes