Autodesk Inventor
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic to the Top
- Bookmark
- Subscribe
- Printer Friendly Page
Ilogic - Make drawing view shaded.
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
Is there a line of code that will look at a drawing view and turn shading on?
I have tried
ActiveSheet.View("VIEW1").View.Shaded = True
but it didn't work ![]()
Inventor 2013 Certified Professional
Autodesk Inventor Professional 2011
Windows 7 Enterprise, 64-bit
Solved! Go to Solution.
Re: Ilogic - Make drawing view shaded.
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
There was an older post here: http://forums.autodesk.com/t5/Autodesk-Inventor-Cu
Hope that helps you.
Rob.
Software in use: Inventor 2013, SolidWorks 2011
Also experience with: Solid Edge untill ST4,
Re: Ilogic - Make drawing view shaded.
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
Thanks but the post seems to be refering to the Display Style in the modelling environment, whereas I want to change the style of a drawing view.
Inventor 2013 Certified Professional
Autodesk Inventor Professional 2011
Windows 7 Enterprise, 64-bit
Re: Ilogic - Make drawing view shaded.
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
This is from VBA, experiment with it to make it work in iLogic.
DrawingView.ViewStyle = kShadedDrawingViewStyle
I'm not sure how familiar you are with coding in iLogic, but post back if you need more help.
Re: Ilogic - Make drawing view shaded.
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
This iLogic code works for a drawing and changes all views in the selected sheet.
Dim oDrawDoc As DrawingDocument
oDrawDoc = ThisApplication.ActiveDocument
Dim oSheet As Sheet
oSheet = oDrawDoc.ActiveSheet
' select drawing views on active sheet
Dim oDrawView As DrawingView
For Each oDrawView In oSheet.DrawingViews
'adjust drawing view style
oDrawView.ViewStyle = DrawingViewStyleEnum.kShadedHiddenLineDrawingViewStyle
'OPTIONS TO CHOOSE FROM
' kHiddenLineDrawingViewStyle = 32257
' kHiddenLineRemovedDrawingViewStyle = 32258
' kShadedDrawingViewStyle = 32259
' kShadedHiddenLineDrawingViewStyle = 32261
' kFromBaseDrawingViewStyle = 32260
Next
Software in use: Inventor 2013, SolidWorks 2011
Also experience with: Solid Edge untill ST4,
Re: Ilogic - Make drawing view shaded.
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
Thanks Mike,
I have been having a play around but haven't had any luck yet. i though the following may work but Inventor can not recognise 'View Style':
ActiveSheet.View("VIEW1").ViewStyle=kshadedDrawing
I get the folliwng error:
Rule Compile Errors in Rule0, in 09090G00105414.idw
Error on Line 1 : 'ViewStyle' is not a member of 'Autodesk.iLogic.Interfaces.ICadDrawingView'.
Inventor 2013 Certified Professional
Autodesk Inventor Professional 2011
Windows 7 Enterprise, 64-bit
Re: Ilogic - Make drawing view shaded.
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
Thanks VdVeek
Inventor 2013 Certified Professional
Autodesk Inventor Professional 2011
Windows 7 Enterprise, 64-bit

