Announcements
Attention for Customers without Multi-Factor Authentication or Single Sign-On - OTP Verification rolls out April 2025. Read all about it here.

Is it possible to have "Select from drawing" with .net?

Anonymous

Is it possible to have "Select from drawing" with .net?

Anonymous
Not applicable

Hi,

 

Can we have  "select from drawing" with .net for different civil 3d objects?

 

I have done "SelectOptions" but not sure if we can use wpf to make it happen. Thanks. 

SelectFromDwg.PNG

 

Thanks.

 

0 Likes
Reply
Accepted solutions (1)
655 Views
3 Replies
Replies (3)

Jeff_M
Consultant
Consultant
What do you mean by "not sure if we can use wpf to make it happen"? Have you tried to select an object of a specific type from WPF button on a WPF Window? Did it not work? It should, so if it didn't, please show some code.
Jeff_M, also a frequent Swamper
EESignature
0 Likes

tyronebk
Collaborator
Collaborator
Accepted solution

As @Jeff_M noted, your question is vague.

If you want a decent example of how to do a selection from a modeless window, this AU class [Civil 3D Pipe Networks Under the Hood] has a solid example (although it is slightly advanced as it heavily uses WPF with all the supporting code in the view model).

 

If you are working with a modal window, the workflow would be something like:

  • hide the window (which returns you to the Application window)
  • make your selection in the drawing window
  • update the data being shown in the window
  • show the window

I can share some code of a simple example if needed, but my current working code requires some editing before it would be useful to share.

 

Anonymous
Not applicable

Hi @Jeff_M ,

 

By 'not sure', I meant I am new to WPF and have very limited understanding of WPF. Poor choice of words, my bad. 

I have a code that requires user to select 3d polylines from  drawing. The code is running smoothly and I wanted to up the game with WPF but I was not getting anywhere, hence the question. You can understand I am a novice in this area based on the ambiguity of the question.

 

I don't have any code for the wpf but just the skin atm.

Capture.PNG

I wanted a high-level answer that would push me in right direction . And thanks @tyronebk  for reading my mind and also for a general workflow.

I have gone through the AU class and would work on st over the week end.

Thanks @Jeff_M and @tyronebk . Cheers!!  

 

0 Likes