Message 1 of 7
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I've seen posts which discuss how to add data to an AutoCAD drawing particularly in: https://forums.autodesk.com/t5/net/xrecord/td-p/7784239.
This is great. But what i need is a way to assign an instance of a class which contains some properties and functions to a document and save it.
Is that possible?
My class looks something like this:
Public Class ReinforcementDocument
Public property name as String
Public Property slabsLayer As String
Public Property slabThickness As Double
Public Sub New(ByRef name As String)
Me.name = name
End Sub
Public Sub New(ByRef name As String, ByRef slabsLayer As String, ByRef slabThickness As Double)
Me.name = name
Me.slabsLayer = slabsLayer
Me.slabThickness = slabThickness
End Sub
Public Sub updateDocument(ByRef slabsLayer As String, ByRef slabThickness As Double)
Me.slabsLayer = slabsLayer
Me.slabThickness = slabThickness
End Sub
End Class
I need to store an instance of that class into the current opened drawing.
Thank you in advance.
Solved! Go to Solution.