Autodesk University Online

Register | Sign In
Bookmark and Share Back to Class Listing

The Power of ObjectARX®

3 Questions 4 Answers Ask the Speaker a Question
  • Event Year: Autodesk University 2008
  • Class ID: CP311-5
  •  
  • Primary Speaker: Fernando Malard
  •  
  • Class Information
  •  
  • Primary Track: Customization and Programming
  • Primary Software: ObjectARX
  •  

Class Audience

CAD managers, CAD software developers

Class Description

This session for advanced AutoCAD® users and developers will present a simple and complete introduction on creating and using custom entities with the fantastic ObjectARX programming environment. The session will begin by presenting some basic concepts about ObjectARX programming. Attendees will learn how to create basic ObjectARX applications using an ARX Wizard. Next, the class will explore how the AutoCAD database works, organizes and uses its objects. The session will end with custom object concepts, code examples, and a great step-by-step example.

Class Highlights


  • Introduction to ObjectARX

  • AutoCAD database concepts

  • ObjectARX/DBX applications overview

  • Basic custom entity features

  • Advanced custom entity features

View all 3 questions Questions & Answers

  • Reply Li Haiying asked...
    How do I custom paper size for printer? I like to use C++ or C# or Vlisp, but not vb.net .Thank you! 07-26-2009 10:02AM

  • Reply Fernando Malard replied...
    Hello Li, I have a VBA code sample which demonstrate how to access the CanonicalMedia: Public Sub MediaNames() Dim myLayout As AcadLayout Set myLayout = ThisDrawing.ActiveLayout myLayout.ConfigName = "HP500C" myLayout.RefreshPlotDeviceInfo Dim pgNames As Variant Dim pgName As String pgNames = myLayout.GetCanonicalMediaNames For I = LBound(pgNames) To UBound(pgNames) pgName = myLayout.GetLocaleMediaName(pgNames(I)) If pgName = "A4" Then myLayout.CanonicalMediaName = pgNames(I) End If Next I End Sub I have never tried to add a custom paper size but it seems you can select one during the plot. There is also a very good article of my friend Kean Walmsley at the following link: http://through-the-interface.typepad.com/through_the_interface/2007/09/driving-a-basic.html See if that help you. Best regards, Fernando Malard. 07-26-2009 8:20PM

  • Delete Reply Fernando Malard replied...
    Li, sorry about the text format, the messages here are sequential plain texts... :( 07-26-2009 8:21PM

  • Reply Jack McGee asked...
    Are ther any major differences or problems you know of in using Autocad 2009 API and Autocad 2009 Mechanical API with .Net ? 07-23-2009 10:03AM

  • Reply Fernando Malard replied...
    Hello Jack, No problems at all. The only limitation of .NET is in regards to custom entities. It does not support Custom Entities. In 2010 release, there is a new API called Entity Overrule which allows you to "overrule" the behavior of native entities. It is pretty much like a "lite" custom entity solution. Hope this help you. Regards, Fernando Malard. 07-23-2009 3:03PM

  • Reply Safet Ademovic asked...
    Do you have any script of beginer of objectARX for me. 04-06-2009 4:35PM

  • Reply Fernando Malard replied...
    Hello Safet,

    Sorry, the only resources I have is this course and my Blog (http://arxdummies.blogspot.com). Also consider the .NET programming interface which is very powerful in 2010. Check Kean's Blog at (http://through-the-interface.typepad.com).

    Best regards,
    Fernando.
    04-06-2009 7:43PM