Section View - inlcude slice and slice the whole part

Section View - inlcude slice and slice the whole part

johnster100
Collaborator Collaborator
592 Views
1 Reply
Message 1 of 2

Section View - inlcude slice and slice the whole part

johnster100
Collaborator
Collaborator

Hi,

I'm creating a drawing section view of a part file using the API. I would like to check the 'Include Slice' and 'Slice the Whole Part' options (shown in the menu below) suing the API. I can't find a property to do this.

 

section-options.PNG

 

Could someone help please?

 

thanks,

John

 

 

0 Likes
Accepted solutions (1)
593 Views
1 Reply
Reply (1)
Message 2 of 2

Sergio.D.Suárez
Mentor
Mentor
Accepted solution

 

Hi, if you have for example two views, one is the base view, and the second the section view, you should access the property through

 

'Ilogic Code
Dim
oDoc As DrawingDocument oDoc = ThisDoc.Document Dim oSectionView As SectionDrawingView oSectionView = oDoc.ActiveSheet.DrawingViews.Item(2) oSectionView.IncludeSlice = True

 

   'VBA Code
Dim oDoc As DrawingDocument Set oDoc = ThisApplication.ActiveDocument Dim oSectionView As SectionDrawingView Set oSectionView = oDoc.ActiveSheet.DrawingViews(2)
oSectionView.IncludeSlice = True

 

 

I hope it helps you solve your problem


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

0 Likes