Hi -- I have a C++ program which attempts to build and save a model via the RAM Data Access COM library.
I have been able to successfully add CompDeckProp objects and slab edges to my model, but have found that after trying to assign decks (via IFloorType::GetDecks and then IDecks::Add) a crash occurs within the data access dll when closing the DB.
Are there any known issues/workarounds for assigning decks via the Data Access API?
thanks much,
--FritzM.
I added the deck polygon using Set IDeck = IDecks.Add before creating a collection of points. I then Set IPoints = IDeck.GetPoints, but this will initialize the collection with the number of points specified in IDecks.Add. Therefore, I had to use IPoints.Delete and IPoints.Insert2 instead of IPoints.Add2.
Answer Verified By: Fritz Mueller
Thanks Eric --
I had previously been doing IPoints.GetAt followed by IPoint.SetCoordinate, and it was not working. Using IPoints.Delete followed by IPoints.Add now instead and its working fine.