Message 1 of 4
use of AcEdJig with blocks
Not applicable
10-03-2002
05:30 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi all!
I want to implement a similar functionality to the Insert>Block function
in ACAD and therefor I want to use the AcEdJig class to get a
preview of the block going to be inserted. The user only has to select
a insertion position. I used the "elipsjig" Sample from the sdk and
modified the code for my special preferences.
The Problem is, that no preivew is drawn.
There is a small code snip:
void MyJig::doIt()
{
mPromptCounter = 0;
setDispPrompt("\nInsertion Point?: ");
AcEdJig::DragStatus stat = drag();
append();
}
AcEdJig::DragStatus MyJig::sampler()
{
DragStatus stat;
setUserInputControls((UserInputControls)
(AcEdJig::kAccept3dCoordinates
| AcEdJig::kNoNegativeResponseAccepted
| AcEdJig::kNoZeroResponseAccepted));
if (mPromptCounter == 0) {
//
static AcGePoint3d axisPointTemp;
stat = acquirePoint(m_CenterPt);
}
return stat;
}
In the following function the Ellipse was set in the example.
What should I do with my block right in here?
Adesk::Boolean MyJig::update()
{
switch (mPromptCounter) {
case 0:
break;
}
return Adesk::kTrue;
}
Any help would be appreciated.
Thanks, Markus
I want to implement a similar functionality to the Insert>Block function
in ACAD and therefor I want to use the AcEdJig class to get a
preview of the block going to be inserted. The user only has to select
a insertion position. I used the "elipsjig" Sample from the sdk and
modified the code for my special preferences.
The Problem is, that no preivew is drawn.
There is a small code snip:
void MyJig::doIt()
{
mPromptCounter = 0;
setDispPrompt("\nInsertion Point?: ");
AcEdJig::DragStatus stat = drag();
append();
}
AcEdJig::DragStatus MyJig::sampler()
{
DragStatus stat;
setUserInputControls((UserInputControls)
(AcEdJig::kAccept3dCoordinates
| AcEdJig::kNoNegativeResponseAccepted
| AcEdJig::kNoZeroResponseAccepted));
if (mPromptCounter == 0) {
//
static AcGePoint3d axisPointTemp;
stat = acquirePoint(m_CenterPt);
}
return stat;
}
In the following function the Ellipse was set in the example.
What should I do with my block right in here?
Adesk::Boolean MyJig::update()
{
switch (mPromptCounter) {
case 0:
break;
}
return Adesk::kTrue;
}
Any help would be appreciated.
Thanks, Markus