Subspress Label of section View with iLogic

Subspress Label of section View with iLogic

j_weber
Mentor Mentor
655 Views
3 Replies
Message 1 of 4

Subspress Label of section View with iLogic

j_weber
Mentor
Mentor

Hallo everybody, 

 

often I have only one section view in a drawing. 

In this situation the DIN-Standard says that the section line and the label of the section view is not needed. 

I found a code to switch the layer of the section line off. 

But I didn't found something to subspress only the label off. 

Is it possible to do this with iLogic. ? 




Jörg Weber
CAD Systemtechniker für AutoCAD, Inventor, Vault





0 Likes
Accepted solutions (1)
656 Views
3 Replies
Replies (3)
Message 2 of 4

WCrihfield
Mentor
Mentor
Accepted solution

Try this:

Dim oSheet As Inventor.Sheet = ThisDrawing.Document.ActiveSheet
Dim oSView As SectionDrawingView
For Each oView As DrawingView In oSheet.DrawingViews
	If oView.ViewType = DrawingViewTypeEnum.kSectionDrawingViewType Then
		oSView = oView
		Exit For
	End If
Next
oSView.ShowLabel = False
'oSView.Label.Layer.Visible = False

Wesley Crihfield

EESignature

(Not an Autodesk Employee)

0 Likes
Message 3 of 4

j_weber
Mentor
Mentor

Great, 

it works perfect. 

 

Thanks a lot. It saves me a lot of steps that I usually must do. 




Jörg Weber
CAD Systemtechniker für AutoCAD, Inventor, Vault





0 Likes
Message 4 of 4

j_weber
Mentor
Mentor

Sorry, 

i forget to accept the answer. 




Jörg Weber
CAD Systemtechniker für AutoCAD, Inventor, Vault