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

Get GS Marker of an Entity

2 REPLIES 2
Reply
Message 1 of 3
e_guney
442 Views, 2 Replies

Get GS Marker of an Entity

Lets say if you have objectId of an entity and also a point in world coordinates, how can you determine the corresponding GS Marker for that entity on the point. I tried

acedSSGet(NULL,pt,NULL,NULL,nSelect);
acedSSNameX(..);

however selection method comes out to be '8' and the GS Marker '0'.
2 REPLIES 2
Message 2 of 3
e_guney
in reply to: e_guney

Using acedSSGet(":s",pt,NULL,NULL,nSelect); instead solves the problem.
Message 3 of 3
tbrammer
in reply to: e_guney

The correct call is

 

acedSSGet(_T("_:S"), NULL, NULL, NULL, sset); 

Without '_' the call will fail on non-English versions of AutoCAD! Maybe the capital 'S' is important too.

It will always fail with 2nd argument !=NULL.


Thomas Brammer ● Software Developer ● imos AGLinkedIn
If an answer solves your problem please [ACCEPT SOLUTION]. Otherwise explain why not.

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

Post to forums  

Autodesk Design & Make Report

”Boost