Help with IManagedDrawingViewExtensions (drawing work point proxy)

Help with IManagedDrawingViewExtensions (drawing work point proxy)

Tom_Servo
Advocate Advocate
411 Views
4 Replies
Message 1 of 5

Help with IManagedDrawingViewExtensions (drawing work point proxy)

Tom_Servo
Advocate
Advocate

@JelteDeJong 

I have been using Jelte De Jong IManagedDrawingViewExtensions and it's been working great.

http://hjalte.nl/25-extend-ilogic-add-function-getproxyintent

 

I need help making it work with work point proxy. 

 

I can create dimensions easily with curves but I want to be able to use work points from assembly components. 

I'm open to other methods but using the nifty attributes has been working well, but when the attribute is assigned to a WorkPointProxy I can't get it to work for some reason. 




 

0 Likes
Accepted solutions (1)
412 Views
4 Replies
Replies (4)
Message 2 of 5

JelteDeJong
Mentor
Mentor
Accepted solution

I think it will not be possible to do what you want with the code from my blog. That code is depending on the function:

Dim curves = view.DrawingCurves(obj)

Wich will give back the curves for the dimensions. But that function only takes Edge, Face, PartFeature, Sketch, SketchEntity, Sketch3D, SketchEntity3D, ComponentOccurrence, or the proxies to any of these as input. Not "work points". Therefore it will not work.

Jelte de Jong
Did you find this post helpful? Feel free to Like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.

EESignature


Blog: hjalte.nl - github.com

0 Likes
Message 3 of 5

Tom_Servo
Advocate
Advocate
sounds good.
Thanks for getting back to me.

One more question.

Using your code, should I be able to specify the dimension type?

Dim dimTypeEnum As DimensionTypeEnum
dimTypeEnum = 60163
0 Likes
Message 4 of 5

JelteDeJong
Mentor
Mentor

You can add types as extra arguments to the AddLinear method. have a look at line 3 in this example. (Also have a look at all other options in the help file.)

ThisDrawing.BeginManage()
If True Then 
	Dim linDim3 = genDims.AddLinear("Dimension 1", VIEW1.SheetPoint(0.5, 1.5), intent1, intent2, DimensionTypeEnum.kAlignedDimensionType)
End If
ThisDrawing.EndManage()

 

Jelte de Jong
Did you find this post helpful? Feel free to Like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.

EESignature


Blog: hjalte.nl - github.com

0 Likes
Message 5 of 5

Tom_Servo
Advocate
Advocate

I tried both the horizontal and the vertical but nothing I did would change my dimension from horizontal to vertical.
What found out was that, when I changed the attribute reference from an occurrence to an edge it worked.

 

Tom_Servo_1-1671460207358.png

 

 

 

Lesson learned:
Don't use Component Occurrence Proxy.

Thank you for all of your help.
I truly appreciate you taking the time to help me.

 

0 Likes