Convert AcGePoint3d to ads_point and vice versa

By Gopinath Taget

There is a function named ‘asDblArray()’ that casts AcGePoint3d to ads_point wherever it is necessary.

The following sample code demonstrates this:

#include "geassign.h"

AcGePoint3d pt;

acedGetPoint (NULL, L"Get a point: ",asDblArray (pt)) ;

If you want to convert from ads_point to AcGePoint3d, use its complimenting function, ‘asPnt3d()’.


Comments

Leave a Reply

Discover more from Autodesk Developer Blog

Subscribe now to keep reading and get access to the full archive.

Continue reading