iLogic to change the view representation in a part file

iLogic to change the view representation in a part file

sebastien008
Contributor Contributor
666 Views
3 Replies
Message 1 of 4

iLogic to change the view representation in a part file

sebastien008
Contributor
Contributor

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

 

0 Likes
667 Views
3 Replies
Replies (3)
Message 2 of 4

VdVeek
Advocate
Advocate

sebastien008, if i understand you correct.

By default when placing a view on a drawing the view that was last active in the part shows up as drawing view. So isn't it posible to set the appropriate view representation in the part before closing it. Then when creating a drawing of that part, you know which view is set as default. Or are you trying to automate the creatition of drawings?

Rob.

Autodesk Inventor 2015 Certified Professional & Autodesk Inventor 2012 Certified Professional.
0 Likes
Message 3 of 4

sebastien008
Contributor
Contributor
Hi rob , first thx as you are the first you reply to my question 😉
My concerne is more complexe since i use LOD as layout to avoid shoing all the detail to customer but when i detail i used detail 😉 for fabrication drawing 😉

Sent from my iPhone
Message 4 of 4

sebastien008
Contributor
Contributor

Pleasee see attached below my issues,

 

in Level of detail in my Layout i'm forced due to the weight of our equipment to creat a Level of detail ( LAYOUT) which is less detail no brand .... 

But when i'm focus on the detail drawing dwg .... I would like the drawing to catch the Iproperty CATEGORY TYPE created as DETAIL since 3D drafter already know that he will need a detail drawing .

And if it's in category type DETAILS then LOD should automaticly choose DETAIL

 

Hope my screenshot will help

0 Likes