AutoCAD API error!

AutoCAD API error!

Anonymous
Not applicable
612 Views
3 Replies
Message 1 of 4

AutoCAD API error!

Anonymous
Not applicable
Hi,
I am getting following error while applying stretch command to my custom entity.(Only for AutoCAD 2004)

Error :This drawing contains entities that do not adhere to the AutoCAD graphics API.

Geometry was received without a preceding SubentityMarker. Entities that wish to make sure of SubentityMarkers (i.e. - custom AcGi entities) should send down a SubentityMarker before sending down any geometry

Can anybody tel me, is this AutoCAD's error or am i doing something wrong with custom entity?
0 Likes
613 Views
3 Replies
Replies (3)
Message 2 of 4

Anonymous
Not applicable
Can you post the code from your custom entity's worldDraw/viewportDraw override(s)? You may be doing exactly what it says you're doing, i.e. sending geometry before setting a gs marker, but I 'm not sure since I don't have any of your code to look at.
0 Likes
Message 3 of 4

Anonymous
Not applicable
Thanks Andy!
It worked now. I haven't set setSelectionMarker in worldDraw().
0 Likes
Message 4 of 4

Anonymous
Not applicable
Im getting the same error. How do I fix it?????
0 Likes