Inventor Customization

Inventor Customization

Reply
Contributor
abhisinghal21
Posts: 21
Registered: ‎02-20-2009
Message 1 of 6 (231 Views)

Create DrawingView -- Reference Data

231 Views, 5 Replies
07-13-2009 10:13 PM
Hi

I am trying to create a new base view in drawingdocument.

I can get hold of the view but cant find a way to set reference data --- would like to set the "Line Style" to "As Parts" and "Hidden Line Calculation" to "All Bodies".

Is there a way / workaround ?

Thanks

Abhishek
Mentor
FarrenYoung
Posts: 264
Registered: ‎07-13-2009
Message 2 of 6 (201 Views)

Re: Create DrawingView -- Reference Data

04-28-2011 03:13 PM in reply to: abhisinghal21

Is this yet possible?

--Farren

************************************************************************************
If this post helps, please click the "thumbs up" to give kudos
If this post answers your question, please click "Accept as Solution"
************************************************************************************
Active Contributor
Robert..F
Posts: 49
Registered: ‎07-09-2012
Message 3 of 6 (154 Views)

Re: Create DrawingView -- Reference Data

08-28-2012 11:46 AM in reply to: FarrenYoung

Has this feature been added, yet?

ADN Support Specialist
Vladimir.Ananyev
Posts: 531
Registered: ‎08-14-2012
Message 4 of 6 (136 Views)

Re: Create DrawingView -- Reference Data

08-31-2012 07:14 AM in reply to: Robert..F

If you have a reference to the DrawingView object then you may solve this problem in four steps.

 Workaround: 

1) Property DrawingView.ReferencedDocumentDescriptor returns the model document referenced by this view.  In your case this should be an assembly document.

2) You may scan assembly hierarchy to find referenced components.

3) Magic property DrawingView.DrawingCurves(referenced ComponentOccurrence) returns DrawingCurvesEnumerator with all drawing curves within the drawing view from this particular component occurrence.

4) If Count >0 then you may change properties of the DrawingCurve objects found to satisfy your requirements (line type, line weight, etc.).  Or change Layer property of all DrawingCurveSegment objects in the collection DrawingCurve.Segments() . 

Should this work for you?


Vladimir Ananyev
Developer Technical Services
Autodesk Developer Network

Active Contributor
Robert..F
Posts: 49
Registered: ‎07-09-2012
Message 5 of 6 (133 Views)

Re: Create DrawingView -- Reference Data

08-31-2012 07:24 AM in reply to: Vladimir.Ananyev

Changing the layer properties will indeed make these lines appear solid rather than the phantom lines, but I believe that hidden line calculation will still need to be set in order for these items to appear properly.  I will try this when I have a free moment and see if this is the case.

ADN Support Specialist
xiaodong.liang
Posts: 1,335
Registered: ‎06-12-2011
Message 6 of 6 (118 Views)

Re: Create DrawingView -- Reference Data

09-05-2012 08:47 PM in reply to: Robert..F

Hi,

 

Good point.

 

DrawingCurveSegment.HiddenLine can returns whether this segment represents the hidden portion of a line

DrawingCurveSegment.Layer can set the layer associated with this segment.

 



Xiaodong Liang
Developer Technical Services
Autodesk Developer Network

Post to the Community

Have questions about Autodesk products? Ask the community.

New Post
Announcements
Do you have 60 seconds to spare? The Autodesk Community Team is revamping our site ranking system and we want your feedback! Please click here to launch the 5 question survey. As always your input is greatly appreciated.