How to create DSD file..

How to create DSD file..

Anonymous
Not applicable
3,475 Views
2 Replies
Message 1 of 3

How to create DSD file..

Anonymous
Not applicable

Hi guys! How can I create DSD file to use with -publish command?  Is there any AutoCAD Command to use or I must create it by code? If so, where can I find some docs about its strucutre?

 

Thanks Enrico

0 Likes
Accepted solutions (1)
3,476 Views
2 Replies
Replies (2)
Message 2 of 3

Anonymous
Not applicable

Imports System.IO

 

If System.IO.File.Exists(File Name Here) = True Then
System.IO.File.Delete(File Name Here)
End If

Dim objReader As StreamWriter = New StreamWriter("File Name Here", True)
objReader.WriteLine("Text Here")
objReader.Close()

 

 

 

That is what you need to create files.. (the first part checks if one already exists, and deletes it)

 

as to structure..  have AutoCAD create one then open it and reproduce 🙂

0 Likes
Message 3 of 3

Anonymous
Not applicable
Accepted solution

I did it and without write the file "manually". Using PlottingServices I can use a magical object that do it for me, I have only to add some informations about Layouts to pubblish and other informations.

 

Thanks

Enrico

0 Likes