Community
Civil 3D Customization
Welcome to Autodesk’s AutoCAD Civil 3D Forums. Share your knowledge, ask questions, and explore popular AutoCAD Civil 3D Customization topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

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

3 REPLIES 3
SOLVED
Reply
Message 1 of 4
Anonymous
618 Views, 3 Replies

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

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

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.

 

3 REPLIES 3
Message 2 of 4
Jeff_M
in reply to: Anonymous

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

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
Message 3 of 4
tyronebk
in reply to: Jeff_M

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.

 

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.

 

Message 4 of 4
Anonymous
in reply to: Anonymous

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

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!!  

 

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Rail Community


Autodesk Design & Make Report