|
|
Class Handout |
|
|
CP311-5 |
|
|
Exercise2 |
|
|
AuCards |
|
|
Download Screencast |
|
|
The Power of ObjectARX® |
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