.NET
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Draw with ObjectARX and C#

5 REPLIES 5
SOLVED
Reply
Message 1 of 6
chikito1990
3728 Views, 5 Replies

Draw with ObjectARX and C#

Hi al,

 

I have a task to draw a picture(attached in the post) using ObjectARX but the picture is complicated(too many things to take into considerations) and I have no idea how accomplish the task. I will really appreciate if you give me some guidelines so I can see what is the best option. I have to use ObjectARX SDK and C# to do it. 

 

Thank you in advance!

 

Best regards,

Dimitar Georgiev

5 REPLIES 5
Message 2 of 6
Hallex
in reply to: chikito1990

Here you go:

http://www.codeproject.com/Articles/10724/Samples-for-DOTNETARX-a-tool-for-AutoCAD-NET-progr

me think it's enough do make your homework

Cheers 🙂

_____________________________________
C6309D9E0751D165D0934D0621DFF27919
Message 3 of 6
chikito1990
in reply to: Hallex

HI Hallex,

 

All is really cool but I have some trouble inserting the elements on the picture. I attached a picture with exeption i am getting and i have no idea why i do get it?

Message 4 of 6
Hallex
in reply to: chikito1990

Post this code block as .txt file,
or just paste directly in this topic,
coz could not test it from your picture,
_____________________________________
C6309D9E0751D165D0934D0621DFF27919
Message 5 of 6
chikito1990
in reply to: Hallex

I just trying to make the cylinder in the middle:

 

[CommandMethod("PM_Cable")]
        public void CableExporting()
        {
            Point3d ellipseMajorAxis = new Point3d(0.0, 1500.0, 0.0);
            Double ellipseRadiusRatio = 0.4;

            Point3d ellipseLeftCenter = new Point3d(72541.7, 80198.5, 0.0);
            Point3d ellipseRightCenter = new Point3d(77145.7, 80173.6, 0.0);

            Point3d ellipseTopStart = new Point3d(77154.7, 81673.6, 0.0);
            Point3d ellipseTopEnd = new Point3d(72541.7, 81698.5, 0.0);

            Point3d ellipseBottumStart = new Point3d(77154.7, 78673.6, 0.0);
            Point3d ellipseBottumEnd = new Point3d(72578.5, 78701.8, 0.0);

            Ellipses ellipseLeft = new Ellipses(ellipseLeftCenter, ellipseMajorAxis, ellipseRadiusRatio);
            Ellipses ellipseRight = new Ellipses(ellipseRightCenter, ellipseMajorAxis, ellipseRadiusRatio);

            Lines ellipseTop = new Lines(ellipseTopStart, ellipseTopEnd);
            Lines ellipseButtom = new Lines(ellipseBottumStart, ellipseBottumEnd);

            Tools.AddEntities(new Entity[] { ellipseLeft, ellipseRight, ellipseTop, ellipseButtom });
        }

 Thank you for spending your time with my question

Tags (3)
Message 6 of 6
chikito1990
in reply to: Hallex

Also i am getting this warnings. But as you see from the other picture the .DLL is there.

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

Post to forums  

Autodesk DevCon in Munich May 28-29th


Autodesk Design & Make Report

”Boost