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

get pos, rot, scale from AcDbEntity ...

1 REPLY 1
Reply
Message 1 of 2
Anonymous
412 Views, 1 Reply

get pos, rot, scale from AcDbEntity ...

Hi to all,

I've a pointer to AcDbEntity:

 

err = acdbOpenObject(pEntity, blckId, AcDb::kForRead);

 

where pEntity is: AcDbEntity* pEntity. The object is a valid graphic entity,

such as a line a circle and so on ... How to get the pos, rot and scale

informations ?

 

If blckId is a AcDbBlockReference object the problem is simple 🙂

(pBlckRef->position(), etc ...)

 

Many thanks

Leonard

1 REPLY 1
Message 2 of 2
owenwengerd
in reply to: Anonymous

A generic AcDbEntity does not necessarily have those properties. You can test the entity class and handle each known derived class individually. Most likely, though, you need to change your approach to whatever problem you're ultimately trying to solve.

--
Owen Wengerd
ManuSoft

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

Post to forums  

Forma Design Contest


Autodesk Design & Make Report