Community
Inventor Programming - iLogic, Macros, AddIns & Apprentice
Inventor iLogic, Macros, AddIns & Apprentice Forum. Share your knowledge, ask questions, and explore popular Inventor topics related to programming, creating add-ins, macros, working with the API or creating iLogic tools.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

create dimension to workaxis in drawing (.idw)

3 REPLIES 3
SOLVED
Reply
Message 1 of 4
MTHulli
383 Views, 3 Replies

create dimension to workaxis in drawing (.idw)

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

3 REPLIES 3
Message 2 of 4
16101972
in reply to: MTHulli

Hi,

 

Did you try with proxy object of your axis?

 

Regards,

 

Nedeljko

Message 3 of 4
16101972
in reply to: MTHulli

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.

 

Message 4 of 4
MTHulli
in reply to: 16101972

That's it, thanks.

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report