Entity with blue points

Entity with blue points

Anonymous
Not applicable
705 Views
15 Replies
Message 1 of 16

Entity with blue points

Anonymous
Not applicable
Hi,

I Have made a polyline and an extrusion of it. Now I have an Entity. My problem is that this entity does not have any "blue points" (like usually in CAD).

First of all I would like to know if it is possible to insert some (Actually I only want to insert tow "snap/toggle/blue" points and not a point at each corner). Then I would like to retrieve there coordinates.

Is it possible, if yess can someone tell me how?

thanks, Belinea
0 Likes
706 Views
15 Replies
Replies (15)
Message 2 of 16

Anonymous
Not applicable
If the "blue points" are grip points then you need to override AcDbEntity::getGripPoints().
0 Likes
Message 3 of 16

Anonymous
Not applicable
and for operate on them you must override naturally the AcDbEntity::MoveGripPointsAt() function. Have you readed the doks about custom entities ?? There is a lot of info in docs. Regards Rex "fantum" schrieb im Newsbeitrag news:23152611.1106858436536.JavaMail.jive@jiveforum2.autodesk.com... > If the "blue points" are grip points then you need to override AcDbEntity::getGripPoints().
0 Likes
Message 4 of 16

Anonymous
Not applicable
rofl lool @ "blue points"! :)) 😄
0 Likes
Message 5 of 16

Anonymous
Not applicable
If you have a moment, could you please explain what is so hilarious about that - preferably not in your native language?
0 Likes
Message 6 of 16

Anonymous
Not applicable
rex12 schrieb: > and for operate on them you must override naturally the > AcDbEntity::MoveGripPointsAt() function. > > Have you readed the doks about custom entities ?? ... and have you looked at the samples (that's most important for me!)?
0 Likes
Message 7 of 16

Anonymous
Not applicable
fantum you have a good point. Actually I don t find it funny at all. I am a newbie to ObjectARX. The documentation of ObjectARX is prety poor and that is why am looking for oder source of information.

I have no Idea how i can override the MoveGripPointsAt() method in a proper way.

regard

Belinea
0 Likes
Message 8 of 16

Anonymous
Not applicable
The ObjectARX Developer's Guide is actually a pretty good learning tool - especially if you work your way through it writing test code to find the errors. What you need for grip points is at:

ObjectARX Developer's Guide>Deriving from AcDbEntity>Overriding Common Entity Functions>Implementing the Grip Point Functions
0 Likes
Message 9 of 16

Anonymous
Not applicable
Ok, I found that.

I have made a methode in my custom entity:

Acad::ErrorStatus Bauteil::getGripPoints(
AcGePoint3dArray&,
AcDbIntArray&,
AcDbIntArray&)const
{
assertReadEnabled();
Acad::ErrorStatus es;
if ((es = getVertices3d(gripPoints)) != Acad::eOk) {
return es;
}

return es;
}

I got those error messages:

c:\objectarx\inc\imgent.h(75) : error C2146: Syntaxfehler : Fehlendes ';' vor Bezeichner 'classVersion'
c:\objectarx\inc\imgent.h(281) : error C2146: Syntaxfehler : Fehlendes ';' vor Bezeichner 'mVersion'
c:\objectarx\inc\imgent.h(281) : error C2086: 'ClassVersion' : Neudefinition
c:\objectarx\inc\imgent.h(281) : error C2501: 'mVersion' : Fehlende Speicherklasse oder Typbezeichner
c:\objectarx\inc\imgent.h(304) : error C2143: Syntaxfehler : Fehlendes ';' vor 'tag::id'
c:\objectarx\inc\imgent.h(304) : error C2433: 'ClassVersion' : 'inline' bei der Deklaration von Daten nicht zulaessig
c:\objectarx\inc\imgent.h(304) : error C2501: 'ClassVersion' : Fehlende Speicherklasse oder Typbezeichner
c:\objectarx\inc\imgent.h(304) : fatal error C1004: Unerwartetes Dateiende gefunden

it seems like the file imgent.h has some problems (that is the file to include when using getVertices3d). Can someone help me out?

regard Belinea
0 Likes
Message 10 of 16

Anonymous
Not applicable
From wich AutoCAD entity your custom entity is derived? In your first message you have spoken from an extrusion. This will given you an AcDb3DSolid, not an RasterImage. Bernd "Belinea" schrieb im Newsbeitrag news:26558921.1106993442653.JavaMail.jive@jiveforum1.autodesk.com... > Ok, I found that. > > I have made a methode in my custom entity: > > Acad::ErrorStatus Bauteil::getGripPoints( > AcGePoint3dArray&, > AcDbIntArray&, > AcDbIntArray&)const > { > assertReadEnabled(); > Acad::ErrorStatus es; > if ((es = getVertices3d(gripPoints)) != Acad::eOk) { > return es; > } > > return es; > } > > I got those error messages: > > c:\objectarx\inc\imgent.h(75) : error C2146: Syntaxfehler : Fehlendes ';' vor Bezeichner 'classVersion' > c:\objectarx\inc\imgent.h(281) : error C2146: Syntaxfehler : Fehlendes ';' vor Bezeichner 'mVersion' > c:\objectarx\inc\imgent.h(281) : error C2086: 'ClassVersion' : Neudefinition > c:\objectarx\inc\imgent.h(281) : error C2501: 'mVersion' : Fehlende Speicherklasse oder Typbezeichner > c:\objectarx\inc\imgent.h(304) : error C2143: Syntaxfehler : Fehlendes ';' vor 'tag::id' > c:\objectarx\inc\imgent.h(304) : error C2433: 'ClassVersion' : 'inline' bei der Deklaration von Daten nicht zulaessig > c:\objectarx\inc\imgent.h(304) : error C2501: 'ClassVersion' : Fehlende Speicherklasse oder Typbezeichner > c:\objectarx\inc\imgent.h(304) : fatal error C1004: Unerwartetes Dateiende gefunden > > it seems like the file imgent.h has some problems (that is the file to include when using getVertices3d). Can someone help me out? > > regard Belinea
0 Likes
Message 11 of 16

Anonymous
Not applicable
Sorry, could not resist. It seemed so funny at that moment. The funny thing is that you called grip points "blue points". 🙂
Correct question for a person who started programming Acad before becoming a user of Acad. I remember asking the same question few years ago, because, I did not use Acad, I just started programming in ARX.
Imagine a car mechanic (who does not have a driver license) coming to you and asking "what's that stick next to the driver's seat for?"
What's so native about my language?
0 Likes
Message 12 of 16

Anonymous
Not applicable
While I don't speak your language, I would also point out that imgent.h requires imgdef.h and that you haven't named the formal parameters.
0 Likes
Message 13 of 16

Anonymous
Not applicable
> Imagine a car mechanic (who does not have a driver license) coming to you and asking "what's that stick next to the driver's seat for?"

Imagine, instead, a car mechanic coming to you and asking (in slightly broken but understandable English) "What is name of the stick at side of seat for driver?"
0 Likes
Message 14 of 16

Anonymous
Not applicable
Hi, Are you looking to do something like: http://www.streamspace.com/Streamspace%20Solids.htm At the time, using ACIS (now shape manager) for complex geometry was rather time consuming, so I'm not sure it's a good idea. There was a discussion about memory loss using these operations. If that's the case, you'll run out of memory during dragging. Regards, Henrik Vallgren "Belinea" wrote in message news:26332891.1106848650618.JavaMail.jive@jiveforum1.autodesk.com... > Hi, > > I Have made a polyline and an extrusion of it. Now I have an Entity. My problem is that this entity does not have any "blue points" (like usually in CAD). > > First of all I would like to know if it is possible to insert some (Actually I only want to insert tow "snap/toggle/blue" points and not a point at each corner). Then I would like to retrieve there coordinates. > > Is it possible, if yess can someone tell me how? > > thanks, Belinea
0 Likes
Message 15 of 16

Anonymous
Not applicable
>Imagine, instead, a car mechanic coming to you and asking (in slightly broken but understandable English) "What is name of the stick at side of seat for driver?"

Would not you smile at least then ? 🙂
0 Likes
Message 16 of 16

Anonymous
Not applicable
> Would not you smile at least then ? 🙂

I would probably smile in a friendly manner at having met a new person and having been able to help them. I seriously doubt that I would "rofl" or otherwise attempt to humiliate the person.
0 Likes