.NET

Reply
New Member
gendou
Posts: 2
Registered: ‎10-13-2006
Message 1 of 4 (177 Views)

DrawJig Problem

177 Views, 3 Replies
10-13-2006 08:52 PM
i used DrawJig Sample in AutoCAD 2006 ,it is corrent.
but i used it in 2007, it can't display .

Why?
*Norman Yuan
Message 2 of 4 (177 Views)

Re: DrawJig Problem

10-14-2006 08:54 AM in reply to: gendou
Because of the incompatibility of Acad2007 and Acad2006. That is, the two
versions is not compatible in the regard of Jig. Namely, it is the class
"JigPromptOptions"

In Acad2006, it is sealed class (you can instantiate it, but not inherit
from it to create your own JibPromptOptions class). In Acad2007, it becomes
an abstract class and you must inherit from it, and AutoCAD2007 derives 5
new class from it: JigPromptAngleOptions, JibPromptDistanceOptions,
JibPromptGeometryOptions, JigPromptPointOptions and JobPromptStringOptions.

Since you used JobPromptOptions in 2006 app, which no longer
instantiate-able in Acad2007, hence, it won't run in Acad2007. You need to
re-code you Jig to use one of the JibPromptXXXXOption class.

In general, it is recommended to re-compile your ObjectARX NET API app
against Acad2007's acdbmgd.dll and acmgd.dll when move from Acad(2004-2006)
to Acad2007, in order to catch something incompatible such as this Jig
problem.

wrote in message news:5361790@discussion.autodesk.com...
i used DrawJig Sample in AutoCAD 2006 ,it is corrent.
but i used it in 2007, it can't display .

Why?
New Member
gendou
Posts: 2
Registered: ‎10-13-2006
Message 3 of 4 (177 Views)

Re: DrawJig Problem

10-15-2006 08:29 PM in reply to: gendou
Thank you !!

But i find some error, maybe it is my failure
if i want to drag some entity use Editor.Drag();
this Entity will be blank!!
i can't find it anyway
Distinguished Contributor
cgay
Posts: 125
Registered: ‎08-02-2005
Message 4 of 4 (177 Views)

Re: DrawJig Problem

10-16-2006 10:09 AM in reply to: gendou
It is also recommended to use the samples specific to the version of AutoCAD you are using. See here......
http://usa.autodesk.com/adsk/servlet/item?siteID=123112&id=773180

You are not logged in.

Log into access your profile, ask and answer questions, share ideas and more. Haven't signed up yet? Register

Announcements
Are you familiar with the Autodesk Expert Elites? The Expert Elite program is made up of customers that help other customers by sharing knowledge and exemplifying an engaging style of collaboration. To learn more, please visit our Expert Elite website.

Need installation help?

Start with some of our most frequented solutions to get help installing your software.

Ask the Community