Message 1 of 4
Simply assign Start/Endpoint of a Line Entity

Not applicable
11-29-2001
08:34 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello there,
Im an ARX beginner (Charles McAuley : Programming Autocad 2000 / Chapter 3).
For exercise I translate my old ADS-Applications into ARX.
I have the Problem to get the position Informations (DXF Code 10 and 11)
of a Line Entitiy without resultbuffers.
I think the answer is simple but i dont get it.
ads_point pt;
ads_name en;
acedEntSel("\nSelect an Line Entity: ",en,pt); // ! Snip Error checking ONLY
LINES !
AcGePoint3d StartingLine; // for getting the startpoint of the Line
AcGePoint3d EndingLine; // for getting the endpoint of the Line
AcDbObjectId objId; // def Object Id
acdbGetObjectId(objId,en); // get Objext Id
AcDbObject *pObj; // Pointer of type AcDbObject
acdbOpenObject(pObj, objId, AcDb ::kForRead);
???????? HOW CAN I assign
the points: StartingLine and Endingline now
??????????
pObj->Close
Thank you for helping a newbie
Dennis
Im an ARX beginner (Charles McAuley : Programming Autocad 2000 / Chapter 3).
For exercise I translate my old ADS-Applications into ARX.
I have the Problem to get the position Informations (DXF Code 10 and 11)
of a Line Entitiy without resultbuffers.
I think the answer is simple but i dont get it.
ads_point pt;
ads_name en;
acedEntSel("\nSelect an Line Entity: ",en,pt); // ! Snip Error checking ONLY
LINES !
AcGePoint3d StartingLine; // for getting the startpoint of the Line
AcGePoint3d EndingLine; // for getting the endpoint of the Line
AcDbObjectId objId; // def Object Id
acdbGetObjectId(objId,en); // get Objext Id
AcDbObject *pObj; // Pointer of type AcDbObject
acdbOpenObject(pObj, objId, AcDb ::kForRead);
???????? HOW CAN I assign
the points: StartingLine and Endingline now
??????????
pObj->Close
Thank you for helping a newbie
Dennis