SetDatabaseDefaults()

When creating new objects in .NET I would like to set the layer to an existing layer. But when using 

  Dim sol As Solid3d = New Solid3d()
sol.SetDatabaseDefaults()

an error "No database" occurs.

Is is not supported?



Comments

  • try passing an instance of your database in the argument, if you don't have an instance handy, you can use HostapplicationServices.WorkingDatabase  

  • That works! 

    Thanks Daniel.

This discussion has been closed.