Hi.
I have a datagridview with the list of all alignments in the drawing.
If I put a button and press it, can be posible open the window "properties alignment" about the selected alignment in the datagrid?.
And can open directly the tab page "Design Criteria"?
I would like change some values directly from the window of Civil 3D in this case. I donĀ“t want re-write the database(db) with code.
Thank you.
Unfortunately this is not available on the API: you cannot invoke this built-in Civil 3D dialog.
ok. Thank you Gustavo for reply.
Hi there,
It is not difficult using the SendCommand method, and imaging you are a standard user of Civil 3D.
As a standard user you click on an alignment, and then you select Alignment Properties, but ... Have you ever seen the command line after do this?. If you have a look, you'll find a special order: EditAlignmentProperties.
Try to write down on the command line this order: EditAlignmentProperties (without selecting any alignment previously) and then, press "Enter".
Civil 3D will ask you to select an alignment, and then you'll see the Alignment Properties.
Look at this routine in VBA:
Sub Test_Show_Alignment_Properties()
'This routine asks for click on an alignment,
'then it shows its Alignment Properties
ThisDrawing.SendCommand "EditAlignmentProperties" & vbCrLf
End Sub
vbCrLf is necessary for simulating that the user press "Enter".
There are a lot of things you can do using the command line through SendCommand method. The only thing you need to do is checking the command line after using your favourite tasks. Simple.
Hope this can help you, and I apologize for my English (it's not my mother tongue)
Thanks rubenarias, you are right regarding a full command, but just to make clear, we can invoke built-in commands, like you mentioned, but not use a native built-in dialog/control like requested at the original question.