create dimension to workaxis in drawing (.idw)

create dimension to workaxis in drawing (.idw)

Anonymous
Not applicable
561 Views
3 Replies
Message 1 of 4

create dimension to workaxis in drawing (.idw)

Anonymous
Not applicable

Hi,

I would like to add a dimension between a drawingcurve and a workaxis which is included from the 3d model.

 

I include the axis like this;

DrawingView.SetIncludeStatus(oDModel.rotationAxis, true);

 

I try to find the DrawingCurve related to this Axis in the drawingview, but some how it doens't work;

                foreach (DrawingCurve oCurve in baseDrawingView. DrawingCurves)
                {
                    if (oCurve.ModelGeometry == oDModel.rotationAxis)
                    {

                           ....

Similar code works for "real" model edges, but it seams that a workaxis requires a different approach.

Any suggestions anybody?

 

thanks

0 Likes
Accepted solutions (1)
562 Views
3 Replies
Replies (3)
Message 2 of 4

Anonymous
Not applicable

Hi,

 

Did you try with proxy object of your axis?

 

Regards,

 

Nedeljko

0 Likes
Message 3 of 4

Anonymous
Not applicable
Accepted solution

Hi,

 

In attachment you will find test program in VBA for centerline quest. You can find that your centerline is in Thisapplication.ActiveDocument.ActiveSheet.Centerlines(1). In my example there is only one centerline and because of that is ... Centerlines(1).

 

I hope it will help.

 

Regards,

 

Nedeljko.

 

0 Likes
Message 4 of 4

Anonymous
Not applicable

That's it, thanks.

0 Likes