Attach Revision table to title block template

Attach Revision table to title block template

helouise
Enthusiast Enthusiast
3,241 Views
13 Replies
Message 1 of 14

Attach Revision table to title block template

helouise
Enthusiast
Enthusiast

Hi all, can someone please help me. When I place a Revision table on new drawing or template I can place it where it is needed.

 

We sometimes have to resize the sheet depending on the size of assembly or amount of parts placed on sheet for fabrication details.

 

Our title block is one size, we use it for sheet sizes A2, A1 and A0.

 

When I resize the sheet as needed the revision table does not move with the title block.

 

Any tips would help.

 

Thank you

0 Likes
Accepted solutions (3)
3,242 Views
13 Replies
Replies (13)
Message 2 of 14

CGBenner
Community Manager
Community Manager

@helouise 

 

Hi!  If I am understanding correctly, you are inserting the Revision Table as a symbol.  The only way to get it to stay attached when you resize the border and title block, I believe, would be to make the revision table a part of the title block itself.  Inserting it later as a symbol, while you can snap it to a location,... will not stay there if the title block is resized.  You can always move it, but I can see where that would be annoying.

Did you find a post helpful? Then feel free to give likes to these posts!
Did your question get successfully answered? Then just click on the 'Accept solution' button.  Thanks and Enjoy!


Chris Benner
Community Manager

Message 3 of 14

helouise
Enthusiast
Enthusiast

@CGBenner 

How do I make it part of my Title block? The Revision table has its own entries selected from the Styles Editor for example LTR and today's date.

helouise_0-1626101380641.png

I do not want to edit the title block each time I want to add a revision. That is what we have been doing just adding text to title block. Inventor has the function Revision table on the table node under annotate.

 

It would be great to have it in my Title block as it needs to be on all sheets of a drawing.

 

0 Likes
Message 4 of 14

A.Acheson
Mentor
Mentor

You would need to either set the templates to have it in the right spot or use the sheet sets. But sometimes you want an on the fly change after you start detailing. An external/ internal  iLogic rule would be the way to go which would change position of the rev block based on the size of the sheet. It just automates the move command for the title block when the sheet changes. 

An example

 

https://microconcepts.typepad.com/design_automation/2015/09/change-sheet-size-update-title-block-and...

 

There are many more examples available on the customization forum if you think you would like to go this route. There may even be easier ones than this too. You can automate a lot of the drawing aspects and even add revision rows, fill in title blocks etc all from a form, reposition the part list, change parts list style, change revision style etc. 

 

 

 

 

If this solved a problem, please click (accept) as solution.‌‌‌‌
Or if this helped you, please, click (like)‌‌
Regards
Alan
Message 5 of 14

Curtis_Waguespack
Consultant
Consultant

Hi @helouise 

I have an iLogic rule that handles this... 

 

if you can upload an example of your drawing for me to test it, I'll be happy to share it with you. 

 

On second thought, I just had a quick look at this and scrubbed out some "specific" lines that I was concerned might not work for you... so I think this version is pretty universal, but if it does not work for you... then maybe post an example file and I'll have another look. 

 

just uncomment the oPlacement line that fits your situation, and then set this rule to run on the before same event or similar.

 

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

 

 

'oPlacement = "Bottom Left"
'oPlacement =  "Top Left"
'oPlacement =  "Top Right"
'oPlacement =  "Top of Title Block"
oPlacement =  "Left of Title Block"

Dim oDrawDoc As Inventor.DrawingDocument 
Dim oSheet As Inventor.Sheet
Dim oTG As TransientGeometry
Dim oRevTable As RevisionTable

oDrawDoc = ThisDoc.Document
oSheet = oDrawDoc.ActiveSheet
oTG = ThisApplication.TransientGeometry

Try
	oRevTable = oDrawDoc.ActiveSheet.RevisionTables.Item(1)
Catch
	Return 'exit rule
End Try

oBorderPointXMin = oSheet.Border.RangeBox.MinPoint.X
oBorderPointXMax = oSheet.Border.RangeBox.MaxPoint.X
oBorderPointYMin = oSheet.Border.RangeBox.MinPoint.Y
oBorderPointYMax = oSheet.Border.RangeBox.MaxPoint.Y

oTBPointXMin = oSheet.TitleBlock.RangeBox.MinPoint.X
oTBPointXMax = oSheet.TitleBlock.RangeBox.MaxPoint.X
oTBPointYMin = oSheet.TitleBlock.RangeBox.MinPoint.Y
oTBPointYMax = oSheet.TitleBlock.RangeBox.MaxPoint.Y


RevTableHgt = oRevTable.RangeBox.MaxPoint.Y - oRevTable.RangeBox.MinPoint.Y
RevTableLnt = oRevTable.RangeBox.MaxPoint.X - oRevTable.RangeBox.MinPoint.X
										

Select Case oPlacement

Case "Bottom Left"
	oRTPointX = oBorderPointXMin '+ RevTableLnt 
	oRTPointY = oBorderPointYMin + RevTableHgt
	oRevTable.HeadingPlacement = HeadingPlacementEnum.kHeadingAtBottom
	oRevTable.TableDirection = TableDirectionEnum.kBottomUpDirection

Case "Top Left"
	oRTPointX = oBorderPointXMin 
	oRTPointY = oBorderPointYMax 
	oRevTable.HeadingPlacement = HeadingPlacementEnum.kHeadingAtTop
	oRevTable.TableDirection = TableDirectionEnum.kTopDownDirection

Case "Top Right"
	oRTPointX = oBorderPointXMax - RevTableLnt
	oRTPointY = oBorderPointYMax 
	oRevTable.HeadingPlacement = HeadingPlacementEnum.kHeadingAtTop
	oRevTable.TableDirection = TableDirectionEnum.kTopDownDirection

Case "Top of Title Block"
	oRTPointX = oTBPointXMax - RevTableLnt
	oRTPointY = oTBPointYMax + RevTableHgt
	oRevTable.HeadingPlacement = HeadingPlacementEnum.kHeadingAtBottom
	oRevTable.TableDirection = TableDirectionEnum.kBottomUpDirection

Case "Left of Title Block"	
	oRTPointX = oTBPointXMin - RevTableLnt
	oRTPointY = oTBPointYMin + RevTableHgt 
	oRevTable.HeadingPlacement = HeadingPlacementEnum.kHeadingAtBottom
	oRevTable.TableDirection = TableDirectionEnum.kBottomUpDirection

End Select


'Move 
oLocation = oTG.CreatePoint2d(oRTPointX, oRTPointY)
oRevTable.Position() = oLocation

			

 

EESignature

Message 6 of 14

helouise
Enthusiast
Enthusiast

@Curtis_Waguespack 

 

Thank you so much for your help.

 

I have absolutely no experience with Ilogic.

 

I have attached my example if you could please help or direct me in the right way.

 

Thank you

Message 7 of 14

Curtis_Waguespack
Consultant
Consultant
Accepted solution

Hi @helouise 

 

See the attached. 

 

I updated the rev block rule to work with your title block and a added a dropdown to your title block form to change the sheet size...

 

when the sheetsize parameter is changed, a Sheet Size rule is run automatically, and it calls the rev block rule.

 

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

EESignature

Message 8 of 14

helouise
Enthusiast
Enthusiast

@Curtis_Waguespack 

 

I just want to thank you so much!!

 

It works perfectly and I really Appreciate it!!

 

Thanks for taking the time to help me!!

Message 9 of 14

helouise
Enthusiast
Enthusiast

@Curtis_Waguespack 

 

I just have a question. Is there a rule I can use to insert revision table automatically on same placement on any new sheets I add and if I use model properties in my title on first sheet is it possible to use those same properties on every sheet.

For example if I use text that references model description on first sheet I want that same entry on second sheet were I detail my parts and not the Description of the first part I place on that sheet.

 

Our tile block and revision table don't change from sheet to sheet. every additional sheet must be use exactly the same details as first sheet.

 

Thanks

0 Likes
Message 10 of 14

helouise
Enthusiast
Enthusiast

@Curtis_Waguespack 

 

Hi excuse all the questions. The rule you added Sheet Size, is it possible to be dependent on the actual sheet size and not the user parameters I set. So if I right click on the sheet and change sheet size that the iLogicVb.RunRule("Position Rev Block") ThisApplication.ActiveView.Fit still works

 

0 Likes
Message 11 of 14

Curtis_Waguespack
Consultant
Consultant
Accepted solution

@helouise wrote:

 

I just have a question. Is there a rule I can use to insert revision table automatically on same placement on any new sheets I add ... I add some code to the Rev Block rule that will create a new rev block if one doesn't exist, as well as a new rule to create a new sheet... so by using the button in the form to create a new sheet, it does this all at once

 

...and if I use model properties in my title on first sheet is it possible to use those same properties on every sheet. For example if I use text that references model description on first sheet I want that same entry on second sheet were I detail my parts and not the Description of the first part I place on that sheet.

there is a variable in the Rev block add method that sets the rev block to be 'drawing scope' or 'sheet scope', I set the example in the attached to use the drawing scope .... but that's just for the rev block, to get the title block to look at the same properties, you need to set up the title block to use Drawing Properties, and set the Document Settings option to copy the model properties of the first view of the drawing to the Drawing Properties... you'd do all of that and save the drawing as a template, so you don't need to do it every time.

 

 222.PNG

 

111.PNG

 

Hi @helouise 

see the comments above, and the attached example file.

 

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

 

EESignature

Message 12 of 14

Curtis_Waguespack
Consultant
Consultant
Accepted solution

Hi @helouise 

 

I don't know of a way to do that with iLogic... but in the last example I attached, you can do this by using the button in the form to create the sheet .

 

these are all good questions...  just as a tip, you can search and ask programming questions of this type on the Inventor Customization forum where there is a more programming focused audience:
http://forums.autodesk.com/t5/Autodesk-Inventor-Customization/bd-p/120

 

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

EESignature

Message 13 of 14

zikmund
Contributor
Contributor

Hi Curtis! The code for revision block position is excelent! I'm wondering, if something similar can be done for sketch symbol?

 

With best regards,

Milan

0 Likes
Message 14 of 14

zikmund
Contributor
Contributor
Hi Curtis! The code for revision block position is excelent! I'm wondering, if something similar can be done for sketch symbol?

With best regards,
Milan
0 Likes