topolgy correctness information

topolgy correctness information

Anonymous
Not applicable
457 Views
2 Replies
Message 1 of 3

topolgy correctness information

Anonymous
Not applicable

Hi,

 

I have to access topologies in a lot of DWG-s. But there are some DWGs where one or more topolgies can be incorrect (for example, duplicated topology IDs). How can I get information about topology correctness - in program? Now I open - and close, of course - topologies and if one topologies is incorrect, the AutoCAD is crashed when I try to open it.

C++, ObjectArx, AutoCAD Map 3D 2010 (or higher)

 

AcMapTopology	topo(strTopoName);
AcMap::EErrCode	err = AcMap::kOk;
try
{
	err = topo.Open(AcMapTopology::eForRead);
}
catch (...)
{
	//	...
}

 

 

0 Likes
458 Views
2 Replies
Replies (2)
Message 2 of 3

Anonymous
Not applicable

Hi,

 

Did you check this ?

 

TopologyModel:: IsComplete Property -> Gets whether this topology model is complete.

 

In Map 3D SDK, you will get to see API samples on Topology feature.

 

Hope this helps.

 

Thanks,

0 Likes
Message 3 of 3

Anonymous
Not applicable

Hi,

 

Thank you your answer.

Yes, I checked before AcMapTopology::IsComplete, but it was always false before open.

I saw the samples, but in ObjectARX Map 2010 Topology samples it always openes the topology, before use it.

Or I missed something?

 

Imre

0 Likes