Drawing View Reps as View Label

Drawing View Reps as View Label

andrewdroth
Advisor Advisor
557 Views
3 Replies
Message 1 of 4

Drawing View Reps as View Label

andrewdroth
Advisor
Advisor

Even though I've never needed this before, I'm surprised it isn't baked in.

 

I need to make drawing views of 8 view reps in 7 different positions (56 sheets), and I though I would be able to insert the view's representation selections in the label, but that doesn't seem to be the case.

Is this something iLogic could read?


view reps.PNG

 

label options.png


Andrew Roth
rothmech.com

YouTube IconLinkedIn Icon


IV2025 Pro
Apple IIe Workstation
65C02 1.023 MHz, 64 KB RAM
Apple DOS 3.3
0 Likes
558 Views
3 Replies
Replies (3)
Message 2 of 4

A.Acheson
Mentor
Mentor

Unfortunately they are not in there and I am really not sure why. 

Here is a quick example of using ilogic just to pick one view and retrieve the value and here is an example to add some iproperties to the view label.

It is custom so will not work without changing items around so for sure you will want to test on a sample drawing first but hopefully you get the idea of how it will work. 


Do you want the label text to appear on every view or just selected views? 

 

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

andrewdroth
Advisor
Advisor

Wow! Thanks for the snippets.

 

In this case it would be all the base views in the drawing set.


Andrew Roth
rothmech.com

YouTube IconLinkedIn Icon


IV2025 Pro
Apple IIe Workstation
65C02 1.023 MHz, 64 KB RAM
Apple DOS 3.3
0 Likes
Message 4 of 4

A.Acheson
Mentor
Mentor

Here is a post discussing how to find the base view. 

https://forums.autodesk.com/t5/inventor-forum/bug-when-searching-for-drawing-standard-type-views/td-...

 

It looks to be a tricky one to determine as you need to look at all the views and if it has a parent that means it is the child. So when it gets to the parent nothing is displayed and you can add the label text on this view. However as discussed in the post other views can act like this so filters need to be built in to exclusively determine it is the base view. So that means moving through the drawing checking what views could trip up the rule running successfully so some testing is needed.  Obviously you can avoid all this by just placing the labels on all the views but this would get unsightly. 

 

 

Dim oDrawingView As DrawingView

For Each oDrawingView In ThisApplication.ActiveDocument.ActiveSheet.DrawingViews
	
	'Check if a view has a parent, if not, do this.
	If oDrawingView.ParentView() Is Nothing Then
		oDrawingView.ShowLabel = True
		oDrawingView.Name = "Top parent view"
	Else
		'oDrawingView.ShowLabel = True
		'oDrawingView.Name = "Not top parent view"
	End If
	
Next

 If you need help piecing it together post up the rule and go from there. 

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