iLogic to change the view representation in a part file
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi all,
so Far this is what i capture online,
oApp = ThisApplicationMsgBox("hahahah")If oApp.ActiveDocument.DocumentType = kdrawingDocumentObject ThenDim odrawdoc As DrawingDocumentodrawdoc = ThisApplication.ActiveDocumentFor Each oActivesheetViewrep In odrawdoc.Sheets.Item(1).DrawingViews.Item(1).ActiveDesignViewRepresentationIf oActivesheetViewrep.Name = "Master" ThenoActivesheetViewrep.ActivateOn Error Resume NextElseEnd IfNextElseMsgBox("Assembly Document Is Not Open")End If
It works well on assembly drawing and part ipt
but what i need is simple ... or not
The scrip would be as per below :
when 2D drafter on DWG chose the view to be draw
the reprensentation will not be "master" by default but set up to a condition
for exemple is the iproperty custom category type = details
then representation view will be detail and not master,
hope i'm really clear ^^
please help