Community
Inventor Programming - iLogic, Macros, AddIns & Apprentice
Inventor iLogic, Macros, AddIns & Apprentice Forum. Share your knowledge, ask questions, and explore popular Inventor topics related to programming, creating add-ins, macros, working with the API or creating iLogic tools.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Check Drawing View Type with iLogic

0 REPLIES 0
Reply
Message 1 of 1
bretrick30
563 Views, 0 Replies

Check Drawing View Type with iLogic

I am trying to create a rule that will loop through all the sheets and the drawing views on those sheets then if the view is not a standard view I want it to do something.  I cant seem to get the code right for accessign the View Type.  Here is what I have that is not working...

 

oSheets = ThisDoc.Document.Sheets

 

Dim oViewType As DrawingViewTypeEnum =  oSheets.Item(SheetNumber).DrawingViews.Item(ViewNumber).ViewType

 

If oViewType <> kStandardDrawingViewType Then

           

more code here...

 

End If

 

Also, is there a way to change the Format of Text for the Section and Detail view call out on the parent view using ilogic?  So instead of just showing the View Name, add some more text to it.

 

Thanks,

  

0 REPLIES 0

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report