How can I select different elements using MDL?

Status
Not open for further replies.

Crigui

Usenet Archive
Joined
Sep 28, 2001
Messages
39
Reaction score
0
Hi,

There is an example called lineinfo in the examples directory that selects lines and shows their informations. What we want to do is almost the same: select different elements, like circles, arc, lines, etc. All of them!

We were studing the parameters of the functions from lineinfo and we did't reach what we were needing, I mean, where we must change to accept all kinds of geometric pictures.

I hope somebody help us!

Ha! Have a nice new years eve!

Guilherme
 
Guilherme ...

There is an example called lineinfo in the examples directory that selects lines and shows their informations. What we want to do is almost the same: select different elements, like circles, arc, lines, etc. All of them!

We were studing the parameters of the functions from lineinfo and we did't reach what we were needing, I mean, where we must change to accept all kinds of geometric pictures.

// A general-purpose locate function would start like this void cmdLocate_example (void) { mdlState_startModifyCommand (..., acceptFunction, ..., ..., ...);

// Locate filter options
mdlLocate_allowLocked ; // Accept elements in reference files?
// mdlLocate_normal , ...

// If you want to filter specific element types, set a search mask. // If you don't set a search mask, then the locate logic will // find any type of element //mdlLocate_setElemSearchMask ; }

void acceptFunction (DPoint3d *pt, int view)
{
int fileNum;
ULong filePos = mdlElement_getFilePos (FILEPOS_CURRENT, &fileNum); // With filePos and fileNum you can read the element into a // descriptor and do whatever you want }
 
Status
Not open for further replies.

Latest threads

Back
Top