virtual Acad::ErrorStatus YourEntity::getGripPoints(AcGePoint3dArray&
gripPoints, AcDbIntArray& osnapModes, AcDbIntArray& geomIds) const;
getStretchPoints function that is called when the entity is stretched calls
gets stretch points by calling getGripPoints(..)
If you need stretch to behave differently, you can override default
implementation of getStretchPoints by defining your own:
virtual Acad::ErrorStatus YourEntity::getStretchPoints(AcGePoint3dArray&
stretchPoints) const;
All these details are in ObjectARX documentation.
--
Alex Januszkiewicz
IntelCAD Systems / DWG Data Recovery Services
Autodesk Authorized Developer
http://www.intelcad.com
* BLITZ! - Standalone Tools For Processing DWG/DXF *
* DWF => DWG converter for AutoCAD 2000(i)*
--
"jetskee" <jet...@hotmail.com> wrote in message
news:f0593...@WebX.maYIadrTaRb...
I want to create my own custom object in AutoCad using ObjectARX. I also
want to be able to control how the object is stretched when the user clicks
on it and tries to stretch it. Can someone point me in the right direction.
I am able to create my own object using AcDbObject. How do I trap the strech
function?
Note also that unless you implement moveGripPointsAt() to handle the different
grips the default implementation will just move the object.
jetskee wrote:
>
> I tried that and my methods are not called when I click on the object and drag
> it.
--
|
----+----------------------------------------------
| Byron Blattel
| CADwerx---Applications for AutoCAD
| Autodesk Registered Developer
| email: by...@cadwerx.net
| web site: http://www.cadwerx.net
|
Hope this helps,
Mike
jetskee <jet...@hotmail.com> wrote in message
news:f059...@WebX.maYIadrTaRb...
> Does this code look ok?
>
jetskee <jet...@hotmail.com> wrote in message
news:f059...@WebX.maYIadrTaRb...
> I made the change but it still is not executed when I grab and stretch the
object
>
What you must do is override the necessary AcDbEntity methods, and post the
RectWindow object to the database.
You need to read about and override worldDraw() in your RectWindow class;
this is probably what you'll use to display the RectWindow on the screen.
The Developer's guide covers this in the sections about deriving custom
ObjectARX objects, and deriving from AcDbObject and AcDbEntity.
Additionally, some of the code samples (look at polysamp) included with the
ObjectARX SDK may help.
Mike
jetskee <jet...@hotmail.com> wrote in message
news:f059...@WebX.maYIadrTaRb...
> That is correct. I have code to display a message box in the getGripPoints
method. Also I have run it in debug mode with a breakpoint in the method and
the debugger never stops at that line. I seem to be following all the
directions in the Online manual but it just doesn't want to work.
>