Announcements
Attention for Customers without Multi-Factor Authentication or Single Sign-On - OTP Verification rolls out April 2025. Read all about it here.

SECTION/DETAIL VIEW LABEL SHEET

jacob.dillingham
Enthusiast

SECTION/DETAIL VIEW LABEL SHEET

jacob.dillingham
Enthusiast
Enthusiast

For my drawings I have one large overhead view on sheet 1 that shows the entire system. On sheet 1 I will create many, 10+, section views to better detail the overall system. sometimes these drawing sets can be 10 to 20 sheets long. What I am needing is for the section cuts and their labels on sheet 1 to automatically the view name, <VIEW>, and the sheet that the view was moved to. See the png named "SECTION LABEL TEXT" to show the final output I am needing but would like the "SHT 7" callout to be automatically updated rather than manually input.

 

I've found posts that talk about using the parent sheet index in the view annotations style to show what page the child view is being pulled from. But I have not found solutions for this specific change. I imagine the solution is pretty simple with Ilogic but am not well versed enough to write it myself. Any help would be much appreciated.

SECTION LABEL TEXT.pngSECTION LABEL.png

0 Likes
Reply
3,753 Views
30 Replies
Replies (30)

srabournP4VCD
Contributor
Contributor

We could benefit from this at our company as well. 

0 Likes

jacob.dillingham
Enthusiast
Enthusiast

I don't know why they moved it to the Ilogic forum. While this is something that can be solved by Ilogic, very poorly I might add, it should exist on it's own in Inventor and not have to write a program to do it. 

jacob.dillingham
Enthusiast
Enthusiast

So this post is almost 2 years old and guess what we still need this functionality. Has this been implemented in later versions of Inventor? This most definitely should not be a "figure out how to use Ilogic to do something that the program should allow you to do simply" kind of problem. The piece of data exists somewhere in Inventor we just have not reasonable way to access it.

0 Likes

srabournP4VCD
Contributor
Contributor

I have tried to access this information with iLogic and have been unsuccessful. I found an add-in that kind of works, but it is very limited.

0 Likes

cadman777
Advisor
Advisor

Mind telling me which add-on?

Thanx...

... Chris
Win 7 Pro 64 bit + IV 2010 Suite
ASUS X79 Deluxe
Intel i7 3820 4.4 O/C
64 Gig ADATA RAM
Nvidia Quadro M5000 8 Gig
3d Connexion Space Navigator
0 Likes

JelteDeJong
Mentor
Mentor

I found some sort of solution. It's not perfect mainly because I could not find a way to change the section line label. Therefore I created a rule that writes the information to the iLogic log. Just run the rule and select the "parent" drawing view.

JelteDeJong_0-1658093893806.png

 

Dim doc As DrawingDocument = ThisDoc.Document
Dim view As DrawingView = ThisApplication.CommandManager.Pick(SelectionFilterEnum.kDrawingViewFilter, "Select a Drawingview (with section lines ;-)")

Dim sectionViewsThatBelongToSelectedView As List(Of DrawingView) = doc.Sheets.Cast(Of Sheet).
    SelectMany(Function(s) s.DrawingViews.Cast(Of DrawingView)).
    Where(Function(d) TypeOf d Is SectionDrawingView).
    Where(Function(d) d.ParentView Is view).
    OrderBy(Function(d) d.Name).
    ToList()

For Each sectionView As DrawingView In sectionViewsThatBelongToSelectedView

    Dim sectionViewSheet = sectionView.Parent

    Dim sheetName = sectionViewSheet.Name
    Dim seperatorIndex As Integer = sheetName.LastIndexOf(":")
    Dim sheetNumber = sheetName.Substring(seperatorIndex + 1, sheetName.Length - seperatorIndex - 1)

    Logger.Info(String.Format("Section view '{0}' is on sheet '{1}'",
         sectionView.Name, sheetNumber
         ))

    '' Ugly hack because I can't access the section line label...
    '' Uncomment the next lines if you want to try the hack!

    '' Change the following text to change your label text
    'Dim name As String = sectionView.Name
    'Dim seperatorIndex2 As Integer = name.LastIndexOf(SectionLineLabelText)
    'If (seperatorIndex2 > 0) Then
    '    name = name.Substring(0, seperatorIndex2)
    'End If

    'sectionView.Name = String.Format("{0}{1}{2}", name, SectionLineLabelText, sheetNumber)
    'sectionView.Label.FormattedText = name
Next

 

I also found an ugly hack that allows you to show the sheet numbers on the selection lines on the parent view.

JelteDeJong_1-1658095855416.png

I have to warn you about what this will do. (It's so ugly that I commented out this part of the rule!) It will add the sheet number to the "section name". This will result in the image above. But usually, your section view label will look something like "<VIEW> - <VIEW>". That results in the following view label:

JelteDeJong_2-1658096174973.png

To counter that effect the rule will also change the "section view label" and just remove the smart stuff. That means that when you change the section name it will not update the section view label anymore (until you run the rule again). I hope the problem is clear if not I would advise you to run the uncommented lines only on none production /test documents and see what (not) happens.

Jelte de Jong
Did you find this post helpful? Feel free to Like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.

EESignature


Blog: hjalte.nl - github.com

cadman777
Advisor
Advisor

I just manually add the words 'SH ?' after the view label.

Why can't you do that instead of changing the label?
That will solve the update problem.

... Chris
Win 7 Pro 64 bit + IV 2010 Suite
ASUS X79 Deluxe
Intel i7 3820 4.4 O/C
64 Gig ADATA RAM
Nvidia Quadro M5000 8 Gig
3d Connexion Space Navigator
0 Likes

srabournP4VCD
Contributor
Contributor

Unfortunately, it appears that add on is no longer available to purchase in the Autodesk app store. 

0 Likes

cadman777
Advisor
Advisor

OK, thanx.

Can you tell me the name of it and who made it?

I'll search the internet for it.

... Chris
Win 7 Pro 64 bit + IV 2010 Suite
ASUS X79 Deluxe
Intel i7 3820 4.4 O/C
64 Gig ADATA RAM
Nvidia Quadro M5000 8 Gig
3d Connexion Space Navigator
0 Likes

srabournP4VCD
Contributor
Contributor

I wish I could.  I no longer have it available so I do not know the name of it.  Here is a screenshot of what it looked like.  If you do find it, please let me know. 

 

 

0 Likes

srabournP4VCD
Contributor
Contributor

I too need a solution for this.  

0 Likes