AutoCAD Map 3D Developer
Welcome to Autodesk’s AutoCAD Map 3D Developer Forums. Share your knowledge, ask questions, and explore popular AutoCAD Map 3D Developer topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Topology Dissolve – Expression

0 REPLIES 0
Reply
Message 1 of 1
dohenry
235 Views, 0 Replies

Topology Dissolve – Expression

Hi All

 

I’m have trouble with my code for creating a Dissolved Topology, in particular with the Expression.

 

I can't find any examples etc.

 

Would anyone have an example or be able to give some advice on this.

 

The Field and Object Data Table already exist.

 

        Dim topoModel As TopologyModel = Nothing
        Dim app As MapApplication = HostMapApplicationServices.Application
        Dim topos As Topologies = app.ActiveProject.Topologies

        Dim odDataField As ObjectDataField
        odDataField.ODFieldName = "FieldName"
        odDataField.ODTableName = "ODTableName"

        If topos.Exists(strTopoName) Then

            topoModel = topos.Item(strTopoName)

            topoModel.Dissolve(":FieldName@ODTableName", "Dissolve_Test", "Dissolve Test", odDataField)

        End If

 

 

 

I tried the above code and get the following error as attached.

 

I also need to dissolve the topo to get a outline boundary of the Topology and propose to do this using the Layer Property would any one know this expression I tried the following among other variation, but got the same error as above.

 

topoModel.Dissolve(":Property.Layer", "Dissolve_Test")

 

 

 

Any help on this matter would be greatly received.

 

Thank You.

 

0 REPLIES 0

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

Post to forums  

Technology Administrators


AutoCAD Beta