Inventor 2009 and Inventor 2009 SP1

Inventor 2009 and Inventor 2009 SP1

SaurabhDeshpande
Explorer Explorer
442 Views
8 Replies
Message 1 of 9

Inventor 2009 and Inventor 2009 SP1

SaurabhDeshpande
Explorer
Explorer
I am using an plugin developed in C# which works fine on Inventor 2009 but gives problem when it is used with SP1. I think the problem is with oView.get_DrawingCurves. Does anyone know if it makes any difference with SP1 on this object.

Thanks in advance
0 Likes
443 Views
8 Replies
Replies (8)
Message 2 of 9

jeff.pek
Community Manager
Community Manager
I vaguely recall some changes in this area in that timeframe.
Can you be more specific about what differences you're seeing?

Are you seeing differences only in C#? Or can you also see those differences when using VBA?

Thanks,
Jeff
0 Likes
Message 3 of 9

Anonymous
Not applicable
Hi I am using same addin-Its not working on SP1,Drawing dimensions are not displaying,dimensions are coming from drawing curves and we saw that we are now getting different curves?How it is possible?
Sorry we can not test that on VB environment
This means that we have to rework on code which is not good Edited by: mani_shankar on May 5, 2009 4:31 PM
0 Likes
Message 4 of 9

SaurabhDeshpande
Explorer
Explorer
I tried the code in VBA and its giving the same result for Inventor 2009 SP1. I am attaching an image where in the object oView.DrawingCurves returns the curves in green. Thats only side of section view. But I need the curves of the other side of the section line.

But in inventor 2009 without SP1 it works fine. Is there any solution to this? We need the addin to work on Inventor 2009 with SP1.
0 Likes
Message 5 of 9

jeff.pek
Community Manager
Community Manager
Hi -

You're talking about "reworking your code". What does that mean?

The changes I recall is that the GetDrawingCurves code will now find more curves -- which is good. It was a defect that it wasn't finding those curves previously.

Can you describe more the situation you have, maybe with pictures?

Jeff
0 Likes
Message 6 of 9

jeff.pek
Community Manager
Community Manager
Hmm. So you're asking for the curves for what -- the whole part?
It's good that this isn't a language issue -- and it sure sounds like the area that I remember being modified in SP1.

Perhaps one of our testing or development folks can chime in.
BTW -- can you post the model and the script you're using?

Thanks,
Jeff
0 Likes
Message 7 of 9

SaurabhDeshpande
Explorer
Explorer
Basically I am interested in curves of angled section line.
I am adding a file with model. the script used is

Sub try()

Dim oDoc As DrawingDocument
Set oDoc = ThisApplication.ActiveDocument
Dim oSheet As Inventor.Sheet
Set oSheet = oDoc.ActiveSheet

'Get the Section View - Assumes to indexed to 3
Dim oView As DrawingView
Set oView = oSheet.DrawingViews(2)

Dim oTG As TransientGeometry
Set oTG = ThisApplication.TransientGeometry
Dim i As Integer
Dim c As Integer
Dim oDrawViewCurves As DrawingCurvesEnumerator

Dim oRefPartDoc As PartDocument
Set oRefPartDoc = oView.ReferencedDocumentDescriptor.ReferencedDocument
Dim oPartDocDef As PartComponentDefinition
Set oPartDocDef = oRefPartDoc.ComponentDefinition

Dim modelobj As Variant

Set modelobj = oPartDocDef.Features.ReferenceFeatures.Item(1)

Dim aoDrawCurves(1 To 21) As DrawingCurve
Set oDrawViewCurves = oView.DrawingCurves(modelobj)

For i = 1 To oDrawViewCurves.Count
oDoc.SelectSet.Select oDrawViewCurves.Item(i).Segments(1)
Next

End Sub
0 Likes
Message 8 of 9

Anonymous
Not applicable

We did make some changes in SP1 to improve this
area, but seems like there are more remaining issues. I've filed a high
priority change request to address this. Thanks for reporting.

 

The only option I can think of is to get all
drawing curves (don't provide any input to DrawingView.DrawingCurves) and then
somehow filter out the curves you don't care about.

 

Sanjay-
0 Likes
Message 9 of 9

SaurabhDeshpande
Explorer
Explorer
Thanks Sanjay for the reply.

We are in urgent requirement of this addin. Can you give an rough time estimate of the avalability of a hotfix for this problem.

Thanks
0 Likes