exporting multiple views to dwg previous selection

rodrigohbm
Advocate
Advocate

exporting multiple views to dwg previous selection

rodrigohbm
Advocate
Advocate

hi friends
I am developing an application for exporting to dwg a datagridview which contains a check.
view image

 

the idea is to export only the selection.

 

I appreciate the information.
thank you

 

 

(translate.google.com)

 

.

0 Likes
Reply
Accepted solutions (1)
359 Views
2 Replies
Replies (2)

Anonymous
Not applicable
I think you need this:

foreach (DataGridViewRow r in dataGridView1.SelectedRows)
{
// do the dwg export
}
0 Likes

rodrigohbm
Advocate
Advocate
Accepted solution

thank you......

 

This is my solution:

 

For Each rabbit As Object In sheetstodwg
dim todwg as new list(of elementid)()
If (rabbit.ToString) = (row.cells(1).value.ToString) Then
todwg.Add(rabbit)
activedoc.export(ruta, file, todwg, dwgexportoptions.getpredefinedoptions(activedoc, exportdwg))
End if
Next

0 Likes