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

DrawJig Problem

3 REPLIES 3
Reply
Message 1 of 4
gendou
406 Views, 3 Replies

DrawJig Problem

i used DrawJig Sample in AutoCAD 2006 ,it is corrent.
but i used it in 2007, it can't display .

Why?
3 REPLIES 3
Message 2 of 4
Anonymous
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?
Message 3 of 4
gendou
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
Message 4 of 4
cgay
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

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