ObjectARX
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Proxy entity geometry?

4 REPLIES 4
Reply
Message 1 of 5
Anonymous
824 Views, 4 Replies

Proxy entity geometry?

I need to get the geometric data of the ACAD_PROXY_ENTITY for exporting purposes (of course without the presence of the proxy parent application). Is there any ObjectARX or ads api to get such information?
4 REPLIES 4
Message 2 of 5
Anonymous
in reply to: Anonymous

In ARX you can get an AcDbProxyEntity
There you have the member getGeomExtens, and you can explode it (if it is
allowed)

getGeomExtents:
This function fills in extents with the approximate extents of the proxy. If
the proxy has graphics saved, then these are used to calculate the extents.
If only a bounding box is available, then the extents are those of the
bounding box.

explode:
This function creates copies of all the graphics metafile primitives stored
in the proxy and append the pointers to these new entity objects to the
entitySet array.
Returns Acad::eOk if successful, otherwise returns
Acad::eCannotExplodeEntity.




wrote in message news:4819995@discussion.autodesk.com...
>I need to get the geometric data of the ACAD_PROXY_ENTITY for exporting
>purposes (of course without the presence of the proxy parent application).
>Is there any ObjectARX or ads api to get such information?
Message 3 of 5
Anonymous
in reply to: Anonymous

It is possible, see the solution in:

[Arx path]\samples\database\ARXDBG\Inc\ArxDbgWorldDraw.h
[Arx path]\samples\database\ARXDBG\Tests\ArxDbgWorldDraw.cpp

[Arx path]\samples\database\ARXDBG\Inc\ArxDbgViewportDraw.h
[Arx path]\samples\database\ARXDBG\Tests\ArxDbgViewportDraw.cpp

Regards,

Hokus

wrote in message news:4819995@discussion.autodesk.com...
>I need to get the geometric data of the ACAD_PROXY_ENTITY for exporting
>purposes (of course without the presence of the proxy parent application).
>Is there any ObjectARX or ads api to get such information?
Message 4 of 5
Anonymous
in reply to: Anonymous

thanks a lot!
I hope exploding you mentioned will not change the object (drawing) itself.
Message 5 of 5
Anonymous
in reply to: Anonymous

Thank you

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Technology Administrators